2012/12/7 Philipp Janda <siffiejoe@gmx.net>:
Here is a possible solution using LPeg:
Hmm returns error:
/lpeg.lua
/usr/bin/lua: error loading module 'grammar' from file
'./grammar.lua':
./grammar.lua:46: too many C levels (limit is 200) in function
at line 36 near 'marker'
stack traceback:
[C]: in ?
[C]: in function 'require'
./lpeg.lua:3: in main chunk
[C]: in function 'require'
./grammar.lua:1: in main chunk
[C]: in function 'require'
./lpeg.lua:3: in main chunk
[C]: in function 'require'
./grammar.lua:1: in main chunk
[C]: in function 'require'
...
[C]: in function 'require'
./lpeg.lua:3: in main chunk
[C]: in function 'require'
./grammar.lua:1: in main chunk
[C]: in function 'require'
./lpeg.lua:3: in main chunk
[C]: in function 'require'
./grammar.lua:1: in main chunk
[C]: in function 'require'
./lpeg.lua:3: in main chunk
[C]: in ?