Add parser improvements (#2679)

* Add parser improvements

Previously everything starting with "$" was parsed as a column path.
With this commit applied, the lite_arg starting with $ is parsed as
the most appropriate thing
- $true/$false ==> Expression::Boolean
- $(...) ==> Invocation
- $it ==> ColumnPath
- Anything with at least one '.' ==> ColumnPath
- Anything else ==> Variable

* Ignore failing tests
This commit is contained in:
Leonhard Kipp
2020-10-19 09:03:14 +02:00
committed by GitHub
parent 2fd464bf7b
commit 400bc97e35
4 changed files with 95 additions and 39 deletions

View File

@ -172,7 +172,7 @@ pub(crate) async fn evaluate_baseline_expr(
Ok(item.value.into_value(tag))
}
Expression::Boolean(_boolean) => unimplemented!(),
Expression::Boolean(_boolean) => Ok(UntaggedValue::boolean(*_boolean).into_value(tag)),
Expression::Garbage => unimplemented!(),
}
}