Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

C grammar for Javacc wanted!

843810Jun 9 2005
Hi all,
I am very new at Javacc and having troubles with writing a parser and extracting some information from C source code.
I found C grammar for Javacc on http://www.cobase.cs.ucla.edu/pub/javacc/C.jj but it's giving a lot of errors. I fixed some of them but now i am stuck with the next one:

C:\>java -classpath . CParser c:\clips\analysis.c.prep
C Parser Version 0.1Alpha: Reading from file c:\clips\analysis.c.prep . . .
Exception in thread "main" java.lang.Error at CParser.<clinit>(CParser.java:3822)

Did anybody come across such an error before? Or can you give me any suggestion about it? Or where can i find a proper C grammar that will work fine with Javacc for my assignment?
Any help would be greatly appreciated!
Thanks,
Olia
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2005
Added on Jun 9 2005
0 comments
149 views