This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB/MI Output Syntax ambiguity


On Mon, Aug 23, 2004 at 05:43:05PM -0400, Michael Chastain wrote:
> It's been a while since I wrote a yacc grammar, but my inclination
> would be to enhance the lexer and distinguish some new terminals:
> 
>   TOKEN-UPARROW
>   TOKEN-STAR
>   TOKEN-PLUS
>   TOKEN-EQUALS
> 
> Then the grammar goes from LALR(2) to LALR(1), because
> result-record can start with TOKEN-UPARROW, which is just
> one symbol, rather than token "^", which is two symbols.
> That ought to make it yacc-parseable.

Yes, this could work. However, was the original grammer meant to be
LALR(2)?

I am going to try to do some Left Factoring to fix the problem but I
don't think it will work. Plus, I don't have to much experience with
this.

Thanks,
Bob Rossi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]