Jackson Wambolt
02c98f7519
Un-macro either
2024-04-22 20:03:05 -05:00
Jackson Wambolt
2f776f366f
Un-macro one_or_more
2024-04-22 20:03:04 -05:00
Jackson Wambolt
f88e46fc32
Un-macro zero_or_more
2024-04-22 20:03:04 -05:00
Jackson Wambolt
a9724dda5e
Un-macro map_with_arena
2024-04-22 20:03:04 -05:00
Jackson Wambolt
f6c977fb96
Un-macro succeed
...
This implementation requires that the type of the value impls `Clone`,
which means the function version of `succeed` cannot be used to succeed
with values of non-`Clone` types.
If this becomes an issue, we could either bring back the macro version,
or create a new `succeed_with` function that takes a `Fn() -> T`
argument. `succeed_with` could then be used to succeed with values that
aren't `Clone` by creating the value on-demand each time the parser is
run.
2024-04-22 20:03:04 -05:00
Jackson Wambolt
5c0b2a0938
Un-macro loc
2024-04-22 20:03:04 -05:00
Jackson Wambolt
3394aab650
Un-macro map
2024-04-22 20:03:04 -05:00
Jackson Wambolt
41d7d02e2a
Un-macro add
2024-04-22 20:03:03 -05:00
Jackson Wambolt
64290a8cf6
Un-macro absolute_indented_seq
2024-04-22 20:03:03 -05:00
Jackson Wambolt
1b4b0a0aa1
Un-macro indented_seq
2024-04-22 20:03:03 -05:00
Jackson Wambolt
60fa7ebe9e
Un-macro between
2024-04-22 20:03:03 -05:00
Jackson Wambolt
8a144149e2
Un-macro skip_first
2024-04-22 20:03:03 -05:00
Jackson Wambolt
e8ae2e12f8
Un-macro skip_second
2024-04-22 20:03:00 -05:00
Luke Boswell
d69d2ee940
replace removed comment
2024-04-21 13:45:04 +10:00
Luke Boswell
9ad6d9248c
converge loc_pattern_help_help and loc_parse_tag_pattern_arg
2024-04-21 13:32:38 +10:00
Luke Boswell
6844df6c37
fix parsing lists in tag patterns
2024-04-21 13:27:50 +10:00
Joshua Warner
50d2111919
Remove unnecessary arg to check_indent
...
Quick refactoring / follow-up to #6634
2024-04-19 20:25:55 -07:00
Luke Boswell
0198a683c7
fix unwrapping of trailing expr
2024-04-17 09:54:29 +10:00
Luke Boswell
7886d30b8e
parse/unwrap nested defs
2024-04-15 09:25:00 +10:00
Luke Boswell
129ca94733
remove unit type from EmptyDefsFinal
2024-04-14 13:45:07 +10:00
Luke Boswell
0143035dc0
cleanup, improve docs
2024-04-14 13:45:06 +10:00
Luke Boswell
c32fa5b600
support optional suffied last def
2024-04-14 13:45:06 +10:00
Luke Boswell
b13adf6898
more flexible statement parsing
2024-04-14 13:45:06 +10:00
Luke Boswell
68c00a1493
fix replace_value_def
2024-04-14 13:45:06 +10:00
Luke Boswell
5bb44fcce5
most tests passing
2024-04-14 13:45:05 +10:00
Luke Boswell
ed2b9e9703
fix split_defs and replace_def
2024-04-14 13:45:05 +10:00
Luke Boswell
8b9e08bd76
WIP try simplification
2024-04-14 13:45:05 +10:00
Luke Boswell
6f607aba11
WIP support nested suffixes
2024-04-14 13:45:03 +10:00
Luke Boswell
5a91a4f78a
WIP support nested suffixes
2024-04-14 13:45:03 +10:00
Luke Boswell
e4c5ba064b
clippy
2024-04-14 13:45:02 +10:00
Luke Boswell
b010e8caba
desugar suffixed If-Then-Else expression
2024-04-14 13:45:02 +10:00
Luke Boswell
d08a51b134
cargo fmt
2024-04-14 13:45:02 +10:00
Luke Boswell
69a3a3c477
cleanup
2024-04-14 13:45:02 +10:00
Luke Boswell
584d41f621
fix !
bug for Record and Tuple Access
2024-04-14 13:45:02 +10:00
Luke Boswell
a28cd251ab
spelling
2024-04-14 13:45:01 +10:00
Luke Boswell
5ae188c08f
cleanup
2024-04-14 13:45:01 +10:00
Luke Boswell
b8ec53738a
fix desugar for suffixed nodes
2024-04-14 13:45:01 +10:00
Luke Boswell
fac52f7408
parse statements correctly
2024-04-14 13:45:01 +10:00
Luke Boswell
ba22527e29
WIP parse statements correctly
2024-04-14 13:45:01 +10:00
Luke Boswell
997284e113
parse suffixed statements as defs
2024-04-14 13:45:00 +10:00
Luke Boswell
3c3e523b45
add suffixed to Identifer and QualifiedIdentifier
2024-04-14 13:45:00 +10:00
Luke Boswell
0a3b9c34b3
add suffixed:u8 to Expr::Var
2024-04-14 13:45:00 +10:00
Luke Boswell
a418bf4fb8
add is_loc_expr_suffixed helper
2024-04-14 13:45:00 +10:00
Luke Boswell
73b60113ff
fix for suffixed without arguments
2024-04-14 13:45:00 +10:00
Luke Boswell
56d91ce74c
support multiline suffixed statements
2024-04-14 13:45:00 +10:00
Luke Boswell
cfa7490b86
Pattern::Stmt cannot be malformed
2024-04-14 13:44:59 +10:00
Luke Boswell
a5df0aa1c2
implement equivalent for Pattern::Stmt
2024-04-14 13:44:59 +10:00
Luke Boswell
42fdcb7ff1
Make unit assignment optional for suffixed defs
2024-04-14 13:44:59 +10:00
Luke Boswell
ca01913ab3
add EExpr error for unexpected comma
2024-04-02 20:48:13 +11:00
Jonathan Schear
4553392af4
Merge branch 'main' into js/double_hash_is_a_doc_comment
2024-03-27 14:05:59 -04:00