need help creating a simpler grammer
0 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Monday, July 4, 2005 06:32 AM

consider the grammer
S : A B C
| A C B
| A B
| A C
| A
| B A C
| B C A
| B A
... (goes on like this )

A, B and C are keywords (strings)

How can I simplify the rule S ? It will be much harder to write it if there is a D. I think I am missing something here. I will be happy if someone can guide me to the proper documents.

By the way I am pretty new to antlr...

Thanks in advance


About | Sitemap | Contact