Skip to content

Commit

Permalink
Start of compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
Granddave committed Dec 23, 2023
1 parent ece32a3 commit 884fac8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/assembler/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ pub mod opcode;
/// Resolves symbols in the AST.
mod symbol_resolver;

// #[derive(Debug)]
// enum CompilerError {
// SymbolNotFound,
// InvalidSymbolType,
// }

/// Compiler for the 6502 CPU.
///
/// The compiler compiles the [AST] into machine code.
Expand All @@ -15,6 +21,7 @@ pub struct Compiler {
symbol_table: SymbolTable,
current_address: u16,
program_offset: u16,
// errors: Vec<CompilerError>,
}

impl Default for Compiler {
Expand Down

0 comments on commit 884fac8

Please sign in to comment.