[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua 5 Grammar update
- From: Klaas-Jan Stol <vanderlay@...>
- Date: Sun, 24 Jul 2005 15:56:09 +0200
Hi,
for sake of completeness, I just updated the Lua wiki with a link to a
Lua 5 grammar for Bison (or Yacc). I'm using this grammar in my attempt
to write a Lua compiler targeting Parrot, the new virtual machine for
Perl6. I'm pretty sure it's complete. Lua has 1 ambiguity, as described
in the reference manual, this same ambiguity is also present in this
grammar file. In this file, it is present as a shift/reduce conflict,
resolved by default by a "shift". Adding a semicolon will result in a
"reduce". (this is pretty much the same behaviour as in original Lua, I
think).
kind regards,
klaas-jan stol