From 06638dc030ed3ecd6a4490b220a8420d8108d91e Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 29 Apr 2018 22:14:00 -0700 Subject: [PATCH] Minor syntax changes --- schala-lang/src/lib.rs | 4 +++- schala-repl/src/language.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/schala-lang/src/lib.rs b/schala-lang/src/lib.rs index 7f19032..b994304 100644 --- a/schala-lang/src/lib.rs +++ b/schala-lang/src/lib.rs @@ -105,7 +105,7 @@ impl ProgrammingLanguageInterface for Schala { fn execute_pipeline(&mut self, input: &str, options: &EvalOptions) -> FinishedComputation { //let chain = pass_chain![tokenizing::tokenize, parsing::parse]; - let mut chain = pass_chain![self, + let mut chain = pass_chain![self; tokenizing_stage, parsing_stage, symbol_table_stage, @@ -115,6 +115,7 @@ impl ProgrammingLanguageInterface for Schala { chain(input) } + /* fn execute(&mut self, input: &str, options: &EvalOptions) -> FinishedComputation { schala_codegen::print_a_thing!(); @@ -187,4 +188,5 @@ impl ProgrammingLanguageInterface for Schala { .map(|v| { v.into_iter().intersperse(format!("\n")).collect() }); evaluation.output(eval_output) } + */ } diff --git a/schala-repl/src/language.rs b/schala-repl/src/language.rs index 00fc18c..956bd4b 100644 --- a/schala-repl/src/language.rs +++ b/schala-repl/src/language.rs @@ -194,7 +194,7 @@ pub trait ProgrammingLanguageInterface { #[macro_export] macro_rules! pass_chain { - ($state:expr, $($pass:path), *) => { + ($state:expr; $($pass:path), *) => { |text_input| { let mut comp = UnfinishedComputation::default(); pass_chain_helper! { $state, comp; text_input $(, $pass)* }