diff options
2 files changed, 3 insertions, 7 deletions
| -rw-r--r-- | assembler/src/parser/instruction.rs | 4 | ||||
| -rw-r--r-- | assembler/src/parser/mod.rs | 6 |
diff --git a/assembler/src/parser/instruction.rs b/assembler/src/parser/instruction.rs index 2d6b9ec..3c9af0d 100644 --- a/assembler/src/parser/instruction.rs +++ b/assembler/src/parser/instruction.rs @@ -1,4 +1,4 @@ -use super::{ Instruction, Address, Word }; +use super::{ Instruction, Address }; static Z: Address = Address::Memory(0); static E: Address = Address::Memory(1); @@ -11,8 +11,6 @@ pub(crate) enum ArgumentError { TooMany, TooFew, NotLocation, - NotNumber, - NotString, } impl Instruction { diff --git a/assembler/src/parser/mod.rs b/assembler/src/parser/mod.rs index f22fc36..0138243 100644 --- a/assembler/src/parser/mod.rs +++ b/assembler/src/parser/mod.rs @@ -1,12 +1,10 @@ +#![allow(dead_code)] mod code_gen; mod syntax; mod semantic; mod instruction; -use std::{ - collections::HashMap, - fmt::{ Display, Formatter, Result }, -}; +use std::collections::HashMap; use crate::Word; #[derive(Debug, Default)] |
