trait SharedPackageDefs extends AnyRef

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

Type Members

  1. type P0 = ParsingRun[Unit]

    Shorthand for P[Unit]

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. def AnyChar(implicit ctx: P[_]): P[Unit]

    Parses a single character, any character, as long as there is at least one character for it to parse (i.e.

    Parses a single character, any character, as long as there is at least one character for it to parse (i.e. the input isn't at its end)

  5. def End(implicit ctx: P[_]): P[Unit]

    Parser that is only successful at the end of the input.

    Parser that is only successful at the end of the input. Useful to ensure your parser parses the whole file.

  6. def Fail(msg: String)(implicit ctx: P[_]): P[Nothing]

    No-op parser with a custom error message that always fails, consuming zero characters

  7. def Fail(implicit ctx: P[_]): P[Nothing]

    No-op parser that always fails, consuming zero characters

  8. def IgnoreCase(s: String)(implicit ctx: P[Any]): P[Unit]

    Parses a string value case-insensitively

  9. def Index(implicit ctx: P[_]): P[Int]

    Parser that always succeeds and returns the current index into the parsed input.

    Parser that always succeeds and returns the current index into the parsed input. Useful for e.g. capturing source locations so when downstream valiation raises errors you can tell the user where in the input the error originated from

  10. def NoCut[T](parse: ⇒ P[T])(implicit ctx: P[_]): P[T]

    Allows backtracking regardless of whether cuts happen within the wrapped parser; this is useful for re-using an existing parser with cuts within it, in other parts of your grammar where backtracking is necessary and unavoidable.

  11. def NoTrace[T](p: ⇒ P[T])(implicit ctx: P[_]): P[T]

    Wraps a parser and ensures that none of the parsers within it leave failure traces in terminalMsgs, though unlike ByNameOps.opaque if there is a failure *within* the wrapped parser the failure's location and error message will still be shown

    Wraps a parser and ensures that none of the parsers within it leave failure traces in terminalMsgs, though unlike ByNameOps.opaque if there is a failure *within* the wrapped parser the failure's location and error message will still be shown

    Useful for wrapping things like whitespace, code-comment, etc. parsers which can be applied everywhere and are not useful to display to the user as part of the error message.

  12. def Pass[T](v: T)(implicit ctx: P[_]): P[T]

    No-op parser that always succeeds with the given value, consuming zero characters

  13. def Pass(implicit ctx: P[_]): P[Unit]

    No-op parser that always succeeds, consuming zero characters

  14. def SingleChar(implicit ctx: P[_]): P[Char]

    Like AnyChar, but returns the single character it parses.

    Like AnyChar, but returns the single character it parses. Useful together with EagerOps.flatMapX to provide one-character-lookahead style parsing: SingleChar consumes the single character, and then EagerOps.flatMapX can match on that single character and decide which downstream parser you wish to invoke

  15. def Start(implicit ctx: P[_]): P[Unit]

    Parser that is only successful at the start of the input.

  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def parse[T](input: ParserInputSource, parser: (P[_]) ⇒ P[T], verboseFailures: Boolean = false, startIndex: Int = 0, instrument: Instrument = null): Parsed[T]

    Parses the given input ParserInput using the given parser and returns a Parsed result containing the success value or failure metadata.

    Parses the given input ParserInput using the given parser and returns a Parsed result containing the success value or failure metadata.

    Can take either a String, an Iterator or strings or a fastparse.ParserInput object

    input

    the input to parse

    parser

    the parser method to use to parse the input

    verboseFailures

    enable this to show a more detailed error message if a parser fails, without needing to run .traced.trace. Defaults to false as it slows down parsing considerably

    startIndex

    where in the input to start parsing

    instrument

    Callbacks that get run before and after every named P(...) parser

  28. def parseInputRaw[T](input: ParserInput, parser: (P[_]) ⇒ P[T], verboseFailures: Boolean = false, startIndex: Int = 0, traceIndex: Int = -1, instrument: Instrument = null, enableLogging: Boolean = true): ParsingRun[T]
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped