From 1a776bf469ab7b6b9c88cbb848465500be742fd8 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 13 May 2020 23:04:32 -0400 Subject: [PATCH] Support filters being call chained Previously filters were not treated the same as variable, as a result it was not possible to call the result of a filter. Since filters are treated as regular variable and therefore can be called any number of times, this change was necessary to allow them to be parsed the same way. --- grammar.ebnf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/grammar.ebnf b/grammar.ebnf index 1939e5e0..34b8897f 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -334,13 +334,8 @@ variable_filter "|" {SP}* @:filter ; filter = - name:IDENTIFIER - [arguments:filter_parameters] - ; - -filter_parameters - = - "(" @:variable_accessor_call_parameters ")" + variable:IDENTIFIER + accessors:{ variable_accessor_call }* ; comment_expression -- 2.47.3