Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-core-dev] Prototype AST2 available in cdt_ast2


Hey gang,

I've taken a quick stab at a prototype implementation of the new AST. This work, of course, is being done on the cdt_ast2 branch. I have created a new JUnit test class AST2Tests in core.tests. The AST interface and factory class are in org.eclipse.cdt.core.parser.ast2 in the parser folder. The AST implementation, including a source element requestor to reuse our parser to create the AST, are in org.eclipse.cdt.internal.core.parser.ast2.

So far, I am just parsing "int x;", but it lets me get a feel for the architecture and applicability of the AST.

Any feedback is appreciated, knowing of course this is a pretty rough run at it. Discussion of this feature is being done at: https://bugs.eclipse.org/bugs/show_bug.cgi?id=57816.

Cheers,
Doug Schaefer, IBM's Eclipse CDT Architect
Ottawa (Palladium), Ontario, Canada

Back to the top