Commit Graph

660 Commits

Author SHA1 Message Date
LunaAmora
3b91b0b72a Normalize import paths, update absolute path folder 2024-07-05 10:22:45 -03:00
LunaAmora
5666077879 Update import syntax to be python-like 2024-07-05 10:22:45 -03:00
LunaAmora
7ae5886eed Add some imports tests 2024-07-05 10:22:45 -03:00
LunaAmora
7c3c919fe8 Limit adt tag defs be generated or builtin 2024-07-05 10:22:45 -03:00
LunaAmora
ba2c66f29a Add basic import support 2024-07-05 10:22:45 -03:00
Eduardo Sandalo Porto
a2b75ffa3f
Merge pull request #618 from HigherOrderCO/fix-redundant-match
Fix bugs with the irrefutable case optimization
2024-07-05 13:17:13 +00:00
Eduardo Sandalo Porto
91ceca04c9 Run cargo fmt 2024-07-04 16:30:11 -03:00
Eduardo Sandalo Porto
4e0823a015 Fix bugs with the irrefutable case optimization 2024-07-04 16:22:34 -03:00
imaqtkatt
659d0941b5 Add asin, acos, atan and round functions 2024-07-04 16:03:48 -03:00
imaqtkatt
24a72e4465 Add missing test snapshot 2024-07-04 14:35:01 -03:00
imaqtkatt
e0642c239b Add run math test 2024-07-04 14:30:28 -03:00
imaqtkatt
346d2fb8c0 Don't allow repeated field names 2024-07-03 11:45:55 -03:00
imaqtkatt
842891cbf4 Add missing error message 2024-07-02 09:14:02 -03:00
imaqtkatt
d3cce02500 Implement 'def' term 2024-07-01 18:21:49 -03:00
imaqtkatt
cf6af170b5 Fix inner definitions as closures 2024-06-28 12:26:39 -03:00
imaqtkatt
0cd4386f32 Reorder local defs lifting 2024-06-28 11:08:03 -03:00
imaqtkatt
1785b392fe Add local def statement 2024-06-27 15:23:38 -03:00
imaqtkatt
94bff60775 Add test with unscoped pattern on definition rule 2024-06-25 18:10:26 -03:00
Nicolas Abril
a0aa467b73
Merge pull request #599 from HigherOrderCO/578-add-user-friendly-file-io-functions
#578 Add File IO utility functions
2024-06-24 18:04:35 +00:00
imaqtkatt
c23952f443 Implement fast pred access function 2024-06-24 12:45:15 -03:00
Nicolas Abril
ea56af9048 Add file IO utils 2024-06-21 20:19:43 +02:00
imaqtkatt
8694b79500 Add elif chain to functional syntax 2024-06-20 16:12:49 -03:00
imaqtkatt
4b9032ecfb Improve decode builtins 2024-06-19 09:25:35 -03:00
imaqtkatt
cc60c926a8 Add utf8 and ascii encoding functions 2024-06-18 18:41:33 -03:00
imaqtkatt
ec67e3f6be Add full_map test 2024-06-17 12:29:51 -03:00
imaqtkatt
5810f93f9b Update golden_tests.rs and readd desugar_use call after linearize matches 2024-06-17 12:20:08 -03:00
imaqtkatt
3073285e36 Call desugar_use before linearize matches 2024-06-17 11:40:55 -03:00
Nicolas Abril
ba8561c3d4 Add native number cast operations 2024-06-17 15:45:37 +02:00
Nicolas Abril
be7b8d3cad Fix parsing of hvm defs 2024-06-15 18:57:36 +02:00
Nicolas Abril
d6bdde548e Add raw hvm function syntax 2024-06-15 17:22:55 +02:00
imaqtkatt
f8811850a7 Update num ops test 2024-06-13 10:39:07 -03:00
Eduardo Sandalo Porto
e57a90ffc8 Change shader example in the guide
Necessary due to the newly-implemented safety checking for HVM
2024-06-10 18:35:29 -03:00
imaqtkatt
168892ddb7 Don't allow tabs 2024-06-10 10:04:09 -03:00
imaqtkatt
3a023c6928 Update builtins.rs and redefinition error messages for types and objects 2024-06-07 18:57:45 -03:00
imaqtkatt
0d2d2bb01e Improve function redefinition error message 2024-06-07 17:25:23 -03:00
Nicolas Abril
ae5e79c1be Fix readback of numeric operations 2024-06-07 17:59:41 +02:00
imaqtkatt
be7248638d Display lambda bind patterns as lets 2024-06-06 11:35:47 -03:00
imaqtkatt
3a62e01d86 Implement le and ge operators 2024-06-05 17:44:05 -03:00
Nicolas Abril
94cada901d Expand refs in main, don't float combinators in main 2024-06-05 19:02:44 +02:00
Nicolas Abril
c97e47107d
Merge pull request #546 from HigherOrderCO/528-add-syntax-for-a-builtin-tree-type
528 Add syntax for a builtin Tree type
2024-06-05 16:02:05 +00:00
Nicolas Abril
2efc8fcb37
Merge pull request #454 from ematth/main
List Function Examples
2024-06-05 14:19:32 +00:00
Nicolas Abril
b4bf3dede2 Add Tree syntax and builtins 2024-06-05 16:00:43 +02:00
imaqtkatt
bb428fa09c Call expand_generated for succ_term 2024-06-04 14:43:11 -03:00
Nicolas Abril
ce4f6c7067 Rename hvm bin option to hvm-bin, add env var with same name 2024-06-03 17:26:39 +02:00
Nicolas Abril
a5066181c5
Merge pull request #535 from HigherOrderCO/hvm-path-option
Hvm path option
2024-05-31 19:19:03 +00:00
Nicolas Abril
8e652500d8 Run cargo fmt 2024-05-31 21:04:50 +02:00
Nicolas Abril
3705094b6d Add unbound refs check 2024-05-31 18:52:22 +02:00
evanmm3
2140f7a3a7 insta test/review completed 2024-05-31 09:09:01 -05:00
Renato Alencar
ec0dd6fa68 Add --hvm option in order to make it configurable 2024-05-30 21:46:24 -03:00
Nicolas Abril
137591f7ae Fix dictionary and rename readback test 2024-05-30 23:37:26 +02:00