use of com.mitchellbosecke.pebble.lexer.TokenStream in project Orchid by JavaEden.
the class SimpleTagParser method parse.
public RenderableNode parse(Token token, Parser parser) throws ParserException {
TokenStream stream = parser.getStream();
int lineNumber = token.getLineNumber();
// skip over the tag name token
stream.next();
// parameter expressions will be added here
paramExpressionMap = parseParams(parameters, true, tagClass, stream, parser);
// end parsing now
stream.expect(Token.Type.EXECUTE_END);
return new PebbleWrapperTemplateTag.TemplateTagNode(lineNumber, this);
}
Aggregations