Class Scanner<StateIdType,EmitTokenType>
java.lang.Object
us.irdev.bedrock.bag.scanner.Scanner<StateIdType,EmitTokenType>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final boolean
protected StateIdType
protected static final boolean
protected static final char
protected char[]
protected int
protected Map
<StateIdType, State<StateIdType, EmitTokenType>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddState
(StateIdType stateId) scanChar
(char input) void
scanString
(String input, Receiver<EmitTokenType> receiver) void
start
(char[] input) void
-
Field Details
-
states
-
currentStateId
-
input
protected char[] input -
offset
protected int offset -
CAPTURE
protected static final boolean CAPTURE- See Also:
-
DONT_CAPTURE
protected static final boolean DONT_CAPTURE- See Also:
-
END_OF_INPUT
protected static final char END_OF_INPUT- See Also:
-
-
Constructor Details
-
Scanner
-
-
Method Details
-
addState
public State<StateIdType,EmitTokenType> addState(StateIdType stateId) throws DuplicateStateException - Throws:
DuplicateStateException
-
scanChar
-
start
public void start(char[] input) -
start
-
scanToken
-
scanString
-