mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
Update parse.rs
This commit is contained in:
parent
18591823f1
commit
eb23d9f532
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue