Added the env and evaluation for addition and subtraction functions

This commit is contained in:
Chris Cochrun 2024-11-06 13:24:25 -06:00
parent 7f7aae2f63
commit ba5b02074d
4 changed files with 101 additions and 26 deletions

8
src/macros.rs Normal file
View file

@ -0,0 +1,8 @@
macro_rules! insert_symbol {
// Takes the env and a symbol in &str form, then it takes a variable list,
// of arg types and then a fn to run over them.
(&env:expr, &symbol:expr) => {
// The macro will expand into the contents of this block.
println!("Hello!")
};
}