Ignore errors in yacc?

quixote@Primenet.Com (Donald A. Hosek)
Fri, 26 May 1995 23:59:47 GMT

          From comp.compilers

Related articles
Ignore errors in yacc? quixote@Primenet.Com (1995-05-26)
| List of all articles for this month |

Newsgroups: comp.compilers
From: quixote@Primenet.Com (Donald A. Hosek)
Keywords: yacc, question, comment
Organization: Primenet Services for the Internet (602)395-1010
Date: Fri, 26 May 1995 23:59:47 GMT
Status: RO

Right now, to deal with extraneous tokens in the input stream, I've had to
extend my yacc grammar to accept these and simply print them. What I'd
really like to do is find a way to define yyerror so that it simply passes
the offending token(s) to yyout without further intervention. Any ideas on
how this might be accomplished?




-dh
--
Don Hosek dhosek@quixote.com
909-621-1291 Coming soon: the Quixote Digital
FAX: 909-625-1342 Typography WWW site.
Quixote Digital Typography
[It's not easy, better to identify and pass the noise through at the lexical
level. -John]
--


Post a followup to this message

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