Richard Feldman
57b015bb62
Reproduce case inference mistake
2019-11-08 20:33:09 -05:00
Richard Feldman
9a2c24e97a
Fix some constraint gen things
2019-11-08 20:32:54 -05:00
Richard Feldman
d06fe8d4be
Address a TODO in case canonicalization
2019-11-08 20:20:30 -05:00
Richard Feldman
d39604bf2f
Add Field to can/expr
2019-11-08 20:20:15 -05:00
Richard Feldman
3a4bc0b311
Test unary ops with parens
2019-11-08 00:09:38 -05:00
Richard Feldman
97d424f99b
Unary ops and case canonicalization compile!
2019-11-08 00:07:32 -05:00
Richard Feldman
7ab7fdb88c
Add unary operators
2019-11-04 21:25:55 -05:00
Richard Feldman
09c7d75f0d
wip canonicalize case
2019-11-03 20:24:34 +01:00
Richard Feldman
d8e0e77110
Write some docs
2019-11-03 20:23:09 +01:00
Richard Feldman
1cedc63f27
wip
2019-10-30 20:00:35 +01:00
Richard Feldman
ea8dafa746
First pass at code gen for case-expressions
2019-10-30 20:00:35 +01:00
Richard Feldman
bc866da2d6
Add failing test for codegen case-expression
2019-10-30 20:00:35 +01:00
Richard Feldman
7e910532c5
Fix parsing for case-expresison number literals
2019-10-30 20:00:35 +01:00
Richard Feldman
6fccf33c32
Desugar Case expressions
2019-10-30 19:58:49 +01:00
Richard Feldman
61e4ae83d9
Restore two_branch_case test
2019-10-30 19:58:21 +01:00
Richard Feldman
d6bebcd629
Remove some extraneous can/pattern data
2019-10-30 19:58:11 +01:00
Richard Feldman
67548a8922
Fix parsing defs
...
This may break annotation parsing. (I'm not sure; there are no annotation
parsing tests yet.) Something fishy is happening with the one_of2 in def().
If I remove the one_of2, then defs parse correctly. If I reverse the
order of one_of2's arguments, they also pass. This suggests the first
argument to one_of2 (the "parse type alias or custom type") logic was
passing...but on further investigation, it appears that is actually
failing. (Meaning it shouldn't affect one_of2!)
Needs further investigation when I get back to annotations, but for now,
this fixes the problem and leaves the code in a reasonable place.
2019-10-30 02:36:50 -04:00
Richard Feldman
39f4057dfa
Fix column number in some parsing tests
2019-10-30 02:36:35 -04:00
Richard Feldman
74b14531c9
Disable some inference tests for now.
2019-10-30 02:09:09 -04:00
Richard Feldman
6528be0ed1
Revert "Attempt to fix defs parsing"
...
This reverts commit 6156a5b8f9
.
2019-10-30 01:24:17 -04:00
Richard Feldman
6156a5b8f9
Attempt to fix defs parsing
2019-10-30 01:24:09 -04:00
Richard Feldman
daf2480e55
Revert "Drop unnecessary conditional"
...
This reverts commit 8eba1ea94f
.
2019-10-30 01:02:59 -04:00
Richard Feldman
d217514b36
Fix stack overflow in type_annotation parser
2019-10-30 01:02:20 -04:00
Richard Feldman
953dad5177
Use correct min_indent
2019-10-30 00:58:07 -04:00
Richard Feldman
7e10805c77
Drop debug printlns
2019-10-30 00:39:33 -04:00
Richard Feldman
8eba1ea94f
Drop unnecessary conditional
2019-10-30 00:38:54 -04:00
Richard Feldman
abdc19cf8e
Fix some test compilation errors
2019-10-29 18:26:18 -04:00
Richard Feldman
a130c6ab2f
wip
2019-10-29 18:01:31 -04:00
Richard Feldman
cc098985a9
Revert "wip lots of shared references"
...
This reverts commit 01d84c7221
.
2019-10-29 15:31:20 -04:00
Richard Feldman
9afc38d7e4
Fix some exhaustiveness errors
2019-10-29 01:16:48 -04:00
Richard Feldman
01d84c7221
wip lots of shared references
2019-10-29 01:12:15 -04:00
Richard Feldman
4894293e6b
wip
2019-10-29 00:56:39 -04:00
Richard Feldman
207993f04d
Remove extraneous .peekable()
2019-10-28 23:08:27 -04:00
Richard Feldman
705425c8c4
Redo record and type annotation parsing
2019-10-28 23:04:28 -04:00
Richard Feldman
f738d9db80
Revise Def structure
2019-10-26 15:31:39 -04:00
Richard Feldman
2d11659b57
Revise module header syntax example
2019-10-23 18:39:14 -04:00
Richard Feldman
0bf44e9649
Parser for module headers
2019-10-23 18:38:38 -04:00
Richard Feldman
eb37150e8f
Rename DivisionByZero to DivByZero
2019-10-21 20:13:28 -04:00
Richard Feldman
eeb2bb376c
Code gen ints and floats
2019-10-21 20:12:37 -04:00
Richard Feldman
e949188319
wip
2019-10-21 08:09:50 -04:00
Richard Feldman
c7dd1978fb
Re-constrain closures
2019-10-20 16:26:06 -04:00
Richard Feldman
593811d27f
Update BUILDING_FROM_SOURCE
2019-10-17 23:00:13 -04:00
Richard Feldman
7760b45cd5
Fix Var canonicalization bug
2019-10-17 22:46:44 -04:00
Richard Feldman
0850e39dc3
Fix missing List constraint
2019-10-17 22:41:43 -04:00
Richard Feldman
886116ce15
Canonicalize Defs, Apply, Var, and others
2019-10-17 22:33:16 -04:00
Richard Feldman
7cbe538492
Fix inference test setup
2019-10-17 09:51:00 -04:00
Richard Feldman
cb2672f57a
Use fewer magic constants
2019-10-17 09:50:22 -04:00
Richard Feldman
65f384cb6a
Restore some stuff to how it was before
2019-10-17 08:55:35 -04:00
Richard Feldman
695fb30021
wip
2019-10-17 00:12:42 -04:00
Richard Feldman
fb51a32b1f
Fix canonicalizing spaces
2019-10-17 00:06:22 -04:00