public class TokenExpression extends Object implements Matcher, ParsingExpression
| Constructor and Description |
|---|
TokenExpression(TokenType tokenType,
ParsingExpression subExpression) |
| Modifier and Type | Method and Description |
|---|---|
Instruction[] |
compile(CompilationHandler compiler)
Compiles this expression into a sequence of instructions:
|
TokenType |
getTokenType() |
String |
toString() |
public TokenExpression(TokenType tokenType, ParsingExpression subExpression)
public TokenType getTokenType()
public Instruction[] compile(CompilationHandler compiler)
Call L1 Jump L2 L1: subExpression Return L2: ...
compile in interface ParsingExpressionCopyright © 2009–2018 SonarSource. All rights reserved.