[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lojban] LALR1 question



Richard Curnow scripsit:

> I guess there's some clever trick being used to workaround this, but
> I've not worked out what it is.  Can anyone enlighten me?

In the official parser, the lexer will simply scoop up as many tokens as
it needs to, backtracking if it finds something that doesn't match its
expectations.  All these tokens become a single YACC token.

-- 
John Cowan           http://www.ccil.org/~cowan              cowan@ccil.org
Please leave your values        |       Check your assumptions.  In fact,
   at the front desk.           |          check your assumptions at the door.
     --sign in Paris hotel      |            --Miles Vorkosigan