Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- OUTPUT:
- -- Lua Version: Lua 5.1
- -- LPeg Version: 0.9
- -- <segmentation fault>
- local lpeg = require "lpeg"
- local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
- local C, Cs, Ct = lpeg.C, lpeg.Cs, lpeg.Ct
- local match = lpeg.match
- local format = P {
- 'string',
- string = ((V 'literal')^0) * -1,
- literal = C(( P(1) - '%' )^1),
- }
- print("Lua Version: " .. _VERSION)
- print("LPeg Version: " .. lpeg.version())
- match(Cs(#format), 'fooo')
Add Comment
Please, Sign In to add comment