Related articles |
---|
An obscure YACC semantics question. rfg@rahul.net (Ronald F. Guilmette) (1995-02-07) |
Newsgroups: | comp.compilers |
From: | "Ronald F. Guilmette" <rfg@rahul.net> |
Keywords: | yacc, question, comment |
Organization: | a2i network |
Date: | Tue, 7 Feb 1995 18:10:25 GMT |
The YACC parser for the g++ compiler contains the following interesting
declaration:
%left error
Could someone please explain to me the semantics of declaring YACC's
special `error' token to have left associativity?
--
-- Ron Guilmette, Sunnyvale, CA
---- E-mail: rfg@segfault.us.com
[My guess is that someone put that in while fiddling to get rid of
shift/reduce conflicts. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.