diff options
-rw-r--r-- | relabel.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/relabel.lua b/relabel.lua index cf76e89..b02c95d 100644 --- a/relabel.lua +++ b/relabel.lua | |||
@@ -222,7 +222,7 @@ local function choicerec (...) | |||
222 | local p = t[1] | 222 | local p = t[1] |
223 | local i = 2 | 223 | local i = 2 |
224 | while i + 1 <= n do | 224 | while i + 1 <= n do |
225 | -- t[i] == nil when there are no labels | 225 | -- t[i] == false when there are no labels |
226 | p = t[i] and mm.Rec(p, t[i+1], unpack(t[i])) or mt.__add(p, t[i+1]) | 226 | p = t[i] and mm.Rec(p, t[i+1], unpack(t[i])) or mt.__add(p, t[i+1]) |
227 | i = i + 2 | 227 | i = i + 2 |
228 | end | 228 | end |
@@ -232,7 +232,7 @@ end | |||
232 | 232 | ||
233 | local exp = m.P{ "Exp", | 233 | local exp = m.P{ "Exp", |
234 | Exp = S * ( m.V"Grammar" | 234 | Exp = S * ( m.V"Grammar" |
235 | + (m.V"Seq" * (S * (("//" * m.Ct(m.V"Labels")) + ("/" * m.Cc(nil))) | 235 | + (m.V"Seq" * (S * (("//" * m.Ct(m.V"Labels")) + ("/" * m.Cc(false))) |
236 | * expect(S * m.V"Seq", "ExpPatt1") | 236 | * expect(S * m.V"Seq", "ExpPatt1") |
237 | )^0 | 237 | )^0 |
238 | ) / choicerec); | 238 | ) / choicerec); |