lex/yacc 和解析器/扫描器
lex 和 yacc 应该一起使用。
哪一个是扫描器,哪一个是解析器?
哪一个创建扫描器,哪一个创建解析器?
lex and yacc are supposed to be used together.
Which ones is the scanner and which one is the parser?
Which one creates a scanner and which one creates a parser?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Lex (flex) 是词法扫描器。 Yacc (bison) 是 LALR 解析器生成器。
Lex (flex) is the lexical scanner. Yacc (bison) is the LALR parser generator.
您会发现维基百科对所有这些软件工具都有很好的答案,并且会清晰简洁地解释它们。当您想要标准问题的明确答案时,这通常是最好的起点。
这是
http://en.wikipedia.org/wiki/Lex_(软件)
还有更多
You will find that Wikipedia has excellent answers on all of these software tools and will explain them clearly and concisely. It's often the best place to start when you want a clear answer to a standard question.
Here is
http://en.wikipedia.org/wiki/Lex_(software)
And there is a lot more