版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lantianjialiang/article/details/91522852
antlr4 with python
- install python
- config antlr4(need JDK)
- write you parser syntax and verify it
- convert to python and install python runtime
pip install antlr4-python3-runtime - write you customer listener to do your work
antlr4 token priority
https://stackoverflow.com/questions/29777778/antlr-4-5-mismatched-input-x-expecting-x