Class Lexer
java.lang.Object
com.github.zafarkhaja.semver.expr.Lexer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classThis class holds the information about lexemes in the input stream. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Stream<Lexer.Token> Tokenizes the specified input string.
-
Constructor Details
-
Lexer
Lexer()Constructs aLexerinstance.
-
-
Method Details
-
tokenize
Tokenizes the specified input string.- Parameters:
input- the input string to tokenize- Returns:
- a stream of tokens
- Throws:
LexerException- when encounters an illegal character
-