Package icyllis.arc3d.compiler.lex
Interface RegexNode
- All Known Implementing Classes:
RegexNode.Char
,RegexNode.CharClass
,RegexNode.Range
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a node in the parse tree of a regular expression.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic RegexNode
Char
(char c) Match a character.static RegexNode
Match a character class.static RegexNode
Match a character class.static RegexNode
Concatenation: XY (X -> Y -> Next)static RegexNode
Dot()
Wildcard, excluding LF and CR.static RegexNode
X -> X, X -> Next.static RegexNode
X -> Next, Next -> Next.static RegexNode
Range
(char start, char end) Match a character range.static RegexNode
Match a character range.static RegexNode
Kleene closure: X -> X, X -> Next, Next -> Next.@Unmodifiable it.unimi.dsi.fastutil.ints.IntList
transition
(NFA nfa, @Unmodifiable it.unimi.dsi.fastutil.ints.IntList next) Creates NFA states for this node, with a successful match against this node resulting in a transition next all the states in thenext
list.static RegexNode
Alternation: X|Y (X -> Next, Y -> Next)
-
Method Details
-
transition
@Unmodifiable it.unimi.dsi.fastutil.ints.IntList transition(NFA nfa, @Unmodifiable it.unimi.dsi.fastutil.ints.IntList next) Creates NFA states for this node, with a successful match against this node resulting in a transition next all the states in thenext
list. -
Char
Match a character. -
Range
Match a character range. -
Range
Match a character range. -
CharClass
Match a character class. -
CharClass
Match a character class. -
Concat
Concatenation: XY (X -> Y -> Next) -
Union
Alternation: X|Y (X -> Next, Y -> Next) -
Dot
Wildcard, excluding LF and CR. -
Star
Kleene closure: X -> X, X -> Next, Next -> Next. Match between zero, one and unlimited times. -
Plus
X -> X, X -> Next. Match between one and unlimited times. -
Ques
X -> Next, Next -> Next. Match between zero and one times.
-