package ast
- Source
- package.scala
- Alphabetic
- By Inheritance
- ast
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- def parse[F[_], T, Json](implicit F: RaiseThrowable[F], T: CharLikeChunks[F, T], builder: Builder[Json]): Pipe[F, T, Json]
Parses a stream of characters into a stream of Json values.
- def tokenize[F[_], Json](implicit tokenizer: Tokenizer[Json]): Pipe[F, Json, Token]
Transforms a stream of Json values into a stream of Json tokens.
Transforms a stream of Json values into a stream of Json tokens.
This operation is the opposite of
values
. - def transform[F[_], Json](selector: Selector, f: (Json) => Json)(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]
Transforms a stream of token into another one.
Transforms a stream of token into another one. The transformation function
f
is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged.This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.
- def transformF[F[_], Json](selector: Selector, f: (Json) => F[Json])(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]
Transforms a stream of token into another one.
Transforms a stream of token into another one. The transformation function
f
is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged. The operation can fail, in case the returnedF
is failed at one step.This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.
- def transformOpt[F[_], Json](selector: Selector, f: (Json) => Option[Json])(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]
Transforms a stream of token into another one.
Transforms a stream of token into another one. The transformation function
f
is called on every selected value from upstream, and the resulting value replaces it. If the function returnsNone
, then the entire value is dropped (and the object key it is located at, if any). The rest of the stream is left unchanged.This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.
- def transformOptF[F[_], Json](selector: Selector, f: (Json) => F[Option[Json]])(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]
Transforms a stream of token into another one.
Transforms a stream of token into another one. The transformation function
f
is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged. The operation can fail, in case the returnedF
is failed at one step.This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.
- def values[F[_], Json](implicit F: RaiseThrowable[F], builder: Builder[Json]): Pipe[F, Token, Json]
Transforms a stream of Json tokens into a stream of json values.
- object Tokenizer