Commit Graph

595 Commits

Author SHA1 Message Date
imaqtkatt
b436232a3f Implement getter generation for map setter keys 2024-05-24 12:22:42 -03:00
imaqtkatt
20a20027d3 Dont allow variable names contain '__' 2024-05-24 10:50:04 -03:00
imaqtkatt
4d303ac99c Fix variable generation for nested map gets 2024-05-24 08:35:44 -03:00
imaqtkatt
af8d6e3e0b Dont allow top level names start with '//' 2024-05-23 14:43:25 -03:00
Nicolas Abril
e700294e1d Add new IO, fix pruning 2024-05-23 19:25:24 +02:00
Nicolas Abril
b0fd8dfb91 Add guide examples to tests 2024-05-22 21:25:31 +02:00
imaqtkatt
d2e4a7a7a6 Add tuple eta test 2024-05-22 16:21:05 -03:00
Nicolas Abril
afc9c99801 Apply clippy and fmt 2024-05-22 19:54:27 +02:00
Nicolas Abril
5c811da531 Update docs, examples, fix scope of fork 2024-05-22 19:48:53 +02:00
imaqtkatt
97f7a40907 Use the same keyword 'type' for adt definitions 2024-05-22 11:51:35 -03:00
imaqtkatt
61c73c68dd Implement to_fun for comprehension 2024-05-21 17:06:51 -03:00
imaqtkatt
c7ba4b1ce7 Add ops test 2024-05-21 12:53:56 -03:00
imaqtkatt
c39a7614e3 Add hvm ast and transformations 2024-05-21 12:53:56 -03:00
Nicolas Abril
f4620bc3f6 Add SHL and SHR 2024-05-21 17:32:13 +02:00
Nicolas Abril
3e9b3c4083 Adapt Bend to new hvm number operation format 2024-05-21 16:23:40 +02:00
Nicolas Abril
e81f990208 Make rules necessarily be in a single block 2024-05-21 09:39:43 +02:00
Nicolas Abril
0e26732c4e Disable check-net-size by default 2024-05-20 17:12:08 +02:00
Nicolas Abril
d62b73ce83 [sc-663] Update tests for rebase 2024-05-20 14:50:49 +02:00
Nicolas Abril
f7a238c58a [sc-663] Add num-scott adt encoding, it a cli opt 2024-05-20 14:47:50 +02:00
imaqtkatt
8d8192127c Update test snapshot 2024-05-20 09:25:10 -03:00
imaqtkatt
e0d1df39e8 Update test snapshot 2024-05-20 09:17:22 -03:00
imaqtkatt
33756cbd3a Fix comma in superposition parsing 2024-05-20 09:15:58 -03:00
Nicolas Abril
22477b1807 Explain dependencies, add to FAQ, improve readback err msg 2024-05-19 14:37:54 +02:00
Nicolas Abril
076415d9ab Increase max net size and make the check optional 2024-05-19 00:29:37 +02:00
Nicolas Abril
1585d2d5bc [sc-699] Require , in list-like things in imp syntax 2024-05-17 18:11:07 +02:00
Nicolas Abril
7043f93293 [sc-697] Update documentation, add use stmts, fix list parser 2024-05-17 12:54:25 +02:00
Nicolas Abril
100cc90aee [sc-692] Add simple readback of tuples 2024-05-17 02:12:50 +02:00
Nicolas Abril
faa6bdb9fc [sc-694] Replace 'go' with 'fork' in 'bend' 2024-05-16 18:14:30 +02:00
Nicolas Abril
08480c40e1 Fix parsing of empty switch 2024-05-16 13:47:28 +02:00
Nicolas Abril
f724bbf541 Add list resugaring on readback 2024-05-15 22:07:58 +02:00
Nicolas Abril
5b4524e4a7 Change comments to # 2024-05-15 21:26:16 +02:00
Nicolas Abril
36cb14e7fd
Merge pull request #312 from HigherOrderCO/feature/sc-690/update-lambda-and-constructor-names
[sc-690] Update lambda and constructor names
2024-05-15 20:44:39 +02:00
imaqtkatt
372ae8a384 Update lambda syntax and built-in constructor names 2024-05-15 15:23:26 -03:00
Nicolas Abril
f8b3787121 [sc-689] Make fold with require explicit state passing 2024-05-15 19:40:12 +02:00
Nicolas Abril
2f7ae6c276 [sc-688] Add string resugaring of readback term 2024-05-15 19:00:20 +02:00
Nicolas Abril
a763052c11 [sc-686] Add record types and record type destructuring 2024-05-15 17:53:50 +02:00
imaqtkatt
d194890495 Fix wrong unbound definitions 2024-05-15 10:42:16 -03:00
imaqtkatt
6b1a5ef9f4 Add eraser expression 2024-05-15 09:33:16 -03:00
Nicolas Abril
3a6c746fd6 [sc-684] Disable forwarding of free vars in ask terms 2024-05-15 12:29:14 +02:00
Nicolas Abril
4f45f392f5 Fix number parsing in imp, require \n after return 2024-05-15 09:13:50 +02:00
Nicolas Abril
0ec0ecd661 Add priority on all multiply recursive calls 2024-05-15 00:57:57 +02:00
Nicolas Abril
e1dd23d96c Update tests to use .bend extension, fix test uite 2024-05-15 00:25:46 +02:00
Nicolas Abril
46ec41141e Merge remote-tracking branch 'origin/main' into feature/sc-678/add-run-c-and-run-cuda-commands-to-bend 2024-05-14 23:38:28 +02:00
Nicolas Abril
f8cfd5bebd [sc-682] Allow branching statements to end with assignment 2024-05-14 23:36:43 +02:00
imaqtkatt
b0fd7a7f71 Add run c and run cuda commands 2024-05-14 17:03:37 -03:00
Nicolas Abril
c1a9bf2e41 [sc-682] Make the imp parser indentation based 2024-05-14 17:42:41 +02:00
imaqtkatt
1aaa5ad7be Update tests 2024-05-14 09:33:16 -03:00
imaqtkatt
02b6baaa71 Add unscoped lambdas and improve patterns 2024-05-14 09:00:56 -03:00
Nicolas Abril
b223e34893 [sc-681] Add monadic ask mixed with other terms, complete do syntax in imp 2024-05-13 17:23:20 +02:00
imaqtkatt
204024500c Re add old constructor syntax, adjust cases and lambdas 2024-05-11 15:53:17 -03:00