latest pushes
This commit is contained in:
@ -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;
|
||||||
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user