// this_file: src/parser/state.rs
//! Parser state management for better error reporting and parsing control.
usecrate::error::Span;/// Parser state tracking for better error reporting and debugging.
#[derive(Debug, Clone, Default)]pubstructParserState{/// Current position in the input stream
pubposition:usize,
/// Current parsing depth (for nested structures)
pubdepth:usize,
/// The span of the current token
pubspan: Span,
}implParserState{/// Creates a new parser state.
pubfnnew()->Self{ParserState::default()}}