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
- Module containing the AST (abstract syntax tree) types for expressions
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
returnsNone
.
Functions
- Parses a source string as a pomsky expression.