Class NextNotExpression

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

public class NextNotExpression extends Object implements ParsingExpression
  • Constructor Details

  • Method Details

    • compile

      public Instruction[] compile(CompilationHandler compiler)
      Compiles this expression into a sequence of instructions:
       Choice L1
       subExpression
       FailTwice
       L1: ...
       
      Should be noted that can be compiled without usage of instruction "FailTwice":
       Choice L2
       subExpression
       Commit L1
       L1: Fail
       L2: ...
       
      Specified by:
      compile in interface ParsingExpression
    • toString

      public String toString()
      Overrides:
      toString in class Object