diff --git a/schala-repl/src/language.rs b/schala-repl/src/language.rs index 5a55334..2c8d099 100644 --- a/schala-repl/src/language.rs +++ b/schala-repl/src/language.rs @@ -186,6 +186,12 @@ pub trait ProgrammingLanguageInterface { } } +/* a pass_chain function signature looks like: + * fn(&mut ProgrammingLanguageInterface, A, Option<&mut DebugHandler>) -> Result + * + * TODO use some kind of failure-handling library to make this better + */ + #[macro_export] macro_rules! pass_chain { ($state:expr, $($pass:path), *) => { @@ -193,8 +199,6 @@ macro_rules! pass_chain { }; } -//generates a function resulting in (for now) the return type of the last one -//but should in the future return a FinishedComputation #[macro_export] macro_rules! pass_chain_helper { ($state:expr, $input:expr, $pass:path $(, $rest:path)*) => {