Commit Graph

112 Commits

Author SHA1 Message Date
felipegchi
9f94818d41 style: added a lot of tests, benchmarks and fixed code style 2022-11-30 11:19:14 -03:00
felipegchi
b7b15e7590 fix: bug fixes and improvements in the code style 2022-11-29 11:23:34 -03:00
felipegchi
3aec490f39 refactor: moved tests folder 2022-11-28 14:49:49 -03:00
felipegchi
6dd1bffae2 feat(all): a lot of features and changed to HVM2 2022-11-23 13:08:02 -03:00
felipegchi
c91d6a09e8 wip: upgraded to hvm splitted into multiple crates and fixed code style of some parts of the compiler 2022-11-22 09:56:06 -03:00
Felipe g
13f017c375 chore: removed query and macros from the toml because they're not being used 2022-10-14 13:13:58 -03:00
Felipe g
ef3097067e chore: fmt 2022-10-13 08:26:21 -03:00
Felipe g
b09b544e55 refactor: started to refactor the entire compiler inspired in rustc 2022-10-04 14:02:44 -03:00
Victor Maia
d4ef33305c Inc version 2022-10-01 16:33:56 -03:00
Victor Maia
959914a6b3 Inc version 2022-09-30 11:58:08 -03:00
Victor Maia
c40fb4eb11 Merge branch 'master' of github.com:kindelia/kind2 2022-09-30 11:57:59 -03:00
Felipe g
dd7b02f939 Added timeout in everything 2022-09-26 11:06:24 -03:00
Felipe g
8d3b03d38c Fix workflows 2022-09-21 13:05:54 -03:00
Felipe g
e6d79950d9 Added configuration and some fixes 2022-09-21 13:05:53 -03:00
Felipe g
22b16054e6 Fix toml 2022-09-21 13:05:53 -03:00
Felipe g
fe983a9cf8 Fix version 2022-09-21 13:05:53 -03:00
Felipe g
1a02e2d1e3 Fix structure 2022-09-21 13:05:53 -03:00
Felipe g
bdd438b8f7 Finished split 2022-09-21 13:05:53 -03:00
Felipe g
b996312813 Changed structure 2022-09-21 13:05:53 -03:00
Felipe g
1e8b0024e3 Refactor 2022-09-21 13:05:53 -03:00
Victor Maia
a0139cbd90 Inc version 2022-09-15 15:58:52 -03:00
Victor Maia
d58784bfd0 Inc version 2022-09-07 22:00:04 -03:00
Victor Maia
d822149f4f Inc version 2022-09-07 14:20:46 -03:00
Victor Maia
26f55b3677 Inc version 2022-09-06 15:12:56 -03:00
Victor Maia
eae62b40e2 Merge branch 'master' of github.com:kindelia/kind2 2022-09-06 15:11:50 -03:00
Victor Maia
70004a7224 Inc version 2022-09-06 15:08:18 -03:00
Victor Taelin
81a1240962
Merge pull request #356 from developedby/kindelia-names
Fixes and improvements for the kindelia compiler
2022-09-06 14:53:22 -03:00
Victor Maia
3ff86299a1 Consider reductions of function before InvalidCall error 2022-09-04 21:48:44 -03:00
Nicolas Abril
06ebf9f05a Merge branch 'master' of https://github.com/Kindelia/Kind2 2022-09-03 13:32:22 -03:00
Nicolas Abril
2f9313abe0 Fixes and improvements for the kindelia compiler
Add an alternate name for function, to be used as the kindelia name.
Syntax is `Function.name #kdl_name (args) : type`

For functions that don't have a kindelia name, try to fit their names to 12 characters by truncating the last part of the name and inserting some random characters to avoid collisions. For example: `Fn.with_a_long_name` becomes `Fn.with_aF5m`, with the last 3 characters being random.
This takes the start of the function up to the last `.` as the namespace.

Compile entries with arity 0 as constructors.

Don't compile constructors of type Type.
This doesn't cover all cases of invalid constructors.
For example: `Fn (a: U60) : U60.if a Type U60` will still try to compile and fail.

Fix a bug where function applications where being compiled as constructors.

Don't compile erased arguments anymore.

Check for invalid Nil terms in compilation.
2022-09-03 13:26:58 -03:00
Victor Maia
bfa613ea5a Use ## for sub syntax 2022-09-03 00:28:20 -03:00
Victor Maia
f1dfa0a30d Add sub syntax 2022-09-03 00:18:07 -03:00
Victor Maia
1cca987277 Move benchmarks out, update README 2022-09-02 14:23:13 -03:00
Victor Maia
0db022773c Fix ann checker 2022-08-30 20:56:11 -03:00
Victor Maia
863cc496cc Inc version and rebuild 2022-08-25 13:28:04 -03:00
Victor Maia
19fc3cbcbd Prevent checker from fully evaluating top-level types 2022-08-24 16:07:46 -03:00
Victor Maia
73e1e70785 Update HVM 2022-08-19 17:31:39 -03:00
Victor Maia
e21cd202af Inc version 2022-08-19 13:27:30 -03:00
Victor Maia
02cc798cf0 Inc version 2022-08-19 13:18:29 -03:00
Victor Maia
60cf29dfeb Stringify string literals on Rust side 2022-08-17 21:42:45 -03:00
Victor Maia
b109ee674f Fix expected/detected flipped 2022-08-17 21:22:58 -03:00
Victor Maia
e8cc429948 Hide hole numbers 2022-08-17 16:29:09 -03:00
Victor Maia
a7c3b0ab7b Implement HVM.log 2022-08-17 16:24:36 -03:00
Victor Maia
dde08af0cb Fix <= parser 2022-08-16 12:40:16 -03:00
Victor Maia
826e121674 Sigma.new syntax 2022-08-13 22:40:04 -03:00
Victor Maia
5a13856ada Annotated lambdas 2022-08-13 22:20:15 -03:00
Victor Maia
14b16122e7 Update HVM 2022-08-13 21:40:20 -03:00
Victor Maia
04156eaa77 Udpate HVM 2022-08-13 21:32:00 -03:00
Victor Maia
d6987d1793 Inc version 2022-08-13 21:30:14 -03:00
Victor Maia
e4417d2732 Increase max HVM arity 2022-08-13 21:28:50 -03:00