terrified to start testing
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
use never::Never;
|
||||
use orchid_base::{Receipt, ReqHandle, Sym, sym};
|
||||
use orchid_extension::{AtomOps, AtomicFeatures};
|
||||
use orchid_extension::lexer::LexerObj;
|
||||
use orchid_extension::other_system::SystemHandle;
|
||||
use orchid_extension::parser::ParserObj;
|
||||
use orchid_extension::system::{System, SystemCard};
|
||||
use orchid_extension::system_ctor::SystemCtor;
|
||||
use orchid_extension::tree::{GenMember, merge_trivial};
|
||||
use orchid_extension::{
|
||||
AtomOps, AtomicFeatures, LexerObj, ParserObj, System, SystemCard, SystemCtor, SystemHandle,
|
||||
};
|
||||
|
||||
use crate::macros::instantiate_tpl::InstantiateTplCall;
|
||||
use crate::macros::let_line::LetLine;
|
||||
@@ -24,10 +21,11 @@ use crate::{MacTree, StdSystem};
|
||||
pub struct MacroSystem;
|
||||
impl SystemCtor for MacroSystem {
|
||||
type Deps = StdSystem;
|
||||
type Instance = Self;
|
||||
type Instance = MacroSystemInst;
|
||||
type Card = Self;
|
||||
const NAME: &'static str = "orchid::macros";
|
||||
const VERSION: f64 = 0.00_01;
|
||||
fn inst(&self, _: SystemHandle<StdSystem>) -> Self::Instance { Self }
|
||||
fn inst(&self, std: SystemHandle<StdSystem>) -> Self::Instance { MacroSystemInst { _std: std } }
|
||||
}
|
||||
impl SystemCard for MacroSystem {
|
||||
type Ctor = Self;
|
||||
@@ -43,7 +41,13 @@ impl SystemCard for MacroSystem {
|
||||
]
|
||||
}
|
||||
}
|
||||
impl System for MacroSystem {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct MacroSystemInst {
|
||||
_std: SystemHandle<StdSystem>,
|
||||
}
|
||||
impl System for MacroSystemInst {
|
||||
type Ctor = MacroSystem;
|
||||
async fn request<'a>(&self, _: Box<dyn ReqHandle<'a> + 'a>, req: Never) -> Receipt<'a> {
|
||||
match req {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user