| Class | Description |
|---|---|
| CodeReaderInputBuffer |
An
InputBuffer over a CodeReader
Unfortunately, this is required. |
| CodeReaderListener |
A parsing listener associated with a Sonar
CodeReader and Lexer
This listener will handle both the consumption of characters from the code
reader, and adding tokens to the lexer. |
| GrappaChannel |
The one and only channel necessary for a Grappa-based
Lexer |
| GrappaSslrFactory |
A factory to create a Sonar parser based on a lexerful
Grammar and
a Grappa parser
The syntax to create a factory is:
final GrappaSslrFactory factory = GrappaSslrFactory
.withParserClass(MyParser.class)
.withInjector(MyGrammar::myMethod)
.withEntryPoint(someGrammarRuleKey)
.build();
You then use the GrappaSslrFactory.getParser() method to build a parser, which you
will then use in an AstScanner. |
| GrappaSslrFactory.Builder<P extends SonarParserBase> |
A builder for a
GrappaSslrFactory
This class is not directly instantiable; use GrappaSslrFactory.withParserClass(Class) to create a new instance. |
| SonarParserBase |
The base (grappa) parser class to extend
This base parser class only defines a single method whose argument is
a
TokenType and always returns true. |