Chapter 10 function parsing refactor, changed lexer.rs -> _lexer.rs and parser.rs -> _parser.rs

This commit is contained in:
Moritz Gmeiner 2023-01-25 19:59:40 +01:00
commit cbe837025e
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
mod lexer; mod _lexer;
mod token; mod token;
pub use lexer::scan_tokens; pub use _lexer::scan_tokens;
pub use token::{Token, TokenType}; pub use token::{Token, TokenType};

View file

@ -1,7 +1,7 @@
mod _parser;
mod expr; mod expr;
mod parser;
mod stmt; mod stmt;
pub use _parser::parse_tokens;
pub use expr::{BinaryOp, Expr, Literal, LogicalOp, UnaryOp}; pub use expr::{BinaryOp, Expr, Literal, LogicalOp, UnaryOp};
pub use parser::parse_tokens;
pub use stmt::Stmt; pub use stmt::Stmt;