pub struct Parser {
pub max_nesting: usize,
/* private fields */
}Fields§
§max_nesting: usizeImplementations§
Source§impl Parser
impl Parser
pub fn new(tokens: Vec<Token>, file_name: &Path) -> Self
pub fn parse(&mut self) -> Result<ScriptFile, SyntaxError>
Sourcepub fn parse_recovering(&mut self) -> (ScriptFile, Vec<SyntaxError>)
pub fn parse_recovering(&mut self) -> (ScriptFile, Vec<SyntaxError>)
Keep valid declarations after an error, so one incomplete proc does not hide diagnostics and symbols in the rest of an editor document.
Auto Trait Implementations§
impl Forget for Parser
impl Freeze for Parser
impl Move for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnsafeUnpin for Parser
impl UnwindSafe for Parser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more