Package icyllis.arc3d.compiler.lex
Interface NFAState
- All Known Implementing Classes:
NFAState.Accept
,NFAState.Filter
,NFAState.Replace
public interface NFAState
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Represents an accepting state - if the NFA ends up in this state, we have successfully matched the token indicated by 'mToken'.static class
Matches a character that satisfies a character filter.static class
A state which serves as a placeholder for the states indicated in 'mShadow'. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(char c) static NFAState
Accept
(int token) static NFAState
Filter
(IntPredicate filter, @Unmodifiable it.unimi.dsi.fastutil.ints.IntList next) @Unmodifiable it.unimi.dsi.fastutil.ints.IntList
next()
static NFAState
Replace
(@Unmodifiable it.unimi.dsi.fastutil.ints.IntList shadow)
-
Method Details
-
accept
boolean accept(char c) -
next
@Unmodifiable it.unimi.dsi.fastutil.ints.IntList next() -
Accept
-
Filter
@Nonnull static NFAState Filter(IntPredicate filter, @Unmodifiable it.unimi.dsi.fastutil.ints.IntList next) -
Replace
-