ANTLR Section Index

What is the difference between using "a" and A in the parser if I have rule A : "a"; in the Lexer?

How do I convert my PCCTS grammar to ANTLR?

Is ANTLR appropriate for building a line-oriented preprocessor like the C preprocessor or m4?

What is a tree parser and why would I want to use one?

What's the difference between a parse tree and an abstract syntax tree (AST)? Why doesn't ANTLR generate trees with nodes for grammar rules like JJTree does?

How do I build a source-to-source translator in ANTLR? What is the basic strategy?

Why does ANTLR say that two of my lexer rules are ambiguous? Or, why am I having so much trouble with DOT or PERIOD at the left-edge of lexer rules?

Why are trees not built properly when I manually manipulate the return tree (with an action) for a rule?

How can I track the character position within an input file? I want know at what index does a token start.

Can I push back the most recently read token into the input stream?

Is there a C++ grammar for ANTLR? Is it even possible to parse C++ with a conventional grammar?

Why can't I get the exportVocab/importVocab directives to work with string literals across multiple files?

ANTLR generates methods for rules that are too complex/large for my compiler. What can I do?

Testing

How do I parse a formula? I have a string containing a mathematical formula formula like "144/12". How do I calculate its value?

About | Sitemap | Contact