ocelot-ast 0.1.2

Abstract syntax tree types for the ocelot project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Identifier expression payload.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct IdentifierExpression {
    pub name: String,
}

impl IdentifierExpression {
    /// Creates an identifier expression payload.
    pub fn new(name: impl Into<String>) -> Self {
        Self { name: name.into() }
    }
}