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
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
047746c716
use only references (no Vec) in canonical AST
2020-10-29 00:12:44 +01: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
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
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
Folkert
b45b39af5e
optional fields improvements
2020-07-21 15:25:21 +02:00
Folkert
29c3eebace
parse default optional expressions in pattern matches
2020-07-20 00:52:16 +02:00
Richard Feldman
85f51ef39d
Introduce optional record fields
2020-07-18 12:31:17 -04:00
Richard Feldman
152e06186b
Reserved keywords can't be patterns
2020-07-17 19:49:27 -04:00
Richard Feldman
ef010d4dec
Fix parsing bug for malformed when-branches
2020-07-17 19:49:27 -04:00
Folkert
672b67d527
initial version of annotation formatting
2020-07-09 17:41:21 +02:00
Folkert
9d67b11c0d
pretty error messages for integers
2020-07-07 22:10:23 +02:00
Chad Stearns
830394eadf
Comply with clippy
2020-06-21 17:24:14 -04:00
Richard Feldman
d5116d01b4
Ignore carriage returns
2020-06-16 23:04:00 -04:00
Richard Feldman
1d6d9ec994
Fix doc parsing bug
2020-05-23 22:43:09 -04:00
Richard Feldman
3dac73d8d0
Parse doc comments
2020-05-23 22:03:21 -04:00
Richard Feldman
4d8cbc4811
Drop obsolete contains_newline method
2020-05-23 21:41:11 -04:00
Richard Feldman
ff953021d5
Fix parser bug with newline after '=' in def
...
Fixes #51
2020-05-03 08:50:55 -04:00
Richard Feldman
2eea57a51a
Add some more detail to a todo
2020-05-02 22:19:29 -04:00
Richard Feldman
101dc80ae5
Move parse::operator into module::operator
2020-05-01 21:58:53 -04:00
Folkert
aea48f703a
working parser error
2020-04-16 01:30:28 +02:00
Folkert
e21cdfc689
bring parse errors into the reporting tests
2020-04-15 19:49:05 +02:00
Richard Feldman
d994d11760
Parse app module headers.
2020-04-15 07:06:11 -04:00
Chad Stearns
30dadd882c
Binop precedence problem report test
2020-04-01 22:17:39 -04:00
Folkert
11c8e2bfaa
improve Precedence error message
2020-03-31 23:11:35 +02:00
Folkert
f02193b962
fix new clippy warnings
2020-03-12 22:56:58 +01:00
Richard Feldman
3ecbe0325c
Plain number literals (e.g. 5
) are now Num *
2020-03-10 22:27:13 -04:00
Richard Feldman
908e485fca
Move constrain and its deps into their own crates
2020-03-06 01:43:39 -05:00
Richard Feldman
8ef2ae3de7
clippy clip clip
2020-03-05 23:03:29 -05:00
Richard Feldman
313b7a79e8
Use workspaces and move everything into compiler/
2020-03-05 17:45:52 -05:00