Richard Feldman
9b68fbe3c9
Add PRETTY_PRINT_DEBUG_SYMBOLS
2020-03-12 00:39:53 -04:00
Richard Feldman
173ba925ff
Formatting
2020-03-12 00:39:28 -04:00
Richard Feldman
db362f6df0
Reproduce named identity function bug
2020-03-12 00:31:53 -04:00
Richard Feldman
9db7d2229a
Remove a .clone() on procs
2020-03-11 22:18:44 -04:00
Folkert
c9644e4ee7
use snapshots to remove clone on Subs
2020-03-12 02:42:30 +01:00
Folkert
3dbaac210a
add snapshot functions to Subs
2020-03-12 02:38:38 +01:00
Richard Feldman
cf5e3f92a5
Have mono::Env store &mut Subs
2020-03-11 21:36:27 -04:00
Richard Feldman
2ad70d44a2
Rename Attr module to #Attr, drop #Attr.@Attr
2020-03-11 21:15:30 -04:00
Richard Feldman
df78068e81
Implement int and float subtraction
2020-03-11 21:10:41 -04:00
Richard Feldman
9fcfa90bff
Change capitalization
2020-03-11 21:06:08 -04:00
Richard Feldman
762b2c7b10
use IntOrFloat::*
2020-03-11 21:03:58 -04:00
Richard Feldman
a0c4e91792
Rename List.set_in_place to List.#setInPlace
2020-03-11 20:53:39 -04:00
Richard Feldman
21e4eb505a
Implement and test Float.#add
2020-03-11 20:53:35 -04:00
Richard Feldman
523282e7bc
Implement Int.#add
2020-03-11 20:53:32 -04:00
Richard Feldman
649575fab8
Improve some error messages
2020-03-11 19:48:19 -04:00
Richard Feldman
74b58db477
Use Procs::default()
2020-03-11 19:45:12 -04:00
Folkert
bb9c9d423a
make Procs a struct
2020-03-12 00:40:10 +01:00
Folkert
2d0649fa66
attempt fix for gen tests
2020-03-11 23:13:32 +01:00
Folkert
a037173cdb
complete the Content hashing
2020-03-11 23:00:44 +01:00
Folkert
f7a2be113e
monomorphize closures
2020-03-11 22:03:01 +01:00
Folkert
5c9cf0ef37
add type hash function
2020-03-11 22:01:56 +01:00
Folkert
4c9f2c1b6e
monomorphize addition
2020-03-11 15:24:44 +01:00
Folkert de Vries
8e11d69c45
Merge pull request #242 from rtfeldman/num
...
Plain number literals (e.g. `5`) are now `Num *`
2020-03-11 14:43:02 +01:00
Folkert
fb8e8570bc
Merge remote-tracking branch 'origin/trunk' into num
2020-03-11 14:30:50 +01:00
Folkert
d47d409a92
clean up to_int_or_float
...
with the changes from the previous commit, this now works as it should
2020-03-11 14:25:16 +01:00
Folkert
17348231fd
fix uniqueness Num inference
...
The variable in Num is the `a` in `Num a`. For Int/Float literals, it's a helper variable to generate better error messages
2020-03-11 14:18:26 +01:00
Folkert
9ba09c7d82
use Reason::NumLiteral in uniqueness inference
...
we can 'just' do that here because there is a var_store available. That isn't true for normal inference, where we would have to put the variable in during solving
2020-03-11 14:07:49 +01:00
Folkert de Vries
156704700b
Merge pull request #241 from rtfeldman/mono-enums
...
convert tag unions to mono enums
2020-03-11 14:03:19 +01:00
Richard Feldman
55623605f3
clippy mcclip
2020-03-11 00:11:23 -04:00
Richard Feldman
df85c086ab
Fix test_uniq_solve
2020-03-11 00:07:19 -04:00
Richard Feldman
c0837eca1c
Use constantNum over constantInt in load tests
2020-03-10 23:11:49 -04:00
Richard Feldman
a033f325f4
Support integer (Num *) patterns in jump tables
2020-03-10 23:08:26 -04:00
Richard Feldman
a0d762d1e5
Fix more mono::expr (Num *) cases
2020-03-10 23:06:11 -04:00
Richard Feldman
0bac39f9f1
Fix from_can for (Num *)
2020-03-10 22:59:30 -04:00
Richard Feldman
d4dc0eb683
Implement uniqueness for (Num *)
2020-03-10 22:53:53 -04:00
Richard Feldman
3ecbe0325c
Plain number literals (e.g. 5
) are now Num *
2020-03-10 22:27:13 -04:00
Folkert
fd1c29fb35
convert Tag to mono
2020-03-10 20:54:33 +01:00
Folkert
62f34c41cc
hardcode Bool alias
...
previously it would use the tag union, which would result in slightly worse error messages down the line
2020-03-10 15:21:39 +01:00
Folkert
657901d760
bubble up pointer_size
2020-03-10 15:16:44 +01:00
Folkert
7fea957979
hardcode Bool
2020-03-10 14:50:35 +01:00
Folkert
fef590b9f7
remove unneeded variable check in reporting
2020-03-10 13:44:54 +01:00
Folkert
246199ec3e
fixes after review
2020-03-10 12:01:13 +01:00
Richard Feldman
8da2bebcde
Remove some dbg! statements
2020-03-10 02:56:56 -04:00
Richard Feldman
28b50c00c0
Clean up some comments
2020-03-10 02:56:56 -04:00
Richard Feldman
21d6d1cbd9
Disable empty_list_len for now
2020-03-10 02:56:56 -04:00
Richard Feldman
913f18226b
Got LLVM structs working
2020-03-10 02:56:56 -04:00
Richard Feldman
8da7f26237
Try a different Struct approach
2020-03-10 02:56:56 -04:00
Richard Feldman
8450597a07
Try an alloca approach for structs
2020-03-10 02:56:55 -04:00
Richard Feldman
3789402a32
Rename List.length to List.len
2020-03-10 02:56:55 -04:00
Richard Feldman
f556f195d3
Handle more mono::Expr cases
2020-03-10 02:25:40 -04:00