Commit Graph

998 Commits

Author SHA1 Message Date
Nicolas Abril
0fc957ea6e [sc-441] Add string patterns 2024-02-27 21:58:03 +01:00
Nicolas Abril
5d9a967713
Merge pull request #210 from HigherOrderCO/feature/sc-474/fix-spellcheck-github-ci
[sc-474] Fix spellcheck github CI
2024-02-27 19:45:15 +01:00
Nicolas Abril
17292e538f
Merge pull request #211 from HigherOrderCO/feature/sc-301/add-support-for-matching-on-non-zero-numbers
[sc-301] Add support for matching on non zero numbers, add char patterns
2024-02-27 19:44:59 +01:00
Nicolas Abril
0c509b4367 [sc-301] Some small improvements on mathing code 2024-02-27 19:35:19 +01:00
imaqtkatt
2c35a13074 Add "tunr" as correct word 2024-02-27 15:31:23 -03:00
Nicolas Abril
4c8a9f915e [sc-301] Fix after merge 2024-02-27 19:14:25 +01:00
imaqtkatt
568d2b0157 Fix files filter patterns 2024-02-27 15:13:34 -03:00
Nicolas Abril
5f2d835a77 [sc-441] Add char patterns 2024-02-27 18:16:16 +01:00
Nicolas Abril
39ffe05d72 [sc-301] Add pattern matching on non-zero numbers 2024-02-27 18:16:16 +01:00
Nicolas Abril
28d456da07
Merge pull request #209 from HigherOrderCO/feature/sc-455/improve-match-linearization-pass
[sc 455] improve match linearization pass
2024-02-27 18:14:56 +01:00
LunaAmora
d992c27670 Fix doc tipos 2024-02-27 14:05:53 -03:00
LunaAmora
d80639dcc9 Small doc fix 2024-02-27 11:47:07 -03:00
LunaAmora
5548cff89b Rename pass, add flag docs 2024-02-27 10:00:02 -03:00
LunaAmora
ed190fa60c Rename passes to be more descriptive 2024-02-27 09:30:11 -03:00
LunaAmora
3c4f0dbcf1 Fix lazy_mode flag check 2024-02-26 16:25:58 -03:00
LunaAmora
6ad080b5eb Remove unused test file 2024-02-26 16:20:41 -03:00
LunaAmora
65fd779598 Revert linearize_extra to an linearize_matches argument 2024-02-26 15:43:04 -03:00
LunaAmora
e903af152f Refactor lift_combinaotors to work with linearize_matches change 2024-02-26 13:42:29 -03:00
LunaAmora
19181598da Make supercombinators work with non-linear match arms 2024-02-26 12:43:01 -03:00
imaqtkatt
85c75f38ab WIP dont linearize used once variables in match arm 2024-02-26 12:43:01 -03:00
T6
244acd19a2
configure ci (#204) 2024-02-26 09:32:33 -05:00
imaqtkatt
20b01400aa
Merge pull request #208 from HigherOrderCO/bug/sc-471/oall-and-ono-all-reset-the-adt-encoding
[sc-471] Oall and Ono-all reset the adt encoding
2024-02-26 11:05:30 -03:00
FranchuFranchu
c03b1d233b
Add HVM.print [sc-469] (#206) 2024-02-26 10:01:55 -03:00
imaqtkatt
b2f3564ff2 Add set all and no_all methods 2024-02-26 09:12:25 -03:00
imaqtkatt
e7056da312
Merge pull request #207 from HigherOrderCO/feature/sc-470/add-missing-escape-sequences
[sc-470] Add missing escape sequences
2024-02-26 08:46:16 -03:00
imaqtkatt
59239ea822 Add escaped backtick 2024-02-26 08:44:12 -03:00
imaqtkatt
9efd21cdc5 Add single quote normalization 2024-02-26 08:06:18 -03:00
imaqtkatt
3b32ee6660 WIP add missing CR, null and quote escape sequences 2024-02-23 17:51:29 -03:00
imaqtkatt
ae257a441e
Merge pull request #205 from HigherOrderCO/bug/sc-468/pre-reduction-with-hvmc-builtins-is-broken
[sc-468] pre-reduction with hvmc builtins is broken
2024-02-23 15:53:35 -03:00
imaqtkatt
2fbfa5c3aa Fix pre reduce inert redexes 2024-02-23 15:27:23 -03:00
Nicolas Abril
751af02f49 Add broken black box pre-reduce test 2024-02-23 14:04:00 +01:00
Nicolas Abril
53fea886c9
Merge pull request #201 from HigherOrderCO/chore/sc-403/refactor-pattern-match-encoding
[sc-403] Refactor pattern match encoding, add multi-arg match
2024-02-22 21:30:12 +01:00
Nicolas Abril
45447b4d51 [sc-403] Change pat-match algorithm, add multi-arg matches 2024-02-22 20:38:00 +01:00
Nicolas Abril
1876c8d6b3
Merge pull request #202 from HigherOrderCO/bug/sc-459/parser-hangs-with-large-generated-file
[sc-459] parser hangs with large file
2024-02-22 19:41:48 +01:00
LunaAmora
45bf357ceb Improve Name fns, add Term::str 2024-02-22 15:40:24 -03:00
LunaAmora
72704f5c81 Fix comment typo 2024-02-22 15:38:14 -03:00
LunaAmora
36ede35e38 Change Token::Str and Term::Str to use the string interner 2024-02-22 15:38:14 -03:00
LunaAmora
79ee00125e Fix parser hanging with large generated file 2024-02-22 15:38:14 -03:00
Nicolas Abril
4eb45c54f0
Merge pull request #203 from HigherOrderCO/add-cargo-lock-back
Update cargo.lock,  remove unused snap
2024-02-22 19:19:14 +01:00
LunaAmora
2667e58b17 Add cargo.lock, remove unused snap 2024-02-22 15:15:19 -03:00
Nicolas Abril
c96d6f459f
Merge pull request #194 from HigherOrderCO/core-ptr-refactor/sc-362/basic-compatibility
Make hvm lang compatible with ptr refactor [sc-362]
2024-02-22 19:10:09 +01:00
FranchuFranchu
f51e4eb22e Make hvm lang compatible with ptr refactor [sc-362]
Add `HVM.log` and `HVM.black_box`, together with their documentation.

Add basic CLI support for limiting rewrites.

Trimming names and adapting them for hvm-core is not necessary anymore.

Update `pre_reduce`. `pre_reduce` can now reduce unrelated redexes in defs that use builtin defs. This is done by making builtin defs "inert" on pre-reduction, and then adding back their interactions to the reduced net. `pre_reduce_refs` is redundant now and has been removed.

Make `Ctx` and `compile_book` take a mutable borrow of `Book`.

Sister PR: https://github.com/HigherOrderCO/hvm-core/pull/60
2024-02-22 15:00:29 -03:00
imaqtkatt
d4874b951c
Merge pull request #200 from HigherOrderCO/feature/sc-457/don-t-show-1-in-linearized-variables-that
[sc-457] Don't show _1 in linearized variables that are only used 1 time
2024-02-22 12:20:42 -03:00
imaqtkatt
23d12f8ca6 Add used_once_names test 2024-02-22 10:36:04 -03:00
imaqtkatt
a264cd16bb Change dup name when is used once 2024-02-22 10:31:44 -03:00
Luna
068d25fe10
Merge pull request #197 from HigherOrderCO/chore/sc-450/refactor-error-handling-to-handle-multiple
[sc-450] Refactor error handling
2024-02-21 14:12:53 -03:00
LunaAmora
e69a2c2a79 Add '.' to the end of all errors 2024-02-21 11:59:22 -03:00
Luna
37a0d1a495
Update src/term/check/exhaustiveness.rs
Co-authored-by: Nicolas Abril <nicolas@higherorderco.com>
2024-02-21 11:44:32 -03:00
LunaAmora
6210455866 Improve ExhaustivenessErr limit hint 2024-02-21 11:40:42 -03:00
LunaAmora
71c4a4e4ec Add limit for exhaustiveness errors, and use verbose flag to remove it 2024-02-21 10:54:13 -03:00