Skip to main content

Crate rustine

Crate rustine 

Source
Expand description

Rustine — high-performance Gel syntax parser with PyO3 bridge A Rust rewrite of the Python Gelatin library.

Re-exports§

pub use errors::Diagnostic;
pub use errors::GelError;
pub use errors::Result;
pub use errors::Severity;
pub use errors::Span;
pub use exec::streaming::StreamingEvent;
pub use exec::streaming::StreamingRunner;
pub use exec::execute_precompiled;
pub use exec::serialize_execution;
pub use exec::serialize_tree;
pub use exec::serialize_tree_to_writer;
pub use exec::RuntimeFormat;
pub use parser::OutputFormat;
pub use parser::Parser;

Modules§

bridge
errors
exec
Execution engine: runs a parsed GelDocument against an input string.
parser
Parser module: public API and re-exports.
stream

Functions§

execute_and_serialize
Execute a grammar from an already-parsed GelDocument against input and serialize the data tree in the chosen RuntimeFormat.
parse_and_run
Convenience helper for tests and external callers to parse source and run a grammar against input.