Class NextExpression

    • Constructor Detail

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