org.sonar.sslr.internal.vm
Class FirstOfExpression

java.lang.Object
  extended by org.sonar.sslr.internal.vm.FirstOfExpression
All Implemented Interfaces:
Matcher, ParsingExpression

public class FirstOfExpression
extends Object
implements ParsingExpression


Constructor Summary
FirstOfExpression(ParsingExpression... subExpressions)
           
 
Method Summary
 Instruction[] compile(CompilationHandler compiler)
          Compiles this expression into a sequence of instructions:
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 interface ParsingExpression

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.