Commit graph

9048 commits

Author SHA1 Message Date
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
Richard Feldman
75220a6834 Revert "Attempt at making type annotation parser."
This reverts commit 71ba2e83d3.
2019-09-01 17:17:35 -04:00
Richard Feldman
71ba2e83d3 Attempt at making type annotation parser.
Fails due to running into compiler's recursion limit.
2019-09-01 17:14:51 -04:00
Richard Feldman
f95aa1c394 Add type alias for String 2019-09-01 00:51:22 -04:00
Richard Feldman
04595a9e71 Frac+Approx --> Float 2019-09-01 00:50:11 -04:00
Richard Feldman
695d1eb467 Use type aliases when pretty printing types 2019-09-01 00:49:59 -04:00
Richard Feldman
20725b862d Add test for type of operator 2019-09-01 00:04:00 -04:00
Richard Feldman
b99a1e4235 Add a list parsing test 2019-08-31 23:24:04 -04:00
Richard Feldman
e961575dbd Fix list parsing bug 2019-08-31 23:23:59 -04:00
Richard Feldman
c2f1c42d31 Fix Located (works now for some reason) 2019-08-31 23:17:47 -04:00
Richard Feldman
f8f28e1f29 Reproduce list parsing bug 2019-08-31 23:15:17 -04:00
Richard Feldman
2424170dfa Add basic operator inference 2019-08-31 22:58:27 -04:00
Richard Feldman
5291e41b4b Add failing operator test 2019-08-31 21:36:45 -04:00
Richard Feldman
244735d325 Add some more tests 2019-08-31 21:36:36 -04:00
Richard Feldman
966bb60766 Infer function calls 2019-08-31 21:32:14 -04:00
Richard Feldman
a2a9e9c022 Link back to Rust CoC 2019-08-31 21:31:56 -04:00
Richard Feldman
aa47ae0706 Expand multiple Let test 2019-08-31 01:30:00 -04:00
Richard Feldman
9c21cb3a6d Add a comment about FunctionPointer 2019-08-31 01:01:36 -04:00
Richard Feldman
13623e3f5f Fix canonicalization bug without regressions. 2019-08-31 00:59:50 -04:00
Richard Feldman
767852eb56 Revert "Fix canonicalization bug."
This reverts commit d4c3a8c4cb.
2019-08-31 00:31:52 -04:00
Richard Feldman
d4c3a8c4cb Fix canonicalization bug. 2019-08-31 00:29:16 -04:00
Richard Feldman
c32c893281 Infer multiple assignments together 2019-08-30 22:46:31 -04:00
Richard Feldman
741a97f951 Reproduce multiple string assignment failure 2019-08-30 01:05:32 -04:00
Richard Feldman
386a650e96 Use Vec::new over vec![] 2019-08-30 01:05:05 -04:00
Richard Feldman
18d74230ac Reproduce transitively used function bug 2019-08-30 01:02:55 -04:00
Richard Feldman
2e12651858 Infer multiple assignments 2019-08-30 00:57:47 -04:00
Richard Feldman
eae1f564db Infer interpolated strings 2019-08-30 00:57:30 -04:00