Commit Graph

458 Commits

Author SHA1 Message Date
imaqtkatt
dc14ed2e30
Merge pull request #661 from HigherOrderCO/657-make-io-functions-return-result
#657 Make IO functions return Result
2024-08-07 16:48:02 +00:00
Gabriel Vérité
5ad9c72b7f Adds builtin functions Tree/reverse and Tree/to_list 2024-08-07 16:43:59 +02:00
imaqtkatt
ff7ff11b26 Update builtins to use io result 2024-08-07 09:38:36 -03:00
imaqtkatt
96d84d5257 Skip underscore in fraction indexes 2024-08-05 08:57:18 -03:00
imaqtkatt
dcc3642ab1 Change parse_number and fix float interpretation 2024-08-02 17:44:32 -03:00
imaqtkatt
c8383d112b Add test with mismatched ask branches 2024-08-01 15:44:11 -03:00
imaqtkatt
7f7846134e Allow branches to end with ask statement 2024-08-01 09:57:02 -03:00
imaqtkatt
37290f661b Substitute imported type names 2024-07-30 18:37:50 -03:00
imaqtkatt
646011ee0d Improve pattern parsing and rule parsing error messages 2024-07-26 12:05:45 -03:00
imaqtkatt
676d4ca732 Improve error messages of branching cases 2024-07-24 17:18:05 -03:00
Nicolas Abril
87cef6054d Expand references in main inside constructors 2024-07-24 17:04:19 +02:00
Nicolas Abril
435d3ca143 Expand float_combinators defs inside main 2024-07-24 17:04:19 +02:00
imaqtkatt
b53568a620
Merge pull request #637 from HigherOrderCO/554-tuples-should-be-defined-by-commaslike-python-not-by-parentheses
#554 tuples should be defined by commas like python not by parentheses
2024-07-22 17:04:26 +00:00
imaqtkatt
61af9c1102 Add tuple assign test 2024-07-22 10:41:03 -03:00
Nicolas Abril
d8d728a31d Add dylib functions, improve the builtins file a bit 2024-07-22 11:11:12 +02:00
imaqtkatt
cd1dbbe001 Tuple expressions to be defined by commas 2024-07-19 17:25:04 -03:00
imaqtkatt
2f8062bc5f Add cli test for input file not found 2024-07-10 22:07:19 -03:00
imaqtkatt
6020fbac8e Update multi line comment syntax, update changelog 2024-07-09 14:44:53 -03:00
imaqtkatt
f288ae7f12 Add multi line comment syntax 2024-07-08 13:30:02 -03:00
LunaAmora
53ca86848d Fix entry point reimports to give an error 2024-07-05 10:23:52 -03:00
LunaAmora
4814742247 Improve imports when a path is both a file and a directory 2024-07-05 10:23:34 -03:00
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
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
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
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
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
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
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