aboutsummaryrefslogtreecommitdiff
path: root/testlabel.lua
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2016-07-01 09:04:34 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2016-07-01 09:04:34 -0300
commit81f7263ac1274aa604c154a199c70a54909de6e0 (patch)
treeb9ceda6126bb8499f48df5717ddb5fbf48e04eee /testlabel.lua
parentcd49543a32d6dc0834f5b9f8cb0be9668d9a2c60 (diff)
downloadlpeglabel-81f7263ac1274aa604c154a199c70a54909de6e0.tar.gz
lpeglabel-81f7263ac1274aa604c154a199c70a54909de6e0.tar.bz2
lpeglabel-81f7263ac1274aa604c154a199c70a54909de6e0.zip
Changing the LPegLabel to support up to 255 labels
Diffstat (limited to 'testlabel.lua')
-rw-r--r--testlabel.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/testlabel.lua b/testlabel.lua
index f7180a7..67dc36b 100644
--- a/testlabel.lua
+++ b/testlabel.lua
@@ -1,5 +1,7 @@
1local m = require 'lpeglabel' 1local m = require 'lpeglabel'
2 2
3p = m.Lc(true, true, 1, 3)
4
3local p, r, l, s, serror 5local p, r, l, s, serror
4 6
5-- throws a label 7-- throws a label
@@ -133,7 +135,6 @@ assert(p:match("B") == 2)
133p = m.Lc(m.P"A", m.P(false), 1) + m.P("B") 135p = m.Lc(m.P"A", m.P(false), 1) + m.P("B")
134assert(p:match("B") == 2) 136assert(p:match("B") == 2)
135 137
136
137--[[ 138--[[
138S -> A /{1} 'a' 139S -> A /{1} 'a'
139A -> B 140A -> B