Commit Graph

20334 Commits

Author SHA1 Message Date
Richard Feldman
5dabc53c2b Add some eval tests 2019-05-26 23:11:05 -04:00
Richard Feldman
5787fed8bd Rename test_parse module 2019-05-26 23:10:48 -04:00
Richard Feldman
f7e8ebc6d8 Use skip_many 2019-05-26 11:05:55 -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
298716a925 Use Rc<Expr> in vars:HashMap 2019-05-24 02:28:41 -04:00
Richard Feldman
6ea7649c5f Introduce eval.rs 2019-05-24 02:13:45 -04:00
Richard Feldman
be7e65bc88 Introduce Bool and rename String to Str 2019-05-24 01:54:45 -04:00
Richard Feldman
46f281d399 Add im_rc 2019-05-24 01:54:10 -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
3b34c82b42 Introduce Closure 2019-05-22 22:02:31 -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
b3f3f08c96 Add Expr::Let 2019-05-20 22:02:24 -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
dd0b62deec Update gui 2019-05-19 00:28:59 -04:00
Richard Feldman
28e3978f10 Remove box syntax and some whitespace 2019-05-18 23:47:34 -04:00
Richard Feldman
757aac6343 Window clearing 2019-05-17 06:26:28 -04:00
Richard Feldman
eb36087fd4 Store WinitState 2019-05-16 21:36:00 -04:00
Richard Feldman
887b68a680 Add gui/src/main.rs 2019-05-16 21:27:41 -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
cfa05f1078 Identifiers must have at least 1 char 2019-05-04 13:32:20 -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
c8e18f0309 Rename some stuff from maybe to opt 2019-04-19 23:54:05 -04:00
Richard Feldman
62cdb0b69e Skip spaces at end of expr 2019-04-19 23:53:47 -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
bc00365bac Expressions must end in eof 2019-04-17 20:30:05 -04:00
Richard Feldman
dce39428f2 Add Var 2019-04-17 20:12:16 -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
864eecf44c Delete obsolete stuff 2019-04-17 19:32:10 -04:00