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, Klaas-Jan Stol <[EMAIL PROTECTED]> wrote:
>
> 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.
> >
> >
> >
>