ExpressionParser
Date: 2017-02-08

com.github.zafarkhaja.semver.expr

## Class ExpressionParser

- java.lang.Object
- - com.github.zafarkhaja.semver.expr.ExpressionParser

- All Implemented Interfaces:
    Parser<Expression>

      public class ExpressionParser
      extends java.lang.Object
      implements Parser<Expression>

  A parser for the SemVer Expressions.
  Since:
    0.7.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Parser<Expression>` | `newInstance()` Creates and returns new instance of the `ExpressionParser` class.
    `Expression` | `parse(java.lang.String input)` Parses the SemVer Expressions.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### newInstance

          public static Parser<Expression> newInstance()

      Creates and returns new instance of the `ExpressionParser` class. This method implements the Static Factory Method pattern.
      Returns:
        a new instance of the `ExpressionParser` class

    - #### parse

          public Expression parse(java.lang.String input)

      Parses the SemVer Expressions.
      Specified by:
        `parse` in interface `Parser<Expression>`
      Parameters:
        `input` - a string representing the SemVer Expression
      Returns:
        the AST for the SemVer Expressions
      Throws:
        `LexerException` - when encounters an illegal character
        `UnexpectedTokenException` - when consumes a token of an unexpected type