first doc commit
This commit is contained in:
parent
78fde76fc5
commit
66c0aeb93c
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
46
doc/index.md
46
doc/index.md
|
@ -6,50 +6,46 @@ Please check Frequently asked questions (FAQ) before asking questions. The main
|
||||||
|
|
||||||
This text was copied with permission from the [The Definitive ANTLR 4 Reference](http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference), though it is being morphed over time as the tool changes. Links in the documentation refer to various sections of the book but have been redirected to the general book page on the publisher's site. There are two excerpts on the publisher's website that might be useful to you without having to purchase the book: [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). You should also consider reading the following books (the vid describes the reference book):
|
This text was copied with permission from the [The Definitive ANTLR 4 Reference](http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference), though it is being morphed over time as the tool changes. Links in the documentation refer to various sections of the book but have been redirected to the general book page on the publisher's site. There are two excerpts on the publisher's website that might be useful to you without having to purchase the book: [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). You should also consider reading the following books (the vid describes the reference book):
|
||||||
|
|
||||||
<img src=images/tpantlr2.png width=120>
|
<a href=""><img src=images/tpantlr2.png width=120></a>
|
||||||
<img src=images/tpdsl.png width=120>
|
<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>
|
||||||
<iframe class="youtube-player conf-macro output-block" type="text/html" style="width: 300px; height: 169px" src="//www.youtube.com/embed/OAoA3E-cyug?wmode=opaque" frameborder="0" data-hasbody="false" data-macro-name="widget">
|
|
||||||
</iframe>
|
|
||||||
|
|
||||||
This documentation is a reference and summarizes grammar syntax and the key semantics of ANTLR grammars. The source code for all examples in the book, not just this chapter, are free at the publisher's website. The following video is a general tour of ANTLR 4 and includes a description of how to use parse tree listeners to process Java files easily:
|
This documentation is a reference and summarizes grammar syntax and the key semantics of ANTLR grammars. The source code for all examples in the book, not just this chapter, are free at the publisher's website. The following video is a general tour of ANTLR 4 and includes a description of how to use parse tree listeners to process Java files easily:
|
||||||
|
|
||||||
<object id="myFlashContent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="169" class="conf-macro output-block" data-hasbody="false" data-macro-name="widget">
|
<a href="https://vimeo.com/59285751"><img src=images/tertalk.png width=200></a>
|
||||||
<param name="movie" value="//vimeo.com/moogaloop.swf?clip_id=59285751&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" />
|
|
||||||
<param name="allowFullScreen" value="true" />
|
|
||||||
<param name="allowscriptaccess" value="always" />
|
|
||||||
<param name="wmode" value="opaque" />
|
|
||||||
<!--[if !IE]>-->
|
|
||||||
<object type="application/x-shockwave-flash" data="//vimeo.com/moogaloop.swf?clip_id=59285751&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" width="300" height="169">
|
|
||||||
<param name="movie" value="//vimeo.com/moogaloop.swf?clip_id=59285751&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" />
|
|
||||||
<param name="allowFullScreen" value="true" />
|
|
||||||
<param name="allowscriptaccess" value="always" />
|
|
||||||
<param name="wmode" value="opaque" />
|
|
||||||
<!--<![endif]-->
|
|
||||||
<a href="https://get.adobe.com/flashplayer/">
|
|
||||||
<img src="https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
|
|
||||||
</a>
|
|
||||||
<!--[if !IE]>-->
|
|
||||||
</object>
|
|
||||||
<!--<![endif]-->
|
|
||||||
</object>
|
|
||||||
|
|
||||||
## Sections
|
## Sections
|
||||||
|
|
||||||
Getting Started with ANTLR v4
|
Getting Started with ANTLR v4
|
||||||
|
|
||||||
Grammar Lexicon
|
Grammar Lexicon
|
||||||
|
|
||||||
Grammar Structure
|
Grammar Structure
|
||||||
|
|
||||||
Parser Rules
|
Parser Rules
|
||||||
|
|
||||||
Left-recursive rules
|
Left-recursive rules
|
||||||
|
|
||||||
Actions and Attributes
|
Actions and Attributes
|
||||||
|
|
||||||
Lexer Rules
|
Lexer Rules
|
||||||
|
|
||||||
Wildcard Operator and Nongreedy Subrules
|
Wildcard Operator and Nongreedy Subrules
|
||||||
|
|
||||||
Parse Tree Listeners
|
Parse Tree Listeners
|
||||||
|
|
||||||
Parse Tree Matching and XPath
|
Parse Tree Matching and XPath
|
||||||
|
|
||||||
Semantic Predicates
|
Semantic Predicates
|
||||||
|
|
||||||
Options
|
Options
|
||||||
|
|
||||||
ANTLR Tool Command Line Options
|
ANTLR Tool Command Line Options
|
||||||
|
|
||||||
Runtime Libraries and Code Generation Targets
|
Runtime Libraries and Code Generation Targets
|
||||||
|
|
||||||
Parser and lexer interpreters
|
Parser and lexer interpreters
|
||||||
|
|
||||||
Integrating ANTLR into Development Systems
|
Integrating ANTLR into Development Systems
|
||||||
|
|
||||||
You can also build ANTLR itself.
|
You can also build ANTLR itself.
|
||||||
|
|
Loading…
Reference in New Issue