sqparse/
flavor.rs

1/// A flavor of Squirrel to parse.
2///
3/// This allows the lexer and parser to adapt to incompatibilities in the variants.
4///
5/// For example, Respawn's Squirrel variant adds some tokens which would be valid identifiers in
6/// Squirrel 3.
7///
8/// In general however, if the addition of a construct in one variant does not make valid code in
9/// another variant unparsable, it will not be gated by the flavor.
10#[derive(Debug, Clone, Copy, PartialEq, Eq)]
11pub enum Flavor {
12    /// Parse tokens in Respawn's Squirrel variant.
13    SquirrelRespawn,
14
15    /// Parse tokens in Squirrel 3.
16    Squirrel3,
17}