Merge branch 'bytecode' of github.com:zaphar/ucg into bytecode

This commit is contained in:
Jeremy Wall 2019-11-02 11:05:45 -05:00
commit 36e4e95738
2 changed files with 1 additions and 21 deletions

View File

@ -180,7 +180,7 @@ fn do_compile(file: &str, strict: bool, import_paths: &Vec<PathBuf>) -> bool {
if builder.out.is_none() {
eprintln!("Build results in no artifacts.");
}
return false;
return true;
}
fn visit_ucg_files(

View File

@ -441,26 +441,6 @@ fn func_expression(input: SliceIter<Token>) -> Result<SliceIter<Token>, Expressi
}
}
fn tuple_to_select<'a>(
input: SliceIter<'a, Token>,
e1: Expression,
e2: Option<Expression>,
val: Value,
) -> ConvertResult<'a, Expression> {
match val {
Value::Tuple(v) => Ok(Expression::Select(SelectDef {
val: Box::new(e1),
default: e2.map(|e| Box::new(e)),
tuple: v.val,
pos: (&input).into(),
})),
val => Err(Error::new(
format!("Expected Tuple Got {:?}", val),
Box::new(input.clone()),
)),
}
}
make_fn!(
alt_select_expression<SliceIter<Token>, Expression>,
do_each!(