Commit 4aa42b1
committed
Fix #3170: Allow priority 1200 operators in curly braces
Changed reduce_op(1199) to reduce_op(1200) to allow standard
priority 1200 operators like :- and --> in curly braces.
Per ISO Prolog §6.3.6, curly brackets contain a term which can
have operators up to priority 1200.
Tests now verify:
- Built-in operators (:- and -->) work in curly braces
- User-defined priority 1200 operators work
- Priority 1199 operators work
- Parenthesized operators work
- Priority 1201 operators correctly rejected
J.J.'s Robot1 parent d11c700 commit 4aa42b1
File tree
2 files changed
+33
-7
lines changed- src/parser
- tests/scryer/cli/issues
2 files changed
+33
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
7 | | - | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
12 | 30 | | |
13 | 31 | | |
14 | 32 | | |
15 | 33 | | |
16 | 34 | | |
17 | 35 | | |
18 | 36 | | |
19 | | - | |
| 37 | + | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
23 | 41 | | |
24 | 42 | | |
25 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments