有没有 flex 和 bison (lex/yacc) 组合的替代方案?任何其他可以在 BNF 中指定语言语法的工具?
最佳答案
几个选项:
Ant :http://www.antlr.org/
如果你使用 C++,Boost::Spirit:http://www.boost.org/doc/libs/1_41_0/libs/spirit/doc/html/index.html
关于compiler-construction - flex和bison二人组的替代品?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2017806/