Class Lexer
java.lang.Object
com.github.zafarkhaja.semver.expr.Lexer
A lexer for the SemVer Expressions.
- Since:
- 0.7.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
This 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 aLexer
instance.
-
-
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
-