pub struct StackMaximaParser {
pub lexer: StackMaximaLexer,
pub errors: Vec<String>,
pub collect_comments: bool,
/* private fields */
}Expand description
The actual parser, object.
Fields§
§lexer: StackMaximaLexerPublic access to the lexer so that its settings can be tuned.
errors: Vec<String>At some point errors might be shared though here.
collect_comments: boolDo we care about comments? Collect them?
Implementations§
Source§impl StackMaximaParser
impl StackMaximaParser
Sourcepub fn new_no_insertions() -> StackMaximaParser
pub fn new_no_insertions() -> StackMaximaParser
Generates a version of the parser without any insertion logic.
Sourcepub fn new_with_insert_stars() -> StackMaximaParser
pub fn new_with_insert_stars() -> StackMaximaParser
Generates a version of the parser that tries to insert missing *-chars.
Typical behaviour for student input handling.
Sourcepub fn new_with_insert_semicolons() -> StackMaximaParser
pub fn new_with_insert_semicolons() -> StackMaximaParser
Generates a version of the parser with END_TOKEN insertion. This is the typical behaviour for STACK keyval-fields.
Auto Trait Implementations§
impl Freeze for StackMaximaParser
impl RefUnwindSafe for StackMaximaParser
impl Send for StackMaximaParser
impl Sync for StackMaximaParser
impl Unpin for StackMaximaParser
impl UnwindSafe for StackMaximaParser
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