Crate pomsky_syntax

Source
Expand description

§pomsky-syntax

Crate for parsing pomsky expressions.

§Usage

let (result, warnings) = pomsky_syntax::parse("let x = 'test'; x*", 256);
assert!(result.is_some());
assert!(warnings.is_empty());

Modules§

diagnose
exprs
Module containing the AST (abstract syntax tree) types for expressions

Structs§

Span
A source code location, marked by the start and end byte offset. If both are zero, this is considered as “empty” or “missing”, and Span::range returns None.

Functions§

parse
Parses a source string as a pomsky expression.