mirascript-core 0.1.105

Compiler and bytecode definitions for the MiraScript language
Documentation
1
2
3
4
5
use crate::{Keyword, parser::Expression};

pub(super) fn is_global_expression(expr: &Expression) -> bool {
    matches!(expr, Expression::Variable(token) if token.kind == Keyword::Global)
}