Class TRegexCompiler
java.lang.Object
com.oracle.truffle.regex.tregex.TRegexCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegexObjectcompile(RegexLanguage language, RegexSource source) Try and compile the regular expression described insource.compileBacktrackingExecutor(RegexLanguage language, NFA nfa) static TRegexDFAExecutorNodecompileEagerDFAExecutor(RegexLanguage language, RegexSource source) compileLazyDFAExecutor(RegexLanguage language, NFA nfa, TRegexExecNode rootNode, boolean allowSimpleCG)
-
Constructor Details
-
TRegexCompiler
public TRegexCompiler()
-
-
Method Details
-
compile
public static RegexObject compile(RegexLanguage language, RegexSource source) throws RegexSyntaxException Try and compile the regular expression described insource.- Throws:
RegexSyntaxException- if the engine discovers a syntax error in the regular expressionUnsupportedRegexException- if the regular expression is not supported by the engine
-
compileEagerDFAExecutor
public static TRegexDFAExecutorNode compileEagerDFAExecutor(RegexLanguage language, RegexSource source) -
compileLazyDFAExecutor
public static TRegexExecNode.LazyCaptureGroupRegexSearchNode compileLazyDFAExecutor(RegexLanguage language, NFA nfa, TRegexExecNode rootNode, boolean allowSimpleCG) -
compileBacktrackingExecutor
public static TRegexBacktrackingNFAExecutorNode compileBacktrackingExecutor(RegexLanguage language, NFA nfa)
-