Update parse.rs

This commit is contained in:
Shunsuke Shibayama 2022-08-20 09:24:54 +09:00
parent 18591823f1
commit eb23d9f532

View file

@ -68,11 +68,13 @@ pub enum ArrayInner {
}, },
} }
/// Perform recursive descent parsing.
///
/// To enhance error descriptions, the parsing process will continue as long as it's not fatal. /// To enhance error descriptions, the parsing process will continue as long as it's not fatal.
#[derive(Debug)] #[derive(Debug)]
pub struct Parser { pub struct Parser {
counter: DefId, counter: DefId,
level: usize, level: usize, // nest level (for debugging)
tokens: TokenStream, tokens: TokenStream,
warns: ParseErrors, warns: ParseErrors,
errs: ParseErrors, errs: ParseErrors,