Posted By:
Abey_Mullassery
Posted On:
Tuesday, August 21, 2001 03:15 AM
I got great help from newsgroups viz.,
comp.compilers.tools.javacc
A great place for JavaCC related doubts.
I think Antlr is also discussed at
comp.compilers.tools.pccts
I used the java production methods and the ebnf productions to develop my parser. It is quite simple for simple requirements (such as mine).
For eg.
String Words():
{
StringBuffer theWords = new StringBuffer();
}
{
{theWords.append(getToken(0).image);}
{return theWords.toString();}
}
TOKEN:
{
}
I used javaCC to develop a parser for netlist files.