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).unwrap();
assert!(warnings.is_empty());
Modules
Module containing all the errors that can occur during parsing
Module containing the AST (abstract syntax tree) types for expressions
Provides warnings that are shown to the user (in addition to the output)
Structs
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
Parses a source string as a pomsky expression.