java.lang.Object
org.praxislive.core.syntax.Tokenizer
Class to split a CharSequence into Tokens.
-
Constructor Details
-
Tokenizer
Create a Tokenizer for the specified text.- Parameters:
text-
-
-
Method Details
-
iterator
-
parse
Convenience method to parse text into tokens. This method will throw an exception if the text is invalid. If you need a partial token sequence, use the iterator directly.- Parameters:
text- text to parse- Returns:
- list of tokens
- Throws:
InvalidSyntaxException- if the text is invalid
-