package parser
- Alphabetic
- By Inheritance
- parser
- ImplicitTupleConversion
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class AnyParserOps[Err, In] extends AnyVal
- implicit final class AnySyntaxOps[Err, In, Out] extends AnyVal
- trait ImplicitTupleConversion extends AnyRef
- sealed trait Parser[+Err, -In, +Result] extends AnyRef
A Parser consumes a stream of 'In's and either fails with a ParserError possibly holding a custom error of type 'Err' or succeeds with a result of type
Result
A Parser consumes a stream of 'In's and either fails with a ParserError possibly holding a custom error of type 'Err' or succeeds with a result of type
Result
Parsers can be combined with Printers to get Syntax, or a Parser and a Printer can be built simultaneously by using the combinators of Syntax.
Recursive parsers can be expressed directly by recursing in one of the zipping or or-else combinators.
By default a parser backtracks automatically. This behavior can be changed with the 'manualBacktracking' operator.
Parsers trees get optimized automatically before running the parser. This optimized tree can be examined by the 'optimized' field. For the full list of transformations performed in the optimization phase check each parser node's 'optimizeNode' method.
- Err
Custom error type
- In
Element type of the input stream of parsing
- Result
The type of the parsed result value
- sealed trait ParserImplementation extends AnyRef
The available parser implementations
The available parser implementations
The default parser implementation is Recursive. There is an alternative implementation available which is stack-safe but slower.
- implicit final class ParserOps[Err, In, Value] extends AnyVal
- sealed trait Printer[+Err, +Out, -Value] extends AnyRef
A Printer takes a value of type 'Value' and either produces a stream of 'Out' elements and a result value of type 'Result', or fails with a custom error of type 'Err'.
A Printer takes a value of type 'Value' and either produces a stream of 'Out' elements and a result value of type 'Result', or fails with a custom error of type 'Err'.
Parsers can be combined with Printers to get Syntax, or a Parser and a Printer can be built simultaneously by using the combinators of Syntax.
- Err
Custom error type
- Out
Element type of the output stream of printing
- Value
The type of the value to be printed
- implicit final class PrinterOps[Err, Out, Value] extends AnyVal
- sealed trait Regex extends AnyRef
A model of a regular expression.
- implicit final class StringErrSyntaxOps[In, Out, Value] extends AnyVal
- class Syntax[+Err, -In, +Out, Value] extends AnyRef
Syntax defines a parser and a printer together and provides combinators to simultaneously build them up from smaller syntax fragments.
Syntax defines a parser and a printer together and provides combinators to simultaneously build them up from smaller syntax fragments.
- Err
Custom error type
- In
Element type of the input stream of parsing
- Out
Element type of the output stream of printing
- Value
The type of the value to be parsed or printed
- trait SyntaxCompanionVersionSpecific extends AnyRef
- implicit class SyntaxOps[Err, In, Out, Value] extends AnyRef
- trait TupleConversion[A, B] extends AnyRef
- implicit final class TupleParserOps[Err, In, Result] extends AnyVal
- implicit class TuplePrinterOps[Err, Out, Value <: Product] extends AnyRef
- implicit final class UnitPrinterOps[Err, Out] extends AnyVal
Value Members
- implicit macro def autoTupleConversion[P <: Product, T]: TupleConversion[P, T]
- Definition Classes
- ImplicitTupleConversion
- def autoTupleConversion1[P, A](implicit ev: TupleConversion[P, (A)]): TupleConversion[P, A]
- Definition Classes
- ImplicitTupleConversion
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object Parser
- object ParserImplementation
- object Printer
- object Regex
- object Syntax extends SyntaxCompanionVersionSpecific
- object TupleConversion