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-13156main
parent
9922910d09
commit
66f09fa4c9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue