Commit Graph

18695 Commits

Author SHA1 Message Date
Richard Feldman
7aab332650 Add variants 2019-06-12 21:25:15 -04:00
Richard Feldman
1aaab2dc17 Commas separate closure params 2019-06-12 21:25:15 -04:00
Richard Feldman
ea4d876a90 Fix closure parser and actually use it 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
ecb67ab4cf Pass scope to If during eval 2019-06-12 21:25:15 -04:00
Richard Feldman
9cb93dfdd5 Add first-ever .roc file 2019-06-12 21:25:15 -04:00
Richard Feldman
fc58c5db0e Add basic CLI 2019-06-12 21:25:15 -04:00
Richard Feldman
2844687d79 Expose parse::parse_string 2019-06-12 21:25:15 -04:00
Richard Feldman
81ef0cbc7b Make expr displayable 2019-06-12 21:25:15 -04:00
Richard Feldman
974e8e9392 Switch some panics to Error(TypeMismatch)) 2019-06-12 21:25:15 -04:00
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