Tutorial for walking ANTLR ASTs in C#?

后端 未结 4 1339
一生所求
一生所求 2021-01-31 10:06

Is anyone aware of tutorials for walking ANTLR-generated ASTs in C#? The closest I was able to find is this, but it\'s not terribly helpful.

My goal is to walk through t

4条回答
  •  佛祖请我去吃肉
    2021-01-31 10:50

    You should look into writing a TreeParser; it can make the job of interpreting the tree much simpler.

    For ANTLR 2.x see http://www.antlr2.org/doc/sor.html For ANTLR 3.x see http://www.antlr.org/wiki/display/ANTLR3/Tree+construction (java-based parser and tree parser example)

提交回复
热议问题