An obscure YACC semantics question.

"Ronald F. Guilmette" <rfg@rahul.net>
Tue, 7 Feb 1995 18:10:25 GMT

          From comp.compilers

Related articles
An obscure YACC semantics question. rfg@rahul.net (Ronald F. Guilmette) (1995-02-07)
| List of all articles for this month |

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]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.