syn_grammar/lib.rs
1#![doc = include_str!("../README.md")]
2
3// src/lib.rs
4
5// 1. Export runtime modules
6// The code generated by the macro refers to `syn_grammar::rt`.
7// Therefore, this module must be publicly available.
8#[doc(hidden)]
9pub mod rt;
10
11/// Utilities for testing parsers.
12pub mod testing;
13
14// 3. Re-export the macro
15// This allows the user to write: `use syn_grammar::grammar;`
16pub use syn_grammar_macros::grammar;
17
18#[doc(hidden)]
19pub use syn_grammar_macros::include_grammar;