Added the env and evaluation for addition and subtraction functions
This commit is contained in:
parent
7f7aae2f63
commit
ba5b02074d
4 changed files with 101 additions and 26 deletions
8
src/macros.rs
Normal file
8
src/macros.rs
Normal 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!")
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue