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 {
| 'if'
| 'then'
| 'else'
...
}
Is such a construct there in lua.pg? I had a short look but could not find
it. May have overlooked it, though.
kjs
On 10/26/07, François PERRAD <[EMAIL PROTECTED]> wrote:
>
>
> 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.
>
>
>