AWhitford AWhitford - 3 years ago 143
Scala Question

Scala AST in Scala

Is there a Scala library that parses Scala and creates an Abstract Syntax Tree (AST)?

Ideally I am interested in a Scala library. Plan B would be a Java library.

(I know I could leverage the EBNF from the Scala Syntax Summary.)

Answer Source

I would think the best way to access the AST is with a compiler plugin. You should read a soft introduction before diving in deep.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download