moparse 0.1.6

Modelica language parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::syntax::SyntaxKind;

#[derive(Debug)]
/// 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.
pub enum SyntaxEvent {
    /// Event indicating beginning of the Modelica production.
    Enter(SyntaxKind),
    /// Event indicating an end of some Modelica production.
    Exit,
    /// Event indicating a token.
    Advance,
}