diff options
author | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-07-01 10:09:27 -0300 |
---|---|---|
committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-07-01 10:09:27 -0300 |
commit | 5ff36d597a47830ea0e266cce253cfda2cf43348 (patch) | |
tree | fb141d517b569d2346a975e8172e3ddf25a33133 /testlabel.lua | |
parent | 81f7263ac1274aa604c154a199c70a54909de6e0 (diff) | |
download | lpeglabel-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.lua | 3 |
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 @@ | |||
1 | local m = require 'lpeglabel' | 1 | local m = require 'lpeglabel' |
2 | 2 | ||
3 | p = m.Lc(true, true, 1, 3) | ||
4 | |||
5 | local p, r, l, s, serror | 3 | local p, r, l, s, serror |
6 | 4 | ||
7 | -- throws a label | 5 | -- throws a label |
@@ -135,6 +133,7 @@ assert(p:match("B") == 2) | |||
135 | p = m.Lc(m.P"A", m.P(false), 1) + m.P("B") | 133 | p = m.Lc(m.P"A", m.P(false), 1) + m.P("B") |
136 | assert(p:match("B") == 2) | 134 | assert(p:match("B") == 2) |
137 | 135 | ||
136 | |||
138 | --[[ | 137 | --[[ |
139 | S -> A /{1} 'a' | 138 | S -> A /{1} 'a' |
140 | A -> B | 139 | A -> B |