Best practices for writing a programming language parser

前端 未结 7 1921
故里飘歌
故里飘歌 2020-12-14 16:49

Are there any best practices that I should follow while writing a parser?

7条回答
  •  无人及你
    2020-12-14 17:40

    Read most of the Dragon book first.

    Parsers are not complicated if you know how to build them, but they are NOT the type of thing that if you put in enough time, you'll eventually get there. It's way better to build on the existing knowledge base. (Otherwise expect to write it and throw it away a few dozen times).

提交回复
热议问题