use crsn::asm::error::CrsnError; use crsn::asm::instr::op::OpKind; use crsn::asm::parse::arg_parser::TokenParser; use crsn::module::{CrsnExtension, ParseRes}; use crsn::sexp::SourcePosition; mod defs; mod parse; mod exec; #[derive(Debug, Clone)] pub struct ArithOps; impl ArithOps { pub fn new() -> Box { Box::new(Self) } } impl CrsnExtension for ArithOps { fn name(&self) -> &'static str { "arith" } fn parse_op<'a>(&self, pos: &SourcePosition, keyword: &str, args: TokenParser<'a>) -> Result, CrsnError> { parse::parse(pos, keyword, args) } }