What are some simple ways to create an Abstract Syntax Tree of Java source code?
-
In Java itself. Preferably in Netbeans.
-
Answer:
Wrote an answer below before you added "In Java itself". The question was making so much more sense without this extra constraint. If I'm reading the question right: Obtain a Java spec in http://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form: http://lmgtfy.com/?q=java+bnf. Use an existing compiler compiler, like yacc, to generate a converter from input text to AST. http://lmgtfy.com/?q=yacc+bnf+java 2nd result: http://www.cse.chalmers.se/edu/year/2011/course/TIN321/lectures/bnfc-tutorial.html
Dima Korolev at Quora Visit the source
Related Q & A:
- How to find the embed code for videos on a Website when it doesn't show in the source code?Best solution by Stack Overflow
- What are the simple differences between engines?Best solution by Stack Overflow
- Where to find 'the art and Science of C' source code?Best solution by Stack Overflow
- Where to get ubuntu source code?Best solution by wiki.answers.com
- Any simple ways to make my red eyes white?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.