How would I go about Implementing A Simple Stack-Based Programming Language

前端 未结 2 1675
猫巷女王i
猫巷女王i 2021-02-02 03:14

I am interested in extending my knowledge of computer programming by implementing a stack-based programming language. I am seeking out advice on where to begin, as I intend for

2条回答
  •  花落未央
    2021-02-02 03:55

    I think you will find a paper on "MetaII" really enlightening. It shows how to define a pushdown stack compiler machine and an compiler for it, in 10 short but mind-bending pages. See this answer: https://stackoverflow.com/a/1005680/120163 Once you understand this, writing pushdown stack interpreters will forever be easy.

提交回复
热议问题