tamer: parse::prelude: New module

Not sure why I didn't add a prelude sooner, considering all the import
boilerplate.  This will evolve as needed and I'll go back and replace other
imports when I'm not in the middle of something.

DEV-13156
main
Mike Gerwitz 2022-11-02 14:56:26 -04:00
parent 9922910d09
commit 66f09fa4c9
1 changed files with 10 additions and 0 deletions

View File

@ -42,6 +42,16 @@ use std::{
fmt::{Debug, Display},
};
/// Prelude for TAME's parsing framework.
///
/// This contains the boilerplate types necessary for virtually every
/// parser.
pub mod prelude {
pub use super::{
Context, Object, ParseState, Token, Transition, TransitionResult,
};
}
/// A single datum from a streaming IR with an associated [`Span`].
///
/// A token may be a lexeme with associated data,