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

13 lines
182 B
Rust
Raw Normal View History

2022-12-30 23:50:33 +01:00
use crate::tokens::Token;
#[derive(Debug)]
pub struct Parser {
tokens: Vec<Token>,
}
impl Parser {
pub fn new(tokens: Vec<Token>) -> Self {
Self { tokens }
}
}