greg
71b3365de2
Remove all the rest of the instances of Meta from the AST
...
Still need to do tests
2019-09-20 02:21:39 -07:00
greg
8d1e0ebdea
Start to get rid of Meta
2019-09-20 01:57:48 -07:00
greg
c9052e0a3b
QualifiedName with id
2019-09-19 01:34:21 -07:00
greg
56e6eb44f9
Finish adding ItemId to Expression
2019-09-18 14:15:05 -07:00
greg
b91c3c9da5
Change design of Statement AST node
2019-09-17 02:25:11 -07:00
greg
08da787aae
Make AST a struct
2019-09-11 19:25:12 -07:00
greg
6c3a4f907b
Warning cleanup, TODOs
2019-09-10 03:40:41 -07:00
greg
79635f2f86
Add Meta annotation to QualifiedName
2019-09-06 10:03:50 -07:00
greg
b4da57f5c5
Make Meta<Expression> exist everywhere it needs to
2019-09-02 14:41:09 -07:00
greg
8b87945bee
Wrap remaining Expressions in Meta
2019-09-02 14:13:53 -07:00
greg
34abb9b081
Start work on qualified names
2019-08-31 23:39:01 -07:00
greg
063a13f7ff
Move BinOp into ast subcrate
...
now builtins is only builtin semantics and has nothing to do with
operators
2019-08-15 06:28:40 -07:00
greg
44938aa4e6
Starting to refactor binop
2019-08-14 09:26:08 -07:00
greg
0dd6b26e5a
Move where PrefixOp lives
2019-08-13 04:17:17 -07:00
greg
d67ccf5c7a
Refactor Expression struct
...
to have explicit kind and type_anno fields, to make it clearer
that this represents source-code level annotation and not any kind
of type inference intermediate product
2019-07-10 18:52:25 -07:00
greg
33c2786ea1
More complicated FormalParam type
2019-06-16 14:56:52 -07:00
greg
40579d80ce
More work on args
...
not quite done
2019-06-12 03:28:46 -07:00
greg
6da6f6312d
Remove more unused code
2019-05-20 22:04:14 -07:00
greg
ce2a65b044
Clean up some unused code
2019-05-20 16:10:50 -07:00
greg
98db60498a
Add very basic symbol table test shim
2019-03-07 23:51:31 -08:00
greg
0bcd7e6f41
Add new_env method
...
This is basically the same as the one on the evaluator and makes use of
the ScopeStack - maybe need to generalize this more?
2019-02-27 02:15:19 -08:00
greg
d515b1658a
Some fixes
2019-02-24 16:24:45 -08:00
greg
e501f4bd10
Various cleanup of comments, stringifying types
2019-02-23 09:59:41 -08:00
greg
5bac01cf20
More boilerplate for apply
2019-02-23 03:55:46 -08:00
greg
0e9b3229e9
Refactor Arrow; add general handle_apply
2019-02-23 03:33:56 -08:00
greg
b709cfd51a
Start adding call
2019-02-23 02:50:11 -08:00
greg
e34295a6f7
Starting on lambda typechecking
2019-02-23 02:45:11 -08:00
greg
8dc34e4b49
Fresh type var
2019-02-23 01:27:32 -08:00
greg
2cc3367666
Unify var-var
2019-02-23 01:20:19 -08:00
greg
452f2ab188
Unify var-const
2019-02-23 01:18:15 -08:00
greg
be175a2b75
Add more infrastructure for unify
2019-02-23 00:59:58 -08:00
greg
00a0de4431
Add ena crate for unification
2019-02-23 00:34:44 -08:00
greg
f041cc17d2
Wrap all Expression nodes in Meta<Expression>
2019-02-21 23:35:18 -08:00
greg
95fe1941a1
Kill some unused items
2019-02-21 18:39:41 -08:00
greg
9bb3a2be88
Add type data handle on Node
...
I think the way I want to handle this is a two-step process: first infer and
fill in variables, then unfiy in a separate step. Storing the data in
the AST is handy.
2019-02-21 01:46:27 -08:00
greg
9fa0576547
Rename ExpressionType -> ExpressionKind
2019-02-21 01:26:51 -08:00
greg
6fba0cc5b4
Add variables
2019-02-21 01:17:34 -08:00
greg
03793e08d3
Typechecking operators
2019-02-20 03:27:46 -08:00
greg
2be55958f4
add Into<String> arg for error constructors
2019-02-20 02:06:58 -08:00
greg
bcf48d0ecb
First tests for typechecking
2019-02-20 01:33:45 -08:00
greg
f0ed63ccf3
Basic if-statement checking
2019-02-19 23:00:41 -08:00
greg
6012bd1087
Variables
2019-02-19 21:41:07 -08:00
greg
df7e74c79d
Types with arguments
2019-02-17 04:31:02 -08:00
greg
abbd02eaef
Use ty! macro
2019-02-17 04:25:38 -08:00
greg
993741e67f
Get rid of typecheck_
2019-02-17 04:08:49 -08:00
greg
fbb7b995b8
Rename mk_type! to ty!
...
Doesn't seem to conflict with the same macro in the parser tests, so should be
ok
2019-02-17 03:38:15 -08:00
greg
9d4f086a04
Put mk_type! in typechecking module
2019-02-17 03:36:12 -08:00
greg
e38ae1c3f1
Fix type to make it compile
2019-02-15 21:11:50 -08:00
greg
d969d573fa
Starting work on values
2019-02-12 21:14:13 -08:00
greg
35da1748f0
Some more type work
2019-02-10 12:21:12 -08:00