Packages

  • package root
    Definition Classes
    root
  • package semver4s

    Semver4s provides semver versions and matchers and parsers for them.

    Semver4s provides semver versions and matchers and parsers for them.

    SemVer is a version scheme to delineate when a libraries semantics change. You can read more about it at https://semver.org/

    This library aims to provide at least all functionality the SemVer package in NPM provides, though as of now, it still falls short of that.

    It does so through the types Matcher and Version. You can parse matcher or version strings with semver4s.parseMatcher and semver4s.parseVersion.

    For supported ranges, see the NPM documentation over at https://www.npmjs.com/package/semver#ranges

    For literals, importing Literal._ brings the interpolators m and v in scope, which you can use to write, for example a literal version v"1.2.3" or literal matcher m"~1.3.2 || 2.0.x - 2.2.x", which are parsed and validated at compile time.

    Definition Classes
    root
  • package parsing
    Definition Classes
    semver4s
  • MatcherParser
  • Reporter
  • SemverParser

class Reporter extends AnyRef

A reporter for parse errors

Eagerly allocates a LocationMap, which may be expensive: in most cases, you want a def for a new reporter, and/or pass it as a by name argument.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reporter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Reporter(source: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def charInfo(ch: Char): String

    Get a human-readable representation of some character.

    Get a human-readable representation of some character.

    If the character is an ASCII printable character, itself. Otherwise, include its name, Unicode codepoint, well-known escape sequence as applicable.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val map: LocationMap
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def prettyExpectation(exp: Expectation): Option[String]

    Pretty-prints an expectation, if we know how to.

    Pretty-prints an expectation, if we know how to.

    Pretty-printing is done for OneOfStr, InRange, StartOfString, EndOfString, Length and FailWith.

  17. def report(error: Error): NonEmptyList[String]

    Gets an error report for the given parse error

    Gets an error report for the given parse error

    The report consists of a non-empty list of lines describing the error, the first of which is the line on which the error occurred, and the second is a caret pointing to the error position in the line.

    Following lines indicate what expectations were violated.

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped