Path: utzoo!attcan!uunet!mcvax!enea!kth!draken!liuida!mikpe From: mikpe@mina.liu.se (Mikael Pettersson) Newsgroups: comp.unix.questions Subject: Re: yacc limitations Message-ID: <938@mina.liu.se> Date: 26 Sep 88 01:00:04 GMT References: <3617@metavax.UUCP> <5740029@hpfcdc.HP.COM> Organization: CIS Dept, Univ of Linkoping, Sweden Lines: 20 In article <5740029@hpfcdc.HP.COM> mike@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@ida.liu.se Dept of Comp & Info Science ! UUCP: mpe@liuida.uucp -or- University of Linkoping ! {mcvax,munnari,uunet}!enea!liuida!mpe Sweden ! ARPA: mpe%ida.liu.se@uunet.uu.net