Add deep access
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
4f770c1f24
commit
ffd9baf90f
9 changed files with 669 additions and 5 deletions
|
|
@ -715,10 +715,10 @@ fn parse_expression<'input>(
|
|||
Left MathOperation GreaterOrEqual => 15,
|
||||
Left MathOperation Lesser => 15,
|
||||
Left MathOperation LesserOrEqual => 15,
|
||||
Left AccessOperation Dot => 23,
|
||||
Left AccessOperation Dot => 22,
|
||||
]
|
||||
}).postfix(dispatch! { surrounded(ws, parse_operator);
|
||||
TokenOperator::QuestionMark => Postfix(22, |input, rhs| {
|
||||
TokenOperator::QuestionMark => Postfix(23, |input, rhs| {
|
||||
match rhs {
|
||||
TemplateAstExpr::VariableAccess(access) => Ok(TemplateAstExpr::ConditionalAccess(access)),
|
||||
_ => Err(AstError::from_input(input)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue