Package org.sonar.sslr.internal.vm
Class FirstOfExpression
- java.lang.Object
-
- org.sonar.sslr.internal.vm.FirstOfExpression
-
- All Implemented Interfaces:
Matcher
,ParsingExpression
public class FirstOfExpression extends Object implements ParsingExpression
-
-
Constructor Summary
Constructors Constructor Description FirstOfExpression(ParsingExpression... subExpressions)
-
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
-
FirstOfExpression
public FirstOfExpression(ParsingExpression... subExpressions)
-
-
Method Detail
-
compile
public Instruction[] compile(CompilationHandler compiler)
Compiles this expression into a sequence of instructions:Choice L1 subExpression[0] Commit E L1: Choice L2 subExpression[1] Commit E L2: Choice L3 subExpression[2] Commit E L3: subExpression[3] E: ...
- Specified by:
compile
in interfaceParsingExpression
-
-