mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-10 06:37:54 +03:00
b087ca4f47
- Improved implementation of suggestions (suggestion_minimum_levenshtein_distance_association > suggestions.ml)
- Magnifying glass emoji added for suggestions
- Improve display by...
- Fixing "Pos.ml" (pretty-printing box not closed)
- Remove unnecessary spaces
- compiler/surface/parserdriver.ml
- Optionnal suggestions added when raising a parser error
- Function "levenshtein_distance" removed and replaced by "Suggestions.levenshtein_distance"
- Tests updated (mostly line breaks and spacing changes)
- Variable names renamed for greater clarity
- (Based on commit 0813f5c36e
)
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
## Article
|
|
|
|
```catala
|
|
declaration scope A:
|
|
context list content collection integer
|
|
context list_high_count content integer
|
|
|
|
scope A:
|
|
definition list equals [0; 5; 6; 7; 1; 64; 12]
|
|
definition list_high_count equals number of (m >= $7) for m among list
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala Interpret -s A
|
|
[ERROR]
|
|
I don't know how to apply operator >= on types integer and
|
|
money
|
|
|
|
┌─⯈ tests/test_array/bad/fold_error.catala_en:10.50-10.52:
|
|
└──┐
|
|
10 │ definition list_high_count equals number of (m >= $7) for m among list
|
|
│ ‾‾
|
|
└─ Article
|
|
|
|
Type integer coming from expression:
|
|
┌─⯈ tests/test_array/bad/fold_error.catala_en:5.35-5.42:
|
|
└─┐
|
|
5 │ context list content collection integer
|
|
│ ‾‾‾‾‾‾‾
|
|
└─ Article
|
|
|
|
Type money coming from expression:
|
|
┌─⯈ tests/test_array/bad/fold_error.catala_en:10.53-10.55:
|
|
└──┐
|
|
10 │ definition list_high_count equals number of (m >= $7) for m among list
|
|
│ ‾‾
|
|
└─ Article
|
|
#return code 123#
|
|
```
|