pdd15 conversion of Lua

2007-10-26 Thread François PERRAD
The conversion of Lua is ended. The main issue was with the grammar parser : Lua keywords were recognized as identifier. I solve it by renaming the rule 'name' to 'Name' (r22499). This rule is defined in lua/src/lua51.pir and used by lua/src/lua51.pg So, that sounds strange. François.

Re: pdd15 conversion of Lua

2007-10-26 Thread Klaas-Jan Stol
I just remembered you wrote the 'name' rule and keyword handling yourself by hand. I guess the solution below doesn't help you much then. Is there any reason not to replace the handwritten stuff by the more standard (and maintainable?) PGE version of name/keyword handling? kjs On 10/26/07,

Re: pdd15 conversion of Lua

2007-10-26 Thread Klaas-Jan Stol
I think it can be solved by adding a precondition the identifier rule, for instance, like so: rule identifier { !keyword [a-zA-Z]* } (an identifier is a series of letters, but it's not in keyword; not sure if the ! ... syntax is still valid, or that it was changed recently). rule keyword {