latest pushes
This commit is contained in:
parent
6d8bab08b1
commit
12ed1a3eec
@ -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;
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user