diff options
author | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-11-17 15:55:24 -0300 |
---|---|---|
committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-11-17 15:55:24 -0300 |
commit | 96284f8b4a6a25efd3c0c5ce9c7595604ba3143f (patch) | |
tree | 30d319f4a81d9a421b7b842be2889ef6e8e7f455 /examples/listIdRe1.lua | |
parent | 448762908fd822fbc101a4fe66fac9cd8aa913b5 (diff) | |
download | lpeglabel-96284f8b4a6a25efd3c0c5ce9c7595604ba3143f.tar.gz lpeglabel-96284f8b4a6a25efd3c0c5ce9c7595604ba3143f.tar.bz2 lpeglabel-96284f8b4a6a25efd3c0c5ce9c7595604ba3143f.zip |
Updating examples using the recovery operator
Diffstat (limited to 'examples/listIdRe1.lua')
-rw-r--r-- | examples/listIdRe1.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/listIdRe1.lua b/examples/listIdRe1.lua index d092566..3988a3b 100644 --- a/examples/listIdRe1.lua +++ b/examples/listIdRe1.lua | |||
@@ -1,10 +1,10 @@ | |||
1 | local re = require 'relabel' | 1 | local re = require 'relabelrec' |
2 | 2 | ||
3 | local g = re.compile[[ | 3 | local g = re.compile[[ |
4 | S <- Id List | 4 | S <- Id List |
5 | List <- !. / (',' / %{2}) (Id / %{1}) List | 5 | List <- !. / Comma Id List |
6 | Id <- Sp [a-z]+ | 6 | Id <- Sp [a-z]+ / %{2} |
7 | Comma <- Sp ',' | 7 | Comma <- Sp ',' / %{3} |
8 | Sp <- %s* | 8 | Sp <- %s* |
9 | ]] | 9 | ]] |
10 | 10 | ||