Skip to main content

sim_kernel/
pratt.rs

1//! Pratt-parser contracts: operator tables for [`shape`](crate::shape)-driven
2//! syntax.
3//!
4//! The kernel defines the operator-table, fixity, and token contracts that
5//! parameterize precedence parsing; concrete grammars and codecs that drive
6//! them live in library crates.
7
8mod object;
9#[cfg(test)]
10mod tests;
11mod types;
12
13pub use object::{PrattTableObject, pratt_table_value};
14pub use types::{Fixity, PrattOperator, PrattResult, PrattTable, Token, parse_symbol};