Commit Graph

1345 Commits

Author SHA1 Message Date
imaqtkatt
461305ef35 Add constructor error in order kwargs, add kwarg to cspell 2024-05-12 20:22:38 -03:00
imaqtkatt
7c403e9ddf Add sups 2024-05-12 20:15:05 -03:00
imaqtkatt
204024500c Re add old constructor syntax, adjust cases and lambdas 2024-05-11 15:53:17 -03:00
Nicolas Abril
b506b83b78
Merge pull request #296 from HigherOrderCO/feature/sc-669/make-the-bend-parser-support-both-syntaxes
[sc-669] Allow both syntaxes at the same time
2024-05-11 19:20:52 +02:00
Nicolas Abril
26e79255bc [sc-669] Allow both syntaxes at the same time 2024-05-11 19:18:24 +02:00
Nicolas Abril
2517eb9d56
Merge pull request #295 from HigherOrderCO/feature/sc-665/make-name-of-constructors-inherit-the-name
[sc-665] Make name of constructors inherit the name of the type
2024-05-10 23:05:28 +02:00
imaqtkatt
89d9728351 Update tests 2024-05-10 17:39:06 -03:00
imaqtkatt
912e1ae01a Update examples 2024-05-10 17:31:16 -03:00
imaqtkatt
6948e1b3fb Constructors inherit type name 2024-05-10 17:31:16 -03:00
Nicolas Abril
ca9acd535a
Merge pull request #293 from HigherOrderCO/feature/sc-670/add-priority-redexes-to-bend-output
[sc-670] Add priority redexes and order dups correctly in compilation
2024-05-10 22:11:56 +02:00
Nicolas Abril
2f8a12bceb [sc-670] Add priority redexes and order dups correctly in compilation 2024-05-10 21:08:29 +02:00
Nicolas Abril
41caca6e4f
Merge pull request #294 from HigherOrderCO/add-if-syntax-for-core
Add if syntax for core
2024-05-10 20:00:45 +02:00
imaqtkatt
146a0f8444
Update src/fun/parser.rs
Co-authored-by: Nicolas Abril <nicolas@higherorderco.com>
2024-05-10 14:07:11 -03:00
imaqtkatt
00f9ce789c Add if syntax for core 2024-05-10 14:03:25 -03:00
Nicolas Abril
0308f5b09e
Merge pull request #292 from HigherOrderCO/allow-expr-in-map-accessor
Allow any expr in map accessors
2024-05-10 18:20:09 +02:00
imaqtkatt
a6d0faacf1 Allow any expr in map accessors 2024-05-10 11:02:15 -03:00
Nicolas Abril
a04a1f9522
Merge pull request #291 from HigherOrderCO/feature/sc-667/enable-bend-syntax
[sc-667] Switch to new syntax by default
2024-05-10 13:36:13 +02:00
Nicolas Abril
b5e89aa129 [sc-667] Switch to new syntax by default 2024-05-10 13:23:09 +02:00
Nicolas Abril
fe3a83d4a9
Merge pull request #286 from HigherOrderCO/feature/sc-666/add-a-map-type-to-bend
[sc-666] Add a map type to bend
2024-05-10 12:45:01 +02:00
Nicolas Abril
0b153945bb
Merge pull request #289 from HigherOrderCO/err-msg-color
Improve mutual recursion err msg and add some colors
2024-05-09 21:03:25 +02:00
imaqtkatt
7c926746e3 Adjust format 2024-05-09 15:32:59 -03:00
imaqtkatt
c4332df312 Add map init function, use id to generate map get binds 2024-05-09 15:27:19 -03:00
imaqtkatt
5af0459070 ... 2024-05-09 15:20:48 -03:00
imaqtkatt
f4d18401a5 Add Map builtin 2024-05-09 15:20:48 -03:00
imaqtkatt
91ca4c9e05 Add gen map get pass 2024-05-09 15:20:24 -03:00
imaqtkatt
1adacb60a7 Add map syntax 2024-05-09 15:19:36 -03:00
Nicolas Abril
c67f688a84 Improve mutual recursion err msg and add some colors 2024-05-09 18:32:30 +02:00
Nicolas Abril
d41ddfa363
Merge pull request #288 from HigherOrderCO/feature/sc-662/add-logic-for-fold-and-bend-syntax2
[sc-662] Add fold and bend to bend syntax
2024-05-09 18:18:21 +02:00
Nicolas Abril
da4e2511ce [sc-662] Add fold and bend to bend syntax 2024-05-09 17:42:35 +02:00
Nicolas Abril
30d1de479e
Update README.md 2024-05-08 21:37:43 +02:00
Nicolas Abril
8e05b2dafe
Merge pull request #284 from HigherOrderCO/feature/sc-658/add-doc-with-bend-syntax
[sc-658] Add doc with bend syntax
2024-05-08 21:35:19 +02:00
Nicolas Abril
e9666afbc7
Merge pull request #287 from HigherOrderCO/feature/sc-662/add-logic-for-fold-and-bend-syntax
[sc-662] Add 'fold' and 'bend' terms
2024-05-08 21:34:50 +02:00
imaqtkatt
4b8d24d48e
Update docs/syntax.md
Co-authored-by: Nicolas Abril <nicolas@higherorderco.com>
2024-05-08 16:19:57 -03:00
Nicolas Abril
1572e123cd [sc-662] Add 'fold' logic and core syntax 2024-05-08 21:16:50 +02:00
imaqtkatt
aaeb5d10bd Improve syntax doc 2024-05-08 09:45:19 -03:00
imaqtkatt
25131d5b1c Adjust cspell 2024-05-08 09:45:19 -03:00
imaqtkatt
4d8eafc4ca Improve fold doc 2024-05-08 09:45:19 -03:00
imaqtkatt
a9f01dee12 Add bend syntax 2024-05-08 09:45:19 -03:00
imaqtkatt
41b15f44d5 Improve syntax doc 2024-05-08 09:45:19 -03:00
imaqtkatt
a919c016aa Adjust cspell 2024-05-08 09:45:19 -03:00
imaqtkatt
127fee6993 Fix some typos 2024-05-08 09:44:36 -03:00
imaqtkatt
f682daf91b Add bend syntax documentation 2024-05-08 09:44:36 -03:00
Nicolas Abril
d8ff281c10 [sc-662] Add recursive Ctr fields 2024-05-08 14:38:10 +02:00
Nicolas Abril
d5b6715bc3 [sc-662] Add fold core syntax and logic 2024-05-08 14:12:24 +02:00
Nicolas Abril
7d140ab0bd [sc-662] Reorganize and rename modules 2024-05-08 14:07:36 +02:00
Nicolas Abril
436a4d5148
Merge pull request #285 from HigherOrderCO/feature/sc-664/make-do-notation-infer-the-function-from
[sc-664] Add inference for do notation
2024-05-07 22:11:47 +02:00
imaqtkatt
88b711b930 Fix missing delimiter 2024-05-07 17:07:00 -03:00
imaqtkatt
73b57c40b7 Use format macro to create fun name
Co-authored-by: Nicolas Abril <nicolas@higherorderco.com>
2024-05-07 17:07:00 -03:00
imaqtkatt
94ceeb3369 Ignore parser test 2024-05-07 17:07:00 -03:00
imaqtkatt
16fcf89798 Add inference for do notation 2024-05-07 17:07:00 -03:00