2024-03-10 02:34:05 +00:00
|
|
|
use crate::lexic::token::Token;
|
|
|
|
|
2023-10-05 11:51:48 +00:00
|
|
|
use super::Expression;
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
2024-06-01 23:57:10 +00:00
|
|
|
pub struct VariableBinding<'a> {
|
2024-03-10 02:34:05 +00:00
|
|
|
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,
|
2023-10-05 11:51:48 +00:00
|
|
|
}
|