2015-10-26 06:09:29 +08:00
|
|
|
# Frequently-Asked Questions (FAQ)
|
2015-10-26 05:04:14 +08:00
|
|
|
|
|
|
|
## Getting Started
|
|
|
|
|
2015-10-26 06:09:29 +08:00
|
|
|
* [How to I install and run a simple grammar?](getting-started.md)
|
|
|
|
* [Why does my parser test program hang?](getting-started.md)
|
2015-10-26 05:04:14 +08:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2015-10-26 06:23:01 +08:00
|
|
|
* [Why can't ANTLR (grun) find my lexer or parser?](installation.md)
|
|
|
|
* [Why can't I run the ANTLR tool?](installation.md)
|
|
|
|
* [Why doesn't my parser compile?](installation.md)
|
2015-10-26 05:04:14 +08:00
|
|
|
|
|
|
|
## General
|
|
|
|
|
2015-10-26 06:23:01 +08:00
|
|
|
* [Why do we need ANTLR v4?](general.md)
|
|
|
|
* [What is the difference between ANTLR 3 and 4?](general.md)
|
|
|
|
* [Why is my expression parser slow?](general.md)
|
2015-10-26 05:04:14 +08:00
|
|
|
|
|
|
|
## Grammar syntax
|
|
|
|
|
|
|
|
## Lexical analysis
|
|
|
|
|
2015-10-26 06:32:37 +08:00
|
|
|
* [How can I parse non-ASCII text and use characters in token rules?](lexical.md)
|
|
|
|
* [How do I replace escape characters in string tokens?](lexical.md)
|
|
|
|
* [Why are my keywords treated as identifiers?](lexical.md)
|
|
|
|
* [Why are there no whitespace tokens in the token stream?](lexical.md)
|
2015-10-26 05:04:14 +08:00
|
|
|
|
|
|
|
## Parse Trees
|
|
|
|
|
|
|
|
* How do I get the input text for a parse-tree subtree?
|
|
|
|
* What if I need ASTs not parse trees for a compiler, for example?
|
|
|
|
* When do I use listener/visitor vs XPath vs Tree pattern matching?
|
|
|
|
|
|
|
|
## Translation
|
|
|
|
|
|
|
|
* ASTs vs parse trees
|
|
|
|
* Decoupling input walking from output generation
|
|
|
|
|
|
|
|
## Actions and semantic predicates
|
|
|
|
|
|
|
|
* How do I test if an optional rule was matched?
|
|
|
|
|
|
|
|
## Error handling
|
|
|
|
|
|
|
|
* How do I perform semantic checking with ANTLR?
|