1 2 3 4 5 6 7 8 9 10 11
use crate::LexerContext; // use nyar_hir::{ASTKind, ASTNode}; impl LexerContext { // pub(crate) fn new_number(handler: &str, data: &str) -> ASTKind { // ASTKind::NumberLiteral { handler: String::from(handler), data: String::from(data) } // } // pub(crate) fn new_string(handler: &str, data: &str) -> ASTNode { // ASTKind::StringLiteral { handler: String::from(handler), data: String::from(data) } // } }