Struct kailua_syntax::Parser
[−]
[src]
pub struct Parser<'a> { /* fields omitted */ }
The parser.
Methods
impl<'a> Parser<'a>
[src]
fn new(
iter: &'a mut Iterator<Item = NestedToken>,
report: &'a Report
) -> Parser<'a>
iter: &'a mut Iterator<Item = NestedToken>,
report: &'a Report
) -> Parser<'a>
Creates a new nesting analyzer with given stream of spanned tokens with nesting informations and the report receiver.
fn into_chunk(self) -> Result<Chunk>
Parses the entire file and returns a chunk (while generating reports).
Most parsing errors can be recovered, so the caller should also determine if
it can continue in spite of reported errors.
kailua_diag::report::TrackMaxKind
is useful for this.