Scala AST in Scala

AWhitford picture AWhitford · Nov 24, 2009 · Viewed 11.8k times · Source

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

Mitch Blevins picture Mitch Blevins · Nov 24, 2009

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.