| Related articles |
|---|
| dumb: make yacc tolerate "extra" stuff in a file tdeckard@vitalimages.com (1999-08-22) |
| Re: dumb: make yacc tolerate "extra" stuff in a file scinar@my-deja.com (1999-08-27) |
| From: | scinar@my-deja.com |
| Newsgroups: | comp.compilers |
| Date: | 27 Aug 1999 01:50:36 -0400 |
| Organization: | Deja.com - Share what you know. Learn what you don't. |
| References: | 99-08-091 |
| Keywords: | yacc |
tdeckard@vitalimages.com wrote:
> How do I convince yacc to overlook elements in the file for which
> it lacks patterns? My file to be parsed
You could also get bison to count your braces for you.
Like this:
thing : all tokens - { '{', '}' }
| ignore ;
blackhole: blackhole thing | thing;
ignore: '{' blackhole '}'
| '{' '}' ;
Return to the
comp.compilers page.
Search the
comp.compilers archives again.