Hi guys,

I have the following code:

http://paste.factorcode.org/paste?id=1052

for parsing Lua. I'm stuck with something: when testing rules
individually. This works:

"print(10)" "functioncall" \ parse-lua rule (parse)

but this:

"print(10)" "stat" \ parse-lua rule (parse)

gives "Peg parsing error at character position 5. Expected token '='
or token ',' or token '[' or token '.'"

the thing is that functioncall is an option of stat:
stat     = { varlist "=" explist }
            | functioncall
              .... (other cases)

Any ideas?

TIA,
Hugo

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to