thp/src/syntax/ast/var_binding.rs

12 lines
239 B
Rust
Raw Normal View History

use crate::lexic::token::Token;
use super::Expression;
#[derive(Debug)]
2024-06-01 23:57:10 +00:00
pub struct VariableBinding<'a> {
pub datatype: Option<&'a Token>,
pub identifier: &'a Token,
2024-03-09 17:33:11 +00:00
pub expression: Expression<'a>,
2023-12-17 01:51:12 +00:00
pub is_mutable: bool,
}