Commit db48e33
committed
Fix (|) to ALWAYS error per ISO conformity test s#360
Per clarification on Issue #4 and conformity test s#360:
- (|) must be a syntax error regardless of operator status
- Even with op(1105,xfy,'|'), writeq((|)) must error
- The only valid way to write bar as atom is '|' (quoted)
Changes:
- Simplify reduce_brackets() to always reject HeadTailSeparator
- Remove op_dir parameter (no longer needed)
- Update lr_artifacts_3170 tests to use '|' instead of (|)
- Add conformity test s#360: (|) errors even with op defined
- Add test verifying '|' (quoted) is valid1 parent a8062de commit db48e33
File tree
3 files changed
+30
-20
lines changed- src
- parser
- tests
3 files changed
+30
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
| 815 | + | |
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
839 | 843 | | |
840 | 844 | | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | 845 | | |
851 | 846 | | |
852 | 847 | | |
| |||
1013 | 1008 | | |
1014 | 1009 | | |
1015 | 1010 | | |
1016 | | - | |
| 1011 | + | |
1017 | 1012 | | |
1018 | 1013 | | |
1019 | 1014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
18 | 37 | | |
19 | 38 | | |
20 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
| |||
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 101 | + | |
| 102 | + | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
| |||
0 commit comments