multiple entry points in yacc grammer (Naresh Bhatia)
19 Apr 1996 12:18:45 -0400

          From comp.compilers

Related articles
multiple entry points in yacc grammer (1996-04-19)
Re: multiple entry points in yacc grammer (1996-04-29)
| List of all articles for this month |

From: (Naresh Bhatia)
Newsgroups: comp.compilers
Date: 19 Apr 1996 12:18:45 -0400
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Keywords: yacc, question

Can a yacc grammar have multiple entry points? For example, if I have
a grammar that can parse C++ method declarations, can I use it to
parse standalone method parameters? The knowledge of parsing the
parameters is obviously embedded in the method parser, so how to use
this knowledge to parse the parameters alone?

Any help would be greatly appreciated.

[No, but you can fake it. Some of the commercial versions have multiple
entry points. -John]


Post a followup to this message

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