Class ASTStepVisitor
java.lang.Object
com.oracle.truffle.regex.tregex.parser.ast.visitors.NFATraversalRegexASTVisitor
com.oracle.truffle.regex.tregex.nfa.ASTStepVisitor
Regex AST visitor that will find convert all NFA successors of a given
Term to
ASTTransitions (by calculating their respective GroupBoundaries) and annotate for
every successor which LookAheadAssertions and/or LookBehindAssertions it should
be merged with. For example, when starting from Term "a" in the expression
/a(b|(?=c)d)(?<=e)/, it will find the successors "b" and "d", where "d" must be merged
with the successors of the look-ahead assertion ("c"), and both successors may be merged with the
successors of the look-behind assertion ("e").- See Also:
-
Field Summary
Fields inherited from class com.oracle.truffle.regex.tregex.parser.ast.visitors.NFATraversalRegexASTVisitor
ast -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidenterLookAhead(LookAheadAssertion assertion) protected booleanprotected voidleaveLookAhead(LookAheadAssertion assertion) protected voidvisit(RegexASTNode target) Visit the next successor found.Methods inherited from class com.oracle.truffle.regex.tregex.parser.ast.visitors.NFATraversalRegexASTVisitor
calcTransitionGuardsResult, canTraverseCaret, caretsOnPath, dollarsOnPath, dumpTransitionGuards, getCurrentMatchedConditionGroups, getGroupBoundaries, getMatchedConditionGroups, getTransitionGuardsOnPath, getTraversableLookBehindAssertions, hasTransitionGuards, isReverse, run, setCanTraverseCaret, setMatchedConditionGroups, setReverse, setTraversableLookBehindAssertions
-
Constructor Details
-
ASTStepVisitor
-
-
Method Details
-
step
-
visit
Description copied from class:NFATraversalRegexASTVisitorVisit the next successor found.- Specified by:
visitin classNFATraversalRegexASTVisitor
-
enterLookAhead
- Specified by:
enterLookAheadin classNFATraversalRegexASTVisitor
-
leaveLookAhead
- Specified by:
leaveLookAheadin classNFATraversalRegexASTVisitor
-
isBuildingDFA
protected boolean isBuildingDFA()- Specified by:
isBuildingDFAin classNFATraversalRegexASTVisitor
-
canPruneAfterUnconditionalFinalState
protected boolean canPruneAfterUnconditionalFinalState()- Specified by:
canPruneAfterUnconditionalFinalStatein classNFATraversalRegexASTVisitor
-