Constructing a simple interpreter

后端 未结 9 2289
别跟我提以往
别跟我提以往 2020-12-15 11:41

I’m starting a project where I need to implement a light-weight interpreter. The interpreter is used to execute simple scientific algorithms. The programming language that t

9条回答
  •  别那么骄傲
    2020-12-15 11:49

    I am surprised no one has mentioned xtext yet. It is available as Eclipse plugin and IntelliJ plugin. It provides not just the parser like ANTLR but the whole pipeline (including parser, linker, typechecker, compiler) needed for a DSL. You can check it's source code on Github for understanding how, an interpreter/compiler works.

提交回复
热议问题