Folkert
65c1e0e5b1
appease clippy
2020-11-09 02:02:20 +01:00
Sébastien Besnier
099c56fcf6
make compiler happy after rebasing
2020-11-08 13:55:01 +01:00
Sébastien Besnier
66392eeeaf
other parsing adjustment!
2020-11-08 13:48:19 +01:00
Sébastien Besnier
bf68477c8a
cargo fmt
2020-11-08 13:48:19 +01:00
Sébastien Besnier
45fb93d4ac
comment out parsing test
2020-11-08 13:48:19 +01:00
Sébastien Besnier
a6a4750501
fix parsing issue
2020-11-08 13:48:19 +01:00
Richard Feldman
6c01d02de0
Make ann_pattern and ann_type references
2020-11-08 13:48:19 +01:00
Richard Feldman
4633619e18
Use newline_char over ascii_char('\n')
2020-11-08 13:48:19 +01:00
Sébastien Besnier
cfbfbf09be
cargo fmt
2020-11-08 13:45:47 +01:00
Sébastien Besnier
94006f1d8f
make clippy happy.... again
2020-11-08 13:45:47 +01:00
Sébastien Besnier
8870776fb0
make clippy happy
2020-11-08 13:43:11 +01:00
Sébastien Besnier
f4c1af0f19
test_can pass
2020-11-08 13:43:11 +01:00
Sébastien Besnier
014131dabe
handle AnnotatedBody everywhere. It compiles now!
2020-11-08 13:43:11 +01:00
Sébastien Besnier
d2d3681d7e
fix issue in annotated_body parser -- now compiling!
2020-11-08 13:43:11 +01:00
Sébastien Besnier
29c8ea6d8e
transform annotated_body parser into small functions
2020-11-08 13:43:11 +01:00
Sébastien Besnier
bffc597e4e
remove unused annotation
2020-11-08 13:43:11 +01:00
Sébastien Besnier
efe3497cc9
add AnnotatedBody in AST enum type
2020-11-08 13:43:11 +01:00
Folkert
809f815901
change import syntax
2020-11-07 21:03:51 +01:00
Richard Feldman
ea150b0101
Change syntax for requires in platform modules
2020-11-07 12:20:09 -05:00
Richard Feldman
61edcc7d03
Have ascii_char take a u8
2020-11-07 12:13:46 -05:00
Richard Feldman
7ba95a0bd0
Parse user-specified Effect name
2020-11-07 12:05:45 -05:00
Richard Feldman
c8b28b96fa
Parse a : before each effects entry
2020-11-07 11:42:55 -05:00
Pablo Hirafuji
0c20713f94
Add doc comment new line parsing
2020-11-06 13:57:41 -03:00
Brendan Hansknecht
4b901814f7
Fix memory leak with bumpalo String
2020-11-01 18:04:40 -08:00
Brendan Hansknecht
936521db1f
Make clippy happy
2020-11-01 09:41:46 -08:00
Brendan Hansknecht
11752117a5
Add other fuzz target
2020-10-31 18:56:08 -07:00
Brendan Hansknecht
2b4c873c73
Add README about running the fuzzer
2020-10-31 10:50:34 -07:00
Brendan Hansknecht
d00189530a
Add fuzzing to the parser.
...
As part of this, todos and panics where moved outside of this module
to elsewhere when they would cause fuzzing to fail.
2020-10-30 22:04:54 -07:00
Folkert
a43afc968d
vec to slice in parse tests
2020-10-29 00:14:48 +01:00
Folkert
047746c716
use only references (no Vec) in canonical AST
2020-10-29 00:12:44 +01:00
Anton-4
12821bf321
replaced deprecated std::u16::MAX with u16::MAX
2020-10-21 14:35:36 +02:00
Richard Feldman
f11479d255
Clippy makes a good point.
2020-10-19 00:01:33 -04:00
Richard Feldman
dfa61b4c18
Parse platform headers
2020-10-18 23:55:49 -04:00
Richard Feldman
5f5c4354da
Fix unary negation with field access
...
Fixes #509
2020-09-12 10:25:45 -04:00
Richard Feldman
532b5c4051
Reproduce #509 (unary negation parse bug)
2020-09-12 10:18:12 -04:00
Richard Feldman
3c39a331d7
Remove obsolete parse::ast::TypedBody
2020-09-07 09:19:25 -04:00
Richard Feldman
453fc0e27c
REVERT THIS! Temporarily break block strings.
...
Also disable some tests because trimming inputs
revealed some bugs I don't want to fix in this PR!
2020-08-31 23:22:10 -04:00
Richard Feldman
7682e09b0a
Fix some fmt stuff
2020-08-31 23:13:50 -04:00
Richard Feldman
74c0bdfd5a
Fix empty string parsing bug
2020-08-31 23:13:50 -04:00
Richard Feldman
5b27e10095
Reproduce empty string parsing bug
2020-08-31 23:13:50 -04:00
Richard Feldman
5080a7e24b
Parse unicode escape sequences
2020-08-31 23:13:50 -04:00
Richard Feldman
b995ccef75
Parse string interpolations
2020-08-31 23:13:50 -04:00
Richard Feldman
e661ca7f2e
Fix string literal parsing
2020-08-31 23:13:50 -04:00
Richard Feldman
f35e43768a
Get things compiling
2020-08-31 23:13:50 -04:00
Richard Feldman
d9a96c9c66
Simplify some pattern matching
2020-08-31 23:13:50 -04:00
Richard Feldman
8d1fad334f
Drop obsolete utf8_char() parsing fn
2020-07-28 20:51:48 -04:00
Richard Feldman
153308dbf1
clippy
2020-07-27 01:10:04 -04:00
Richard Feldman
273528db77
Fix remaining UTF-8 parsing issues
2020-07-27 01:10:04 -04:00
Richard Feldman
9f9ce327d4
Lazily validate that input bytes are valid UTF-8
2020-07-27 01:10:04 -04:00
Richard Feldman
a4b0bdc679
Fix parsing bug in accessor functions
...
(They weren't advancing the state by 1, because the state
advancement was relying on part_buf - which was empty
in the case of accessor functions due to having only parsed
the dot so far.)
2020-07-23 21:37:03 -04:00