C grammar for Javacc wanted!
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