Minor syntax changes
This commit is contained in:
parent
3a181dd0ac
commit
06638dc030
@ -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)
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
@ -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)* }
|
||||
|
Loading…
Reference in New Issue
Block a user