changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/sxp/src/macs.rs

changeset 698: 96958d3eb5b0
parent: a962648ad6d5
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 //! macs.rs --- SEXP Macro support
2 use crate::form::Form;
3 use std::collections::HashMap;
4 pub type Macro = dyn FnMut(&mut Form);
5 pub type MacroObject = Box<Macro>;
6 pub type ReadTable = HashMap<char, Box<Macro>>; // could use indexmap here..
7 pub type WriteTable = Vec<(bool, Box<Macro>)>;