解析树和语法信息
有谁知道在哪里可以找到好的在线资源以及如何制作语法和解析树的示例? 最好是介绍性材料。 信息是 n00b 友好的,我自己在 Google 上没有找到任何好的信息。
编辑:我正在考虑理论,而不是特定的解析器软件。
Does anyone know where to find good online resources with examples of how to make grammars and parse trees? Preferably introductory materials.
Info that is n00b friendly, haven't found anything good with Google myself.
Edit: I'm thinking about theory, not a specific parser software.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在 C,C++ 中使用 lex 和 bison
在java中使用 ANTLR
这是一个漂亮的 antlr 视频教程
in C,C++ use lex and bison
in java use ANTLR
this is a beautiful antlr video tutorial
不在网上,但也许您应该看看 编译器:原理、技术和工具 (第二版),作者:Aho 等人。 这是一个已经发展了30年的标准文本(如果算上第一本龙书,发表于 1977 年
Not online, but maybe you should take a look at Compilers: Principles, Techniques, and Tools (2nd Edition) by Aho et al. This is a standard text that has been evolving for 30 years (if you count the 1st Dragon Book, published in 1977
好吧,这就是我学到的地方......
http://www.cs.uiuc .edu/class/sp08/cs273/
单击讲座标签,滚动浏览,直到找到与您正在讨论的材料相关的讲座。
爱我的母校。 上帝保佑他们,他们从不记下任何课程的讲座,你可以随时去阅读其中的任何一篇。
编辑:看起来你想要讲座11
Well, here's where I learned it...
http://www.cs.uiuc.edu/class/sp08/cs273/
Click on the lectures tag, scroll through till you find the lectures on the material you are talking about.
Love my alma mater. God bless them, they never take down their lectures in any class and you can go and read any of them anytime you want.
edit: Looks like you want lecture11
安特尔?
http://www.antlr.org/
有一个非常好的 IDE 用于设计语法,还有很多不同语言的生成器。
Antlr?
http://www.antlr.org/
Has a quite good IDE for designing a grammar, and a lot of generators for different languages.
www.goldparser.com
这些工具是免费的,而且很好用。 它有技术和理论教程、大量信息、工具和适用于许多语言的代码生成器。
www.goldparser.com
The tools are free and good to work on. It has technical and theoretical tutorials, lots of info, tools and code generators for many langs.