diff options
-rw-r--r-- | testfarthest.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/testfarthest.lua b/testfarthest.lua deleted file mode 100644 index e862d87..0000000 --- a/testfarthest.lua +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | local m = require 'lpeglabel' | ||
2 | |||
3 | function matchPrint(p, s) | ||
4 | local r, l, sfail = p:match(s) | ||
5 | print("Input:", s) | ||
6 | print("Result:", r, l, sfail) | ||
7 | end | ||
8 | |||
9 | |||
10 | local p = (m.P"c" + m.P"a") * m.P("b" + m.P"d") + m.P"xxx" | ||
11 | p:pcode() | ||
12 | matchPrint(p, "ba") | ||
13 | |||