The set of "frequently asked questions" (FAQ) for ANTLR version 3.
The questions are organized by topic via subpages.
- API Documentation - Language Targets
- Downloadable Examples
- FAQ - Actions
- FAQ - Command-line options
- FAQ - Debugging
- FAQ - Error handling
- FAQ - General
- FAQ - Getting Started
- FAQ - Grammar analysis
- FAQ - Lexical analysis
- Can I see a more complete example?
- How can I allow keywords as identifiers?
- How can I emit an error token upon lexical error?
- How can I emit more than a single token per lexer rule?
- How can I make the lexer exit upon first lexical error?
- How do I access hidden tokens from parser?
- How do I combine fuzzy parsing and stream rewriting?
- How do I fetch tokens on demand not all at once up front?
- How do I get case insensitivity?
- How do I handle abbreviated keywords?
- How do I implement include files?
- How do I match multi-line comments?
- How do I selectively ignore tokens depending on parser context?
- How do I strip quotes?
- How do I use a custom token object?
- Lexing floating point numbers, dot opertor and range operator
- What is the intended behavior of the lexer?
- FAQ - Parsing
- FAQ - Runtime libraries
- FAQ - Translation
- FAQ - Tree construction
- Can you explain ANTLR's tree construction facilities?
- How can I build a different AST node type for each token type?
- How can I build parse trees not ASTs?
- How do I display ASTs graphically
- How do I track whitespace, comments, and other hidden channels during AST construction?
- What does the error 'cannot find tokenRefBangTrack.st' mean?
- FAQ - Tree Parsing
Comments (1)
Jun 17, 2008
Thirumurugan says:
Hi, When generating Lexer parser i am getting Time out error. Is it...Hi,
When generating Lexer parser i am getting Time out error. Is it poaasible to change the time out . Please help me in this
This is the erroir i am getting.
[antlr] ANTLR Parser Generator Version 3.1b1 (May 20, 2008) 1989-2008
[antlr] error(10): internal error: org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1189): could not even do k=1 for decision 35; reason: t
imed out (>1000ms)
[antlr]
[antlr]