解析树和语法信息

发布于 2024-07-05 04:57:21 字数 144 浏览 5 评论 0原文

有谁知道在哪里可以找到好的在线资源以及如何制作语法和解析树的示例? 最好是介绍性材料。 信息是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

白鸥掠海 2024-07-12 04:57:21

在 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

可可 2024-07-12 04:57:21

不在网上,但也许您应该看看 编译器:原理、技术和工具 (第二版),作者: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

じ违心 2024-07-12 04:57:21

好吧,这就是我学到的地方......

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

逐鹿 2024-07-12 04:57:21

安特尔?

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.

彩扇题诗 2024-07-12 04:57:21

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文