Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

help with JavaCC and grammer file  RSS feed

 
Moniphal Say
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I am newbie here , and I am new to JavaCC. I develop one little programme as a lexical analyser and parser of sql grammar by using JavaCC technology.

I have class : MyParser.jj which define the grammar and parse the query entry.

After compilation I will get class " MyParser.java " which I use it in another application which will call the method parseQuery() of MyParser.java class.

Then for the class MyParser.jj , I have to create methode : parseQuery() . but as process it doen't parse the query

This is my code in MyParser.jj file:


it always return false, whatever the query is, so it mean that it doent do the lexical analyser on the query entry.

Any idear, pls help

Regards,
Moni
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!