| Constructor and Description |
|---|
LexerImpl(Syntax syntax,
Collection<UnaryOperator> unaryOperators,
Collection<BinaryOperator> binaryOperators)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
tokenize(Reader reader,
String name)
This is the main method used to tokenize the raw contents of a template.
|
public LexerImpl(Syntax syntax, Collection<UnaryOperator> unaryOperators, Collection<BinaryOperator> binaryOperators)
syntax - The primary syntaxunaryOperators - The available unary operatorsbinaryOperators - The available binary operatorspublic TokenStream tokenize(Reader reader, String name) throws ParserException
tokenize in interface Lexerreader - The reader provided from the Loadername - The name of the template (used for meaningful error messages)ParserException - Thrown from the Reader objectCopyright © 2016. All rights reserved.