rxwei / Parsey

Swift Parser Combinators
MIT License
58 stars 6 forks source link

Implement staging #4

Open rxwei opened 7 years ago

rxwei commented 7 years ago

Implement a staging back-end code generator / interpreter as a seamless plugin to support the current tagless front-end. Contributions are welcome.

kyouko-taiga commented 6 years ago

What would be the input language?

rxwei commented 6 years ago

The input language is the same DSL. The idea is based on tagless-final style interpreters and Lightweight Modular Staging. Here’s a paper discussing staged parser combinators built using LMS: https://infoscience.epfl.ch/record/203076/files/p637-jonnalagedda.pdf