Skip to content

vihaco_parser (crate)

vihaco_parser

vihaco_parser

Modules

classParsesource

vihaco_parser::Parse

Rust trait. A parser whose input is `&'src str` (char stream) and whose error type is `Simple<char>`.

pub trait Parse<'src>: Sized

The lifetime `‘src` is the input lifetime. Output type `Self` is owned and does not borrow from the input.

source

methodparsersource

vihaco_parser::Parse::parser

Signature
fn parser() -> impl Parser<'src, &'src str, Self, Err<Simple<'src, char>>>

Returns

impl Parser<'src, &'src str, Self, Err<Simple<'src, char>>>

source

classSurfaceInstructionsource

vihaco_parser::SurfaceInstruction

Rust trait. Marker for enums whose pattern-derived parser represents instruction syntax.

pub trait SurfaceInstruction

`#[derive(vihaco_parser_derive::Parse)]` implements this trait for enums annotated with `#[syntax_class(instruction)]` or `#[syntax_class(instruction, head = ”…”)]`.

source