Package li.selman.jpbe.dsl.token
Class TokenSequenceBuilder
java.lang.Object
li.selman.jpbe.dsl.token.TokenSequenceBuilder
-
Constructor Summary
ConstructorDescriptionTokenSequenceBuilder
(int maxLength, BiFunction<Character, Token, Optional<Token>> computeTokenForCharHook, Tokens tokens) TokenSequenceBuilder
(int maxLength, Tokens tokens) -
Method Summary
-
Constructor Details
-
TokenSequenceBuilder
-
TokenSequenceBuilder
-
-
Method Details
-
computeTokenSequence
- Parameters:
input
- the whole input string provided by the data setfrom
- start index for sub-string oninput
to
- end index for sub-string oninput
- Returns:
- sequence of tokens representing the token structure of a substring on
input
-