zio.parser
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object TupleConversion
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.
Type parameters
- Err
-
Custom error type
- In
-
Element type of the input stream of parsing
- Result
-
The type of the parsed result value
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object Endclass Fail[Err]class Failed[Err]object Indexclass ParseRegex[Err]class ParseRegexLastChar[Err]class SkipRegex[Err]class Succeed[Result]Show all
- Self type
-
The available parser implementations
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ParserImplementation.type
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
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.
Type parameters
- Err
-
Custom error type
- Out
-
Element type of the output stream of printing
- Value
-
The type of the value to be printed
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class Fail[Err]class Failed[Err]class ParseRegex[Err]class ParseRegexLastChar[Err]class SkipRegexclass SucceedShow all
- Self type
-
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
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.
Type parameters
- 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
Attributes
- Companion
- object
- Supertypes
- Self type
-
Attributes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Syntax
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Attributes
- Companion
- trait
- Supertypes
- Self type
-
TupleConversion.type
Attributes
- Supertypes
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Endclass Fail[Err]class Failed[Err]object Indexclass ParseRegex[Err]class ParseRegexLastChar[Err]class SkipRegex[Err]class Succeed[Result]Show all
- Self type
-
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Fail[Err]class Failed[Err]class ParseRegex[Err]class ParseRegexLastChar[Err]class SkipRegexclass SucceedShow all
- Self type
-
Givens
Inherited givens
Attributes
- Inherited from:
- ImplicitTupleConversion
Attributes
- Inherited from:
- ImplicitTupleConversion