diff options
Diffstat (limited to 'testerrors.lua')
-rw-r--r-- | testerrors.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testerrors.lua b/testerrors.lua index ab1c665..bcab65f 100644 --- a/testerrors.lua +++ b/testerrors.lua | |||
@@ -100,7 +100,7 @@ local patterns = { | |||
100 | [[{|@|}]], | 100 | [[{|@|}]], |
101 | [['p' {| 'q' / 'r' }]], | 101 | [['p' {| 'q' / 'r' }]], |
102 | -- 71-75 | 102 | -- 71-75 |
103 | [['a'/{1}'b'/'c']], | 103 | [['a'/{1}'b'/'c']], -- should not fail anymore |
104 | [[x <- {:x:}]], | 104 | [[x <- {:x:}]], |
105 | [[&'p'/&/!/'p'^'q']], | 105 | [[&'p'/&/!/'p'^'q']], |
106 | [[ | 106 | [[ |
@@ -113,7 +113,7 @@ local patterns = { | |||
113 | A <- 'A again' | 113 | A <- 'A again' |
114 | A <- 'and again' | 114 | A <- 'and again' |
115 | ]], | 115 | ]], |
116 | -- 76 - 79 | 116 | -- 76 - 80 |
117 | [[names not in grammar]], | 117 | [[names not in grammar]], |
118 | [[ | 118 | [[ |
119 | A <- %nosuch %def | 119 | A <- %nosuch %def |
@@ -121,7 +121,12 @@ local patterns = { | |||
121 | A <- 'and again' | 121 | A <- 'and again' |
122 | ]], | 122 | ]], |
123 | [[ A <- %nosuch ('error' ]], | 123 | [[ A <- %nosuch ('error' ]], |
124 | [[A <- Unknown Rules]] | 124 | [[A <- Unknown Rules]], |
125 | [['a' / &@ ('c' / 'd')]], | ||
126 | -- 81 - 83 | ||
127 | [['x' / & / 'y']], | ||
128 | [[&/'p'/!/'q']], | ||
129 | [['p'//'q']], | ||
125 | } | 130 | } |
126 | 131 | ||
127 | for i, patt in ipairs(patterns) do | 132 | for i, patt in ipairs(patterns) do |