aboutsummaryrefslogtreecommitdiff
path: root/examples/listId2Rec2.lua
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2016-11-23 15:22:46 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2016-11-23 15:22:46 -0300
commit3a5f5683bf6d676ea4118c3a8d0fc25de317d91f (patch)
treef39cedc230b2f88b9573fbd0ce5cf10fc7a0b880 /examples/listId2Rec2.lua
parent5a4165922a1a6e0ed9cdb65446157c453667ed9c (diff)
downloadlpeglabel-3a5f5683bf6d676ea4118c3a8d0fc25de317d91f.tar.gz
lpeglabel-3a5f5683bf6d676ea4118c3a8d0fc25de317d91f.tar.bz2
lpeglabel-3a5f5683bf6d676ea4118c3a8d0fc25de317d91f.zip
Updating examples to use the recovery operator
Diffstat (limited to 'examples/listId2Rec2.lua')
-rw-r--r--examples/listId2Rec2.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/listId2Rec2.lua b/examples/listId2Rec2.lua
index a347a5b..ab8f1dd 100644
--- a/examples/listId2Rec2.lua
+++ b/examples/listId2Rec2.lua
@@ -41,8 +41,8 @@ end
41local grec = m.P{ 41local grec = m.P{
42 "S", 42 "S",
43 S = m.Rec(m.Rec(g, m.V"ErrComma", errComma), m.V"ErrId", errId), 43 S = m.Rec(m.Rec(g, m.V"ErrComma", errComma), m.V"ErrId", errId),
44 ErrComma = record(errComma) * sync(-m.P(1) + id), 44 ErrComma = record(errComma) * sync(id),
45 ErrId = record(errId) * sync(-m.P(1) + ",") 45 ErrId = record(errId) * sync(m.P",")
46} 46}
47 47
48 48