Enum moparse::SyntaxEvent
source · pub enum SyntaxEvent {
Enter(SyntaxKind),
Exit,
Advance,
}Expand description
Represents a single Modelica syntax event.
Syntax event may mark starts and ends of productions or terminals. The list of such syntax events should be consumed to build a parse tree or an AST.
Variants§
Enter(SyntaxKind)
Event indicating beginning of the Modelica production.
Exit
Event indicating an end of some Modelica production.
Advance
Event indicating a token.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SyntaxEvent
impl Send for SyntaxEvent
impl Sync for SyntaxEvent
impl Unpin for SyntaxEvent
impl UnwindSafe for SyntaxEvent
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