Commit graph

151 commits

Author SHA1 Message Date
Richard Feldman
81b005c33d Reproduce nested let bug 2019-06-12 21:25:15 -04:00
Richard Feldman
34229d3a29 Cut unnecessary stuff 2019-06-12 21:25:15 -04:00
Richard Feldman
6c0e34f5fc Use SmallVec for patterns 2019-06-12 21:25:15 -04:00
Richard Feldman
b034e8a486 Revert "Use immutable Vector in Expr"
This reverts commit 89eb88deace1eac2bebdf640ef00bdabf17fef6a.
2019-06-12 21:25:15 -04:00
Richard Feldman
1087a15d32 Use immutable Vector in Expr 2019-06-12 21:25:15 -04:00
Richard Feldman
064665c3b5 Add multiline_func test 2019-06-12 21:25:15 -04:00
Richard Feldman
21cc3c9333 Fix some variant parsing bugs 2019-06-12 21:25:15 -04:00
Richard Feldman
ae53e611c7 Remove parse_ prefix from parse tests 2019-06-12 21:25:15 -04:00
Richard Feldman
a9f5e258c6 Add failing test for indented if 2019-06-12 21:25:15 -04:00
Richard Feldman
5787fed8bd Rename test_parse module 2019-05-26 23:10:48 -04:00
Richard Feldman
d2fa6f003a Add more multi-arg function tests 2019-05-26 10:57:51 -04:00
Richard Feldman
edf2c2f9d0 Add test for calling function with multiple args 2019-05-26 01:26:14 -04:00
Richard Feldman
ca8fae6ca1 Fix function application and operator precedence 2019-05-26 01:24:57 -04:00
Richard Feldman
1819b9955f Functions can take mulitple args. 2019-05-26 01:09:36 -04:00
Richard Feldman
55020f6d9f Reduce Boxing for Apply 2019-05-22 22:04:30 -04:00
Richard Feldman
9b13df8fd7 Add a more complex let test 2019-05-22 22:02:44 -04:00
Richard Feldman
91aac9a86e Introduce Pattern 2019-05-22 21:54:46 -04:00
Richard Feldman
89c71e9c1d Fix indentation checking on spaces 2019-05-22 20:29:39 -04:00
Richard Feldman
ed8c7618df Add more operator and paren tests 2019-05-22 19:43:06 -04:00
Richard Feldman
21d1a99a1f Got let-exprs and vars coexisting 2019-05-22 19:38:33 -04:00
Richard Feldman
23e2f04468 wip trying to get let working 2019-05-22 00:17:45 -04:00
Richard Feldman
530a50be14 Use indentation tracking and unexpected_any for ident problems 2019-05-21 22:18:33 -04:00
Richard Feldman
72a7cf8d1b Make IndentablePosition 2019-05-20 21:44:10 -04:00
Richard Feldman
cc4759b239 Add SourcePosition to parser 2019-05-19 20:10:50 -04:00
Richard Feldman
28e3978f10 Remove box syntax and some whitespace 2019-05-18 23:47:34 -04:00
Richard Feldman
8222c11a9e Add if-expressions 2019-05-07 21:30:02 -04:00
Richard Feldman
a842ce376d Fix parsed apply missing an attempt 2019-05-04 16:57:20 -04:00
Richard Feldman
f75f4a3ae7 Restore failing test for parsed apply 2019-05-04 16:40:04 -04:00
Richard Feldman
1513a50f72 Add test for complex expr with 2 operators 2019-05-04 16:39:54 -04:00
Richard Feldman
1831dfe9c0 Fix bug with parens followed by operator 2019-05-04 15:18:41 -04:00
Richard Feldman
20528cc3f3 Use SyntaxProblem for idents that begin with a digit 2019-05-04 15:14:04 -04:00
Richard Feldman
2a67b3fcd3 Made IdentProblem a thing 2019-05-04 13:10:18 -04:00
Richard Feldman
9bedae3ba6 Move eof() out of expr() and into tests 2019-05-03 23:37:34 -04:00
Richard Feldman
58fff43764 Add some more test cases 2019-04-19 23:54:40 -04:00
Richard Feldman
b6289b1283 Fix paren parsing 2019-04-19 22:14:43 -04:00
Richard Feldman
6c84cb43fc Fix parsing vars and funcs 2019-04-19 20:53:14 -04:00
Richard Feldman
5c9c77dbe0 Actually parse string literals 2019-04-19 20:52:47 -04:00
Richard Feldman
21826c6e29 Add parens and function application 2019-04-17 21:03:50 -04:00
Richard Feldman
5db85ab23e Expand var parsing tests 2019-04-17 20:30:13 -04:00
Richard Feldman
26db018067 Add test for Var 2019-04-17 20:12:12 -04:00
Richard Feldman
9ea059a718 Cleanup warnings, get tests passing 2019-04-17 19:39:53 -04:00
Richard Feldman
037d2bb400 Add a specialized error message for empty char 2019-03-15 22:16:01 -04:00
Richard Feldman
7ebf56e7fc Add more string and char literal parsing tests 2019-03-15 00:46:57 -04:00
Richard Feldman
3f304aca72 Parse chars 2019-03-15 00:39:03 -04:00
Richard Feldman
01fcd2e9ad Parse string literals with escapes. 2019-03-15 00:16:01 -04:00
Richard Feldman
6bda934271 Refactor number literal tests 2019-03-14 21:42:28 -04:00
Richard Feldman
3926472d4c Parse basic strings 2019-03-14 21:38:57 -04:00
Richard Feldman
d57716ffe6 Shorten test names 2019-03-14 21:18:38 -04:00
Richard Feldman
f03fcbd0c2 Allow space-separated numbers 2019-03-14 21:17:35 -04:00
Richard Feldman
6c2aaf3234 Parse ratios 2019-03-14 20:58:27 -04:00