Parser Macros for Scala

Parser macros are a new kind of macros that allow developers to create new language constructs and to define their own syntax for using them. In this report, we present why parser macros are useful and the kind of problems that they help to solve. We will also see how they are implemented and gain insight about how they take advantage from scala.meta, the new metaprogramming toolkit for Scala. Finally, we will discuss what are the current limitations of parser macros and what is left for future work.

    Keywords: Metaprogramming ; macros


    • EPFL-REPORT-218351

    Record created on 2016-05-06, modified on 2017-05-12

Related material