Transforming AST after "parser" phase of scala compiler

43 views
Skip to first unread message

Vikas Chauhan

unread,
Apr 22, 2014, 12:28:12 AM4/22/14
to scala-l...@googlegroups.com
 Hi SIr,

     I was transforming AST after parser phase by inserting plugin. Transformed AST is calling a class whose definition contains by my library which i am running in parallel with scala input program by using the command scalac -Xprint:parser -Yshow-trees InputProgram.scala  MyLibrary.scala -Xplugin:MyPlugin.jar .

It's not able to recognize the class. As it's giving error ( not found: variable Classname ).
Please help me out. Thank you very much in advance. 

Lex Spoon

unread,
Apr 22, 2014, 7:26:58 AM4/22/14
to scala-l...@googlegroups.com
Have you checked your sequence of phases with -Xshow-phases? It can be tricky to get your phase inserted at the right spot in the sequence.

Also, you used -Xprint:parser. You can change the "parser" part to the name of your phase, if you like.

Lex
Reply all
Reply to author
Forward
0 new messages