Related articles |
---|
Set of allowable next tokens jmr1g@ra.cs.Virginia.EDU (1991-01-11) |
Set of allowable next tokens meissner@osf.org (1991-01-11) |
Re: Set of allowable next tokens csr!nigelh@sol.uvic.ca (1991-01-12) |
Re: Set of allowable next tokens mah@nestroy.wu-wien.ac.at (1991-01-14) |
Re: Set of allowable next tokens megatest!djones@decwrl.dec.com (1991-01-16) |
Re: Set of allowable next tokens megatest!djones@decwrl.dec.com (1991-01-15) |
Newsgroups: | comp.compilers |
From: | mah@nestroy.wu-wien.ac.at |
Keywords: | yacc, parse, debug |
Organization: | Wirtschaftsuniversitaet Wien |
References: | <1991Jan11.203916.20495@murdoch.acc.Virginia.EDU> |
Date: | Mon, 14 Jan 91 12:38:22 GMT |
In article <1991Jan11.203916.20495@murdoch.acc.Virginia.EDU>, jmr1g@ra.cs.Virginia.EDU (Jeremiah M. Ratner) writes:
|> Is there any way i can configure yacc or some other tool to tell me,
|> at each step in a parse, the set of tokens that may follow the current
|> token?
In the book 'Compiler Construction using Unix' by Schreiner & Friedman
(sorry, I don't have the book here at work, and I don't recall the
publisher) a modification to yacc is described which prints the set of
allowed tokens when encountering a syntax error. It's actually sufficient
to modify the yaccpar file.
There is a tar file on a.cs.uiuc.edu in ~ftp/pub/friedman which contains the
modified yaccpar file.
- michael
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.