latest pushes

This commit is contained in:
Ronaldson Bellande 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)]
pub mod Interpreter {
mod interpreter;
pub use self::interpreter::*;
}
pub mod Lexer {
mod lexer;
pub use self::lexer::*;
}
pub mod Parser {
mod parser;
pub use self::parser::*;
}
pub mod utilities;
use std::env;

View File

@ -13,6 +13,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use super::utilities::*;
use std::fs::File;
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()
}
}