|2 Yacc Qs firstname.lastname@example.org (1997-03-22)|
|Re: 2 Yacc Qs Bronikov@ic.net (Dmitri Bronnikov) (1997-03-23)|
|Re: 2 Yacc Qs email@example.com (Brian Bliss) (1997-03-27)|
|From:||Brian Bliss <firstname.lastname@example.org>|
|Date:||27 Mar 1997 13:20:20 -0500|
|Keywords:||yacc, parse, syntax|
Barton Jaques wrote:
> I am building an expression grammar and having problems with associativity
> and shift/reduce conflicts. The language I am emulating permits a statement
> like this:
> set y to items 1 thru 2 of x as string
> which should be read as: "set y to (items 1 thru 2 of x) as string"
> and not as: "set y to items 1 thru 2 of (x as string)"
> | IDENT
> | expression AS class
this will cause the parser to reduce when it encounters a shift-reduce
conflict and AS is the input token, wereas
will cause the parser to shift (the default) when it encounters a shift-
reduce conflict and AS is the input token.
Return to the
Search the comp.compilers archives again.