Antlr4/index

来自osdev
Zhang3讨论 | 贡献2022年2月21日 (一) 05:56的版本 (创建页面,内容为“{{Markdown}} # ANTLR 4文档 请检查[Frequently asked questions (FAQ)](faq/index.md),然后再在Stackoverflow或antlr讨论列表上提问。 Notes: <ul> <li>要添加或改进本文档, <a href=https://help.github.com/articles/fork-a-repo>fork</a> the <a href=https://github.com/antlr/antlr4>antlr/antlr4 repo</a> then update this `doc/index.md` or file(s) in that directory. Submit a <a href=https://help.github.com/articles/creating-a-pull-request>pull…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

模板:Markdown

  1. ANTLR 4文档

请检查[Frequently asked questions (FAQ)](faq/index.md),然后再在Stackoverflow或antlr讨论列表上提问。

Notes:

  • 要添加或改进本文档, <a href=https://help.github.com/articles/fork-a-repo>fork</a> the <a href=https://github.com/antlr/antlr4>antlr/antlr4 repo</a> then update this `doc/index.md` or file(s) in that directory. Submit a <a href=https://help.github.com/articles/creating-a-pull-request>pull request</a> 将更改合并到主存储库中。 请勿在示例拉取请求中混合使用代码和文档更新。 You must sign the contributors.txt certificate of origin with your pull request if you've not done so before.
  • Copyright © 2012, The Pragmatic Bookshelf. 务实书架授予非独家的、不可撤销的、免版税的全球许可,可复制、分发、准备衍生作品,并以其他方式将此贡献用作ANTLR项目和相关文档的一部分。
  • 这篇文章的大部分是在获得许可的情况下复制的 <a href=http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference>The Definitive ANTLR 4 Reference</a>, 尽管随着工具的变化,它会随着时间的推移而变化。

文档中的链接引用了图书的各个部分,但已重定向到出版商网站上的一般图书页面。 出版商网站上有两个摘录可能对你有用,而不必购买这本书: [Let's get Meta](http://media.pragprog.com/titles/tpantlr2/picture.pdf) and [Building a Translator with a Listener](http://media.pragprog.com/titles/tpantlr2/listener.pdf). 你也应该考虑阅读下面的书(VID描述参考书):

<a href=""><img src=images/tpantlr2.png width=120></a> <a href=""><img src=images/tpdsl.png width=120></a> <a href="https://www.youtube.com/watch?v=OAoA3E-cyug"><img src=images/teronbook.png width=250></a>

本文档作为参考,总结了ANTLR语法的语法、语法和关键语义。 本书中所有示例的源代码,而不仅仅是本章,在出版商的网站上都是免费的。 以下视频是ANTLR 4的概述,并介绍了如何使用解析树侦听器轻松处理Java文件:

<a href="https://vimeo.com/59285751"><img src=images/tertalk.png width=200></a>

For those using Java, here's a great [set of ANTLR in Intellij notes](https://docs.google.com/document/d/1gQ2lsidvN2cDUUsHEkT05L-wGbX5mROB7d70Aaj3R64/edit#heading=h.xr0jj8vcdsgc) by Andreas Stefik.

    1. 章节
  • [Getting Started with ANTLR v4](getting-started.md)
  • [Grammar Lexicon](lexicon.md)
  • [Grammar Structure](grammars.md)
  • [Parser Rules](parser-rules.md)
  • [Left-recursive rules](left-recursion.md)
  • [Actions and Attributes](actions.md)
  • [Lexer Rules](lexer-rules.md)
  • [Wildcard Operator and Nongreedy Subrules](wildcard.md)
  • [Parse Tree Listeners](listeners.md)
  • [Parse Tree Matching and XPath](tree-matching.md)
  • [Semantic Predicates](predicates.md)
  • [Options](options.md)
  • [ANTLR Tool Command Line Options](tool-options.md)
  • [Runtime Libraries and Code Generation Targets](targets.md)
  • [Unicode U+FFFF, U+10FFFF character streams](unicode.md)
  • [Parsing binary streams](parsing-binary-files.md)
  • [Case-Insensitive Lexing](case-insensitive-lexing.md)
  • [Parser and lexer interpreters](interpreters.md)
  • [Resources](resources.md)
  1. Building / releasing ANTLR itself
  • [Building ANTLR itself](building-antlr.md)
  • [Contributing to ANTLR](/CONTRIBUTING.md)
  • [Cutting an ANTLR Release](releasing-antlr.md)
  • [ANTLR project unit tests](antlr-project-testing.md)
  • [Creating an ANTLR Language Target](creating-a-language-target.md)