Package eu.bandm.tools.xantlr.runtime
Interface EventGenerator<N,D>
- All Known Implementing Classes:
EventFilter
,SAXEventGenerator
public interface EventGenerator<N,D>
Realizes the run-time implementation for the semantic actions inserted
by xantlr
into any generated parser.
Such an object has to be linked to the generated parser, which is a
These actions represent the recognized "AST" as a sequence of opening and closing events. Normally the implementation is a
Such an object has to be linked to the generated parser, which is a
X_LLkParser
. See there for details!
These actions represent the recognized "AST" as a sequence of opening and closing events. Normally the implementation is a
SAXEventGenerator
, which maps these events to SAX events.-
Method Summary
Modifier and TypeMethodDescriptionvoid
allow()
void
characters
(String text) void
endElement
(N name) void
void
fatalError
(String message) getLocation
(antlr.RecognitionException e) void
startElement
(N name) void
suppress()
void
-
Method Details
-
suppress
void suppress() -
allow
void allow() throws antlr.SemanticException- Throws:
antlr.SemanticException
-
startElement
- Throws:
antlr.SemanticException
-
endElement
- Throws:
antlr.SemanticException
-
characters
- Throws:
antlr.SemanticException
-
warning
- Throws:
antlr.SemanticException
-
error
- Throws:
antlr.SemanticException
-
fatalError
- Throws:
antlr.SemanticException
-
getLocation
-
getLocation
-