Package org.sonar.sslr.internal.vm
Class NextExpression
- java.lang.Object
-
- org.sonar.sslr.internal.vm.NextExpression
-
- All Implemented Interfaces:
Matcher
,ParsingExpression
public class NextExpression extends Object implements ParsingExpression
-
-
Constructor Summary
Constructors Constructor Description NextExpression(ParsingExpression subExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instruction[]
compile(CompilationHandler compiler)
Compiles this expression into a sequence of instructions:String
toString()
-
-
-
Constructor Detail
-
NextExpression
public NextExpression(ParsingExpression subExpression)
-
-
Method Detail
-
compile
public Instruction[] compile(CompilationHandler compiler)
Compiles this expression into a sequence of instructions:Choice L1 subExpression BackCommit L2 L1: Fail L2: ...
Should be noted that can be compiled without usage of instruction "BackCommit":Choice L1 Choice L2 subExpression L2: Commit L3 L3: Fail L1: ...
- Specified by:
compile
in interfaceParsingExpression
-
-