This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes help with JavaCC and grammer file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "help with JavaCC and grammer file" Watch "help with JavaCC and grammer file" New topic
Author

help with JavaCC and grammer file

Moniphal Say
Ranch Hand

Joined: Aug 11, 2004
Posts: 48
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


<b>The more we learn, the more we know !</b>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with JavaCC and grammer file
 
Similar Threads
Pasing arrays to servlets?
Auto Increment
JavaCC trace code...
JDBC Oracle connection...not working
Pasing scriptlet variable to javascript