yacc limitations

Mikael Pettersson mikpe at mina.liu.se
Mon Sep 26 11:00:04 AEST 1988


In article <5740029 at hpfcdc.HP.COM> mike at hpfcdc.HP.COM (Mike McNelly) writes:
[someone else wrote the >> part]
>> I am trying to expand an already large yacc grammar.  Unfortunately,
>> I have hit a limit on the number of terminal tokens.  Does anybody
>> know a way around this?

You could

1) get Bison (unless you can't get alloca() for your machine)

2) if serveral tokens are used in exactly the same way in the
   grammar you can hack the scanner to return a `meta'-token
   and put the real token in yylval.whatever.

/Mike
-- 
Mikael Pettersson           ! Internet:mpe at ida.liu.se
Dept of Comp & Info Science ! UUCP:    mpe at liuida.uucp  -or-
University of Linkoping     !          {mcvax,munnari,uunet}!enea!liuida!mpe
Sweden                      ! ARPA:    mpe%ida.liu.se at uunet.uu.net



More information about the Comp.unix.questions mailing list