mirror of
https://github.com/transistorfet/moa.git
synced 2024-12-22 12:29:51 +00:00
Moved parser to its own library
This commit is contained in:
parent
1447ca1048
commit
f298d1b341
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -634,6 +634,7 @@ name = "moa_m68k"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"moa_core",
|
||||
"moa_parsing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -663,6 +664,13 @@ dependencies = [
|
||||
"simple_logger",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "moa_parsing"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"moa_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "moa_peripherals_generic"
|
||||
version = "0.1.0"
|
||||
|
@ -10,7 +10,6 @@ mod signals;
|
||||
mod system;
|
||||
|
||||
pub mod host;
|
||||
pub mod parser;
|
||||
pub mod timers;
|
||||
|
||||
pub use log::{trace, debug, info, warn, error};
|
||||
|
@ -5,3 +5,4 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
moa_core = { path = "../../core" }
|
||||
moa_parsing = { path = "../../libraries/parsing" }
|
||||
|
@ -2,7 +2,7 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use moa_core::Error;
|
||||
use moa_core::parser::{self, AssemblyLine, AssemblyOperand, AssemblyParser};
|
||||
use moa_parsing::{self as parser, AssemblyLine, AssemblyOperand, AssemblyParser};
|
||||
|
||||
use super::state::M68kType;
|
||||
use super::instructions::Size;
|
||||
|
7
emulator/libraries/parsing/Cargo.toml
Normal file
7
emulator/libraries/parsing/Cargo.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "moa_parsing"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
moa_core = { path = "../../core" }
|
@ -2,7 +2,7 @@
|
||||
use std::str::Chars;
|
||||
use std::iter::Peekable;
|
||||
|
||||
use crate::error::Error;
|
||||
use moa_core::Error;
|
||||
|
||||
|
||||
#[derive(Debug)]
|
Loading…
Reference in New Issue
Block a user