Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compiler Tools JavaCC > Parsing Ansi-C ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 464 of 549
Post > Topic >>

Parsing Ansi-C grammar

by Mauro <ZioByte@[EMAIL PROTECTED] > Jun 12, 2007 at 12:06 AM

Hi All,
I need to parse a plain-C grammar from Java (to implement a code
generator).

For my purposes JTB would be perfect: I could modify the "pretty
print" visitor to do what I need with minimal effort.

Catch: JTB seems to dislike code in the input grammar itself (could
interfere with its own additions), while I need it to maintain (at
least) typedef information (see JavaCC C-grammar).

Using plain JavaCC is much more ***bersome; jjtree seems almost
useless (or I can't devise an easy way to induce it to produce a tree
including token info).

Any other suggestions?

Side Issues: JTB (and, to a lesser extent, JavaCC) does not seem very
lively. Are they just "mature" or are they on the way to the grave?
Should I use them for new development or should I look somewhere else?
Reason why I insist on JTB is it seems to produce exactly what I need.

Thanks in Advance
Mauro
 




 2 Posts in Topic:
Parsing Ansi-C grammar
Mauro <ZioByte@[EMAIL   2007-06-12 00:06:34 
Re: Parsing Ansi-C grammar (adding tokens to JJTree nodes)
AC <user@[EMAIL PROTEC  2007-06-12 12:52:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:06:19 CDT 2008.