added networking to the enviroment
This commit is contained in:
parent
cca26d9fc3
commit
f2220d1014
4 changed files with 267 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
|||
use std::{collections::HashMap, process, vec};
|
||||
use std::{any::Any, collections::HashMap, process, vec};
|
||||
use crate::{enviroment, errors::{create_error, print_error, ErrorSubType, ErrorType}, Context};
|
||||
|
||||
const ASXVERSION: [u8; 3] = [0,1,0];
|
||||
|
@ -98,6 +98,7 @@ pub struct Machine {
|
|||
pub call_stack: Vec<CallStack>,
|
||||
pub env: HashMap<String, VMMemory>,
|
||||
pub ctx: Vec<Context>,
|
||||
pub storage: Vec<Box<dyn Any>>,
|
||||
}
|
||||
|
||||
fn read_be_num(input: &[u8]) -> usize {
|
||||
|
@ -520,6 +521,7 @@ impl Machine {
|
|||
}],
|
||||
env: enviroment::generate(),
|
||||
ctx: ctx,
|
||||
storage: Vec::new(),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue