antlr4 with python(interface is not good as Java)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lantianjialiang/article/details/91522852

antlr4 with python

  1. install python
  2. config antlr4(need JDK)
  3. write you parser syntax and verify it
  4. convert to python and install python runtime
    pip install antlr4-python3-runtime
  5. write you customer listener to do your work

antlr4 token priority
https://stackoverflow.com/questions/29777778/antlr-4-5-mismatched-input-x-expecting-x

猜你喜欢

转载自blog.csdn.net/lantianjialiang/article/details/91522852