enso/lib/rust/parser
Kaz Wesley 1e3b9a3624
Parse text literals (#3681)
Parse text literals. See: https://www.pivotaltracker.com/story/show/182496940

# Important Notes
- The left-trimming algorithm (https://github.com/enso-org/design/blob/wip/wd/enso-spec/epics/enso-spec-1.0/04.%20Expressions.md#inline-and-block-text-literals) requires two passes over the sequence of text segments. This implementation performs one pass while parsing (identifying the correct amount of trim). The other pass (applying the trim) can be done when building the value of the quoted string: Trim the amount of whitespace identified by the `trim` field off of the whitespace of each `TextSection` (the value will not exceed the amount of whitespace found in the tokens' offsets, except for tokens with 0 offset, in which case no trimming is necessary/possible).
2022-09-03 06:38:06 +00:00
..
generate-java Parse text literals (#3681) 2022-09-03 06:38:06 +00:00
jni Parser: Parse UUIDs; implement comments in AST; implement type annotations and signatures; fix field names (#3653) 2022-09-03 03:15:27 +00:00
src Parse text literals (#3681) 2022-09-03 06:38:06 +00:00
tests Parse text literals (#3681) 2022-09-03 06:38:06 +00:00
Cargo.toml Parser: Parse UUIDs; implement comments in AST; implement type annotations and signatures; fix field names (#3653) 2022-09-03 03:15:27 +00:00