Richard Feldman
2fc2b3f141
Merge pull request #43 from rtfeldman/lift-types
...
Uniqueness types foundations
2019-12-05 19:23:13 -05:00
Folkert
6db31f44b7
fix test
2019-12-05 13:33:38 +01:00
Folkert
c51f424ff2
add tests for boolean unification and simplification
2019-12-05 13:29:05 +01:00
Chadtech
4fff9068c2
Merge branch 'trunk' into ct/comment-tests-and-new-line-tests
2019-12-04 22:53:02 -05:00
Chad Stearns
c8acb705f8
Added failing test, removed comment
2019-12-04 22:48:28 -05:00
Chad Stearns
5bc8f24d7f
Clarified example
2019-12-04 22:44:59 -05:00
Richard Feldman
fc35b5fcf3
Merge branch 'trunk' into lift-types
2019-12-04 22:39:06 -05:00
Chad Stearns
7a2fd182df
Cohere naming with rest of modul
2019-12-04 22:38:57 -05:00
Richard Feldman
69e3629274
Merge pull request #44 from rtfeldman/fix-unicode-bug
...
Fix unicode parsing bug
2019-12-04 22:38:54 -05:00
Chad Stearns
ff6e08daf6
Clarify and comment test.
2019-12-04 22:36:28 -05:00
Chad Stearns
edd8877865
Format tests for comment position and new lines
2019-12-04 22:33:02 -05:00
Richard Feldman
59dc729209
Fix unicode parsing bug.
2019-12-04 21:29:50 -05:00
Folkert
5923fc364d
hook up boolean_algebra module
2019-12-04 23:28:43 +01:00
Folkert
e3f308759a
move boolean things into their own module
2019-12-04 23:11:29 +01:00
Folkert
a67c60eb83
implement boolean constraint simplification
2019-12-04 20:47:54 +01:00
Folkert
55d4447a2c
do what clippy wants
2019-12-04 20:25:52 +01:00
Folkert
dbec765b44
remove symbols bound by let from var_usage
2019-12-04 20:23:09 +01:00
Folkert
7514f986ba
remove old sharing analysis
2019-12-04 20:23:02 +01:00
Folkert
87b175880b
Do sharing analysis with constraint generation
...
This works around an aliassing issue, e.g in
(\val -> val) (\val -> val)
Or
case b when
Foo x -> x + x
Bar x -> x
In both cases, the two functions/two branches have a variable with the
same symbol, but one that is really distinct.
Thus after processing a function or case or let (not added yet), the
bound variables must be removed from the var_usage map.
2019-12-04 20:08:58 +01:00
Folkert
f1ccd52c5c
Merge branch 'sharing-analysis' into lift-types
2019-12-04 15:08:09 +01:00
Folkert
072bba4ced
add boolean constraint types
...
These constraints are not generated nor solved yet, but can now be
expressed
2019-12-04 15:06:31 +01:00
Richard Feldman
2cd599851f
Merge pull request #42 from rtfeldman/ct/typos-0
...
Two typos in various docs
2019-12-04 07:31:48 -05:00
Chadtech
988a5401f9
Merge branch 'trunk' into ct/typos-0
2019-12-03 22:03:13 -05:00
Chad Stearns
874e747752
Fixed two typos in various docs
2019-12-03 20:44:41 -05:00
Richard Feldman
6bd9a6b2ce
Merge pull request #41 from rtfeldman/load-builtins
...
Load builtins
2019-12-03 20:15:03 -05:00
Richard Feldman
b5a10eee20
cargo fmt
2019-12-03 19:55:46 -05:00
Folkert
3bd6aaa882
lift types like Int
to Attr * Int
...
only does the lifting, next step is relations between the uniqueness
attributes.
2019-12-04 00:31:50 +01:00
Richard Feldman
2387862d87
Test loading with builtins
2019-12-03 17:47:00 -05:00
Richard Feldman
f2f02817ea
Load builtins
2019-12-03 17:47:00 -05:00
Richard Feldman
c0ab34d502
Merge pull request #36 from rtfeldman/double-typecheck
...
Double typecheck
2019-12-03 02:04:54 -05:00
Richard Feldman
23778c7c51
Fix typo in comment
2019-12-03 01:51:00 -05:00
Richard Feldman
f539202977
Remove some leftover dbgs
2019-12-03 01:50:54 -05:00
Richard Feldman
b16059ff91
Use Tag variants in uniqueness/mod.rs
2019-12-03 01:49:42 -05:00
Richard Feldman
8a1e202849
Remove declared_variants from uniqueness
2019-12-03 01:49:27 -05:00
Richard Feldman
4d4de3746d
Merge remote-tracking branch 'origin/trunk' into double-typecheck
2019-12-03 01:44:56 -05:00
Richard Feldman
d9725bc010
Merge pull request #40 from rtfeldman/improve-solving
...
Improve solving
2019-12-03 01:44:34 -05:00
Richard Feldman
5eb843326c
Update solve and unify
2019-12-03 01:31:08 -05:00
Richard Feldman
c41167ec6e
Drop obsolete tests
2019-12-03 01:22:36 -05:00
Richard Feldman
6b2fd35de2
Drop obsolete comment
2019-12-03 01:22:36 -05:00
Richard Feldman
4ea84571e6
Merge branch 'trunk' into double-typecheck
2019-12-03 00:33:56 -05:00
Richard Feldman
68bd65698b
Merge pull request #39 from rtfeldman/tags
...
Tags
2019-12-03 00:33:42 -05:00
Richard Feldman
a57c3d6ec8
Do what clippy says
2019-12-02 22:19:09 -05:00
Richard Feldman
038bad7123
Update builtins docs
2019-12-02 18:36:59 -05:00
Richard Feldman
57183c334a
Drop some dead code
2019-12-02 18:36:59 -05:00
Richard Feldman
1d18f4cc85
Use private/global tags and Access over Field
2019-12-02 18:36:59 -05:00
Richard Feldman
651e4563f7
Merge branch 'trunk' into double-typecheck
2019-12-02 17:18:12 -05:00
Richard Feldman
468e285654
Merge pull request #38 from rtfeldman/fix-desugar
...
Fix desugar performance
2019-12-02 17:17:45 -05:00
Richard Feldman
ed7529a991
Use ref to avoid def.clone()
2019-12-01 21:37:15 -05:00
Richard Feldman
61825d5dab
Fix Nested BinOp bug in Infixes
2019-12-01 21:25:13 -05:00
Richard Feldman
f069bf252c
Fix bug with Nested and BinOp
2019-12-01 21:12:53 -05:00