Package com.oracle.truffle.regex.tregex.parser.ast.visitors
package com.oracle.truffle.regex.tregex.parser.ast.visitors
-
ClassDescriptionAST visitor base class that will visit a given subtree in depth-first order.Initializes all reachable nodes'
idand populatesRegexAST.getReachableCarets()/RegexAST.getReachableDollars(), as well asRegexAST.getSubtrees()} andRegexASTSubtreeRootNode.getSubtrees()}.For all lookbehind assertions, mark all states where the assertion may begin.Special AST visitor that will find all immediate successors of a given Term when the AST is seen as a NFA, in priority order.Counts the total number of child nodes of a given node.This visitor is used for setting theSourceSectionof AST subtrees that are copied into the parser tree as substitutions for things like word boundaries and position assertions in multi-line mode.