5 ms·
How do I pass my programming language as parameter to it?
by valenterry 4y ago
How do I pass my programming language as parameter to it?
- emaginniss 4y agoWhy would you need to pass in your language? The AST is data. You can then take that AST, which is already validated and disambiguated and act upon it in any way that you'd like.
- valenterry 4y agoBecause I want to analyze and transform the AST with the tools and libraries that my programming language offers. To be more precise, I want the data to be datatypes of my programming language and not JSON or some custom structure that I have to first parse myself.