Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala parser to parse scala? [duplicate]

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.)

like image 221
AWhitford Avatar asked Aug 30 '26 04:08

AWhitford


1 Answers

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.

like image 149
Mitch Blevins Avatar answered Sep 06 '26 17:09

Mitch Blevins