public class OneOrMoreExpression extends Object implements ParsingExpression
Constructor and Description |
---|
OneOrMoreExpression(ParsingExpression subExpression) |
Modifier and Type | Method and Description |
---|---|
Instruction[] |
compile(CompilationHandler compiler)
Compiles this expression into a sequence of instructions:
|
String |
toString() |
public OneOrMoreExpression(ParsingExpression subExpression)
public Instruction[] compile(CompilationHandler compiler)
Choice L3 L1: subExpression CommitVerify L2 L2: Choice L4 Jump L1 L3: Fail L4: ....Should be noted that can be compiled with help of
ZeroOrMoreExpression
:
subExpresson L1: Choice L2 subExpression CommitVerify L1 L2: ...
compile
in interface ParsingExpression
Copyright © 2009–2017 SonarSource. All rights reserved.