aboutsummaryrefslogtreecommitdiff
path: root/testlabel.lua
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2016-07-01 10:09:27 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2016-07-01 10:09:27 -0300
commit5ff36d597a47830ea0e266cce253cfda2cf43348 (patch)
treefb141d517b569d2346a975e8172e3ddf25a33133 /testlabel.lua
parent81f7263ac1274aa604c154a199c70a54909de6e0 (diff)
downloadlpeglabel-5ff36d597a47830ea0e266cce253cfda2cf43348.tar.gz
lpeglabel-5ff36d597a47830ea0e266cce253cfda2cf43348.tar.bz2
lpeglabel-5ff36d597a47830ea0e266cce253cfda2cf43348.zip
Updating code given that lpeglabel.T only throws one label
Diffstat (limited to 'testlabel.lua')
-rw-r--r--testlabel.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/testlabel.lua b/testlabel.lua
index 67dc36b..f7180a7 100644
--- a/testlabel.lua
+++ b/testlabel.lua
@@ -1,7 +1,5 @@
1local m = require 'lpeglabel' 1local m = require 'lpeglabel'
2 2
3p = m.Lc(true, true, 1, 3)
4
5local p, r, l, s, serror 3local p, r, l, s, serror
6 4
7-- throws a label 5-- throws a label
@@ -135,6 +133,7 @@ assert(p:match("B") == 2)
135p = m.Lc(m.P"A", m.P(false), 1) + m.P("B") 133p = m.Lc(m.P"A", m.P(false), 1) + m.P("B")
136assert(p:match("B") == 2) 134assert(p:match("B") == 2)
137 135
136
138--[[ 137--[[
139S -> A /{1} 'a' 138S -> A /{1} 'a'
140A -> B 139A -> B