Commit graph

14474 commits

Author SHA1 Message Date
Richard Feldman
1f3d83ac14 Support string interpolation. 2019-09-15 14:59:56 -04:00
Richard Feldman
9b55d7b4b8 Add failing string interpolation test 2019-09-15 14:58:42 -04:00
Richard Feldman
e96b7c1a0d Revise comment 2019-09-14 23:33:04 -04:00
Richard Feldman
0a6eb03861 Add TODO to Expr and Pattern 2019-09-14 22:35:21 -04:00
Richard Feldman
b0d39f3011 Drop obsolete comment. 2019-09-14 22:24:33 -04:00
Richard Feldman
b3ed519913 Revert "Create collections/str"
This reverts commit 53b38e301c.
2019-09-14 22:23:29 -04:00
Richard Feldman
53b38e301c Create collections/str 2019-09-14 22:06:13 -04:00
Richard Feldman
3772ce496d Merge branch 'parser-rewrite' of github.com:rtfeldman/roc into parser-rewrite 2019-09-14 21:58:36 -04:00
Richard Feldman
9baa34d65d Added a comment to parsing number literals 2019-09-14 18:04:01 -05:00
Richard Feldman
912fbc5c5c Extract highest/lowest int tests 2019-09-14 18:00:39 -05:00
Richard Feldman
a282ecf07b Test number literals with underscores 2019-09-14 17:59:51 -05:00
Richard Feldman
9f39153a35 Distinguish between malformed ints and floats 2019-09-14 16:38:44 -05:00
Richard Feldman
9b3bb7abd7 Test floats that are too big/small 2019-09-14 16:38:25 -05:00
Richard Feldman
a83638c2e1 Fix float overflow parsing bug 2019-09-14 16:14:19 -05:00
Richard Feldman
d70d3690c6 Reproduce float overflow parsing bug 2019-09-14 16:14:06 -05:00
Richard Feldman
1877713fd7 Quickcheck all int values 2019-09-14 16:04:46 -05:00
Richard Feldman
5e740da48c Test too big/small int literals 2019-09-14 16:03:15 -05:00
Richard Feldman
dfd1d4bbb4 Fix some line length and attempting issues. 2019-09-14 15:50:14 -05:00
Richard Feldman
2ad510ba77 Disallow null characters in string literals 2019-09-09 19:13:50 -05:00
Richard Feldman
0bf66a9911 wip 2019-09-07 09:43:19 -04:00
Richard Feldman
95b43d5554 Add some comments to number_literal 2019-09-04 01:26:42 -04:00
Richard Feldman
3db0e9e5c6 Fix negative number literals 2019-09-04 01:23:50 -04:00
Richard Feldman
6cfc98b415 Reproduce negative number literals bug 2019-09-04 01:12:13 -04:00
Richard Feldman
9d7cc18ef5 Add number literal test 2019-09-04 01:11:59 -04:00
Richard Feldman
57d7247ea6 Parse number literals 2019-09-04 01:07:27 -04:00
Richard Feldman
6e4e517787 Introduce parser::Fail 2019-09-04 00:09:28 -04:00
Richard Feldman
329effe4ea Add one_of2 and one_of3 2019-09-03 22:38:05 -04:00
Richard Feldman
f9f63f88c6 Pass State by value. 2019-09-03 22:37:53 -04:00
Richard Feldman
6a77f00ff9 Make some u32s be u16s 2019-09-03 20:24:36 -04:00
Richard Feldman
e3592a6dd7 Remove unnecessary 'p 2019-09-03 20:12:20 -04:00
Richard Feldman
94a5461407 Remove Problems from parser, check line overflow 2019-09-03 20:08:30 -04:00
Richard Feldman
0cd8b08079 Reorganize parser code. 2019-09-03 01:30:54 -04:00
Richard Feldman
73b98c7f39 Fix unicode escape problem reporting 2019-09-03 00:54:18 -04:00
Richard Feldman
7b3686486e Improve string parsing error handling. 2019-09-02 23:18:02 -04:00
Richard Feldman
271d13d747 Fix unicode escaping bug 2019-09-02 22:21:42 -04:00
Richard Feldman
75482345a8 Reproduce unicode escaping bug 2019-09-02 22:21:35 -04:00
Richard Feldman
624d6d20d9 Add a parser test 2019-09-02 21:38:26 -04:00
Richard Feldman
0fdcef21a7 Fix peek bug 2019-09-02 21:37:49 -04:00
Richard Feldman
98635262a7 Reproduce peek bug 2019-09-02 21:37:46 -04:00
Richard Feldman
b463a24832 Give Problems their own lifetimes 2019-09-02 21:30:02 -04:00
Richard Feldman
8655bac61f Go back to previous approach 2019-09-02 21:24:14 -04:00
Richard Feldman
fc363c62cf Attempt at fixing Problems bug 2019-09-02 21:06:06 -04:00
Richard Feldman
3043862989 New parser supports unicode escaping 2019-09-02 19:39:16 -04:00
Richard Feldman
9b21995a98 Make string literal parsing work more. 2019-09-02 16:16:44 -04:00
Richard Feldman
f47b657b9f cargo fmt 2019-09-02 15:08:33 -04:00
Richard Feldman
505b9f7b02 Switch to bumpalo 2019-09-02 15:07:45 -04:00
Richard Feldman
9f07ebabfe Remove unnecessary reference 2019-09-02 02:12:54 -04:00
Richard Feldman
ed57022377 Update a comment 2019-09-02 02:12:47 -04:00
Richard Feldman
046187d42a Start adding some parser combinators 2019-09-02 02:01:34 -04:00
Richard Feldman
5ebd18c480 Introduce Arena-allocated Parser 2019-09-02 00:15:07 -04:00