Class Lexer

java.lang.Object
com.github.zafarkhaja.semver.expr.Lexer

class Lexer extends Object
A lexer for the SemVer Expressions.
Since:
0.7.0
  • Constructor Details

    • Lexer

      Lexer()
      Constructs a Lexer instance.
  • Method Details

    • tokenize

      Stream<Lexer.Token> tokenize(String input)
      Tokenizes the specified input string.
      Parameters:
      input - the input string to tokenize
      Returns:
      a stream of tokens
      Throws:
      LexerException - when encounters an illegal character