roc/crates/compiler/parse/src
Joshua Warner 94070e8ba6
Improve parsing of scalar literals
* Unify parsing of string literals and scalar literals, to (e.g.) ensure escapes are handled uniformly. Notably, this makes unicode escapes valid in scalar literals.
* Add a variety of custom error messages about specific failure cases of parsing string/scalar literals. For example, if we're expecting a string (e.g. a package name in the header) and the user tried using single quotes, give a clear message about that.
* Fix formatting of unicode escapes (they previously used {}, now correctly use () to match roc strings)
2023-01-07 15:12:52 -08:00
..
ast.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
blankspace.rs Be more lenient with indentation in record parsing 2023-01-02 18:53:15 -08:00
expr.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
header.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
ident.rs Refactor collections 2022-11-26 09:55:54 -08:00
keyword.rs Fix kw list 2022-11-24 14:48:39 -06:00
lib.rs correct formatting and removed duplicate image 2022-11-03 20:02:10 +11:00
module.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
number_literal.rs Refactor parser methods to not return State as part of ParseError 2022-11-18 19:52:23 -05:00
parser.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
pattern.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
problems.rs moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
state.rs Give parser fuzzing some TLC 2022-12-11 08:39:52 -08:00
string_literal.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
test_helpers.rs Give parser fuzzing some TLC 2022-12-11 08:39:52 -08:00
type_annotation.rs Be more lenient with required indentation in collections 2023-01-01 17:49:51 -08:00