Related articles |
---|
Synonyms in Bison/yacc? kai@nada.kth.se (Kai-Mikael =?iso-8859-1?Q?J=E4=E4=2DAro?=) (1998-04-03) |
Re: Synonyms in Bison/yacc? vladimir@cs.ualberta.ca (Vladimir Alexiev) (1998-04-09) |
From: | Vladimir Alexiev <vladimir@cs.ualberta.ca> |
Newsgroups: | comp.compilers |
Date: | 9 Apr 1998 01:17:16 -0400 |
Organization: | University of Alberta, Computing Science |
References: | 98-04-027 |
Keywords: | yacc |
Define the synonyms as nonterminals instead of terminals.
%token NUM
%%
number : NUM;
integer : NUM;
Sure, it adds a level of indirection, but that's no big deal.
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.