aboutsummaryrefslogtreecommitdiff
path: root/testerrors.lua
diff options
context:
space:
mode:
authorUndecidable Robot <undecidabot@gmail.com>2016-05-16 21:00:02 +0800
committerUndecidable Robot <undecidabot@gmail.com>2016-05-16 21:00:02 +0800
commit977213610df9ca3065de4ae60c7cf012c46f2834 (patch)
treee6ac723d3dd19f24570805ae3fd584500953df1c /testerrors.lua
parent2c9d40dc6a23a55f6c67b59735606e3511a2c6ad (diff)
downloadlpeglabel-977213610df9ca3065de4ae60c7cf012c46f2834.tar.gz
lpeglabel-977213610df9ca3065de4ae60c7cf012c46f2834.tar.bz2
lpeglabel-977213610df9ca3065de4ae60c7cf012c46f2834.zip
Making skips in error recovery more intelligent
Diffstat (limited to 'testerrors.lua')
-rw-r--r--testerrors.lua11
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
127for i, patt in ipairs(patterns) do 132for i, patt in ipairs(patterns) do