Commit Graph

595 Commits

Author SHA1 Message Date
Nicolas Abril
ee86833fae Add linearization of If terms 2023-10-11 16:32:14 +02:00
Nicolas Abril
c10ea546a4 Implement If term, partial fix for op2, stabilize nums! 2023-10-10 21:29:26 +02:00
Nicolas Abril
e269c0a5f1
Merge pull request #6 from imaqtkatt/master
Fix wrong error outputs
2023-10-10 15:55:45 +02:00
imaqtkatt
a167157b32 Create tests for error outputs 2023-10-10 10:39:38 -03:00
LunaAmora
922ab70573 Fix readback from new hvm-core version 2023-10-10 06:55:07 -04:00
Nicolas Abril
bc280b750f Update to latest hvm-core version, add numbers back, breaks readback 2023-10-09 20:07:48 +02:00
Nicolas Abril
e2e0ac3764 Fix some cases of type inference 2023-10-06 21:47:01 +02:00
Nicolas Abril
0bfe5fa361 Complete type inference pass (not working) 2023-10-05 22:16:34 +02:00
Nicolas Abril
de71aeee8c Fix flattening pass 2023-10-02 19:16:40 +02:00
Nicolas Abril
a872d76eae Add flattening pass, wip 2023-09-29 21:57:41 +02:00
Nicolas Abril
67f9924313 Forgot to test last changes 2023-09-27 18:27:07 +02:00
Nicolas Abril
22014065f4
Merge pull request #3 from LunaAmora/master
Add detach combinators pass
2023-09-26 17:57:32 +02:00
Nicolas Abril
c320fad0eb Make runtime memory size configurable 2023-09-26 17:53:58 +02:00
LunaAmora
52a2f02fdd Add detach combinators pass 2023-09-26 11:48:00 -04:00
Nicolas Abril
6904e81e67 Put numbers behind a disabled feature after hvm update 2023-09-25 17:33:55 +02:00
Nicolas Abril
8c196e1992 Rewrite affine pass, with support for let substitution 2023-09-23 16:06:53 +02:00
Nicolas Abril
306e1526f0 Use hvm-core's operation type enum 2023-09-22 21:28:41 +02:00
Nicolas Abril
5ca1d87115 Change Term enums to be 3 chars long 2023-09-22 20:50:35 +02:00
Nicolas Abril
f4a7bd3ec1 Add i32 numbers 2023-09-22 20:47:07 +02:00
Nicolas Abril
292ad27593 Detach def names from the id sent to hvm-core 2023-09-22 19:56:04 +02:00
Nicolas Abril
81dc55640b Add readback for NumOp 2023-09-22 16:42:25 +02:00
Nicolas Abril
f1d0898b48 Add support for integer addition following hvm update 2023-09-22 16:17:55 +02:00
Nicolas Abril
b024559d6b Update to latest HVM version 2023-09-21 22:38:39 +02:00
Nicolas Abril
a75932aeee Fix crash on affine pass when some variables are erased 2023-09-20 20:16:47 +02:00
Nicolas Abril
eb05c8b6e2 Slightly improve readback code 2023-09-19 21:24:57 +02:00
Nicolas Abril
735942144f Improve readback, warn on invalid readback. Add tests 2023-09-18 17:09:59 +02:00
Nicolas Abril
2e616e1db2 Add 3 global lambda tests 2023-09-14 19:42:49 +02:00
Nicolas Abril
af194db86c Go back to using 32bit nodes 2023-09-14 17:35:57 +02:00
Nicolas Abril
ee462e726a Add support for erased lambdas, clean passes 2023-09-12 21:04:39 +02:00
Nicolas Abril
3694dec0d4 Create valid var names on readback 2023-09-11 19:12:42 +02:00
Nicolas Abril
65fc8c6a41 Don't require parenthesis for the first level of a Rule's body 2023-09-11 18:58:32 +02:00
Nicolas Abril
34a2a11494 Make parser backwards compatible with old HVM 2023-09-11 17:56:56 +02:00
Nicolas Abril
3faedc1057 Avoid copying definition names so much; Separate semantic checking into module 2023-09-09 10:49:49 +02:00
Nicolas Abril
e2633b4abf Add correct error displaying on test 2023-09-08 18:40:40 +02:00
Nicolas Abril
0e35f20e65 Remove numops, update to new hvm repo 2023-09-08 16:10:28 +02:00
Nicolas Abril
846b823270 Add readback of results from HVM; Refactor CLI mode 2023-09-07 21:26:20 +02:00
Nicolas Abril
a8c9033cce Fix conversion of numbers 2023-09-06 20:43:30 +02:00
Nicolas Abril
493b518a52 Use hvm OP; Add test that runs in hvm 2023-09-05 20:23:23 +02:00
Nicolas Abril
1005f4072e Use the hvm repo types and fns; Switch to u64 nodes 2023-09-04 18:39:22 +02:00
Nicolas Abril
3996edac56 Add dup inference 2023-09-04 17:51:26 +02:00
Nicolas Abril
8162af4e34 Force def name character limit, allow new lines after let 2023-09-04 16:17:02 +02:00
Nicolas Abril
c201200e33 Have stable order for displaying defs 2023-09-01 17:57:44 +02:00
Nicolas Abril
e7683143dd Fix parsing and conversion to hvm core. Tidy up 2023-09-01 16:52:58 +02:00
Nicolas Abril
1a1d331c35 Implement a golden testing model for tests 2023-08-31 22:11:19 +02:00
Nicolas Abril
7731d2487c Finish initial version of hvm-lang to hvm-core compilation 2023-08-31 20:35:41 +02:00