rust-crafting-interpreters-.../src/parser.rs

12 lines
182 B
Rust

use crate::tokens::Token;
#[derive(Debug)]
pub struct Parser {
tokens: Vec<Token>,
}
impl Parser {
pub fn new(tokens: Vec<Token>) -> Self {
Self { tokens }
}
}