Re: Synonyms in Bison/yacc?

Vladimir Alexiev <vladimir@cs.ualberta.ca>
9 Apr 1998 01:17:16 -0400

          From comp.compilers

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)
| List of all articles for this month |

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


Post a followup to this message

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