latest pushes

This commit is contained in:
2024-09-25 00:29:07 -04:00
parent 6d8bab08b1
commit 12ed1a3eec
2 changed files with 1 additions and 11 deletions

View File

@ -16,17 +16,14 @@
#[allow(dead_code)] #[allow(dead_code)]
pub mod Interpreter { pub mod Interpreter {
mod interpreter; mod interpreter;
pub use self::interpreter::*;
} }
pub mod Lexer { pub mod Lexer {
mod lexer; mod lexer;
pub use self::lexer::*;
} }
pub mod Parser { pub mod Parser {
mod parser; mod parser;
pub use self::parser::*;
} }
pub mod utilities; pub mod utilities;
use std::env; use std::env;

View File

@ -13,6 +13,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::utilities::*;
use std::fs::File; use std::fs::File;
use std::io::{self, BufRead, Write}; use std::io::{self, BufRead, Write};
@ -145,11 +146,3 @@ fn run_interactive_mode(interpreter: &mut Interpreter) -> Result<(), String> {
} }
} }
} }
impl Iterator for Lexer {
type Item = Token;
fn next(&mut self) -> Option<Self::Item> {
self.next_token()
}
}