Allow trailing comma in function call grammar

This commit is contained in:
Brandon Dyck 2023-07-02 12:05:39 -06:00
parent aca4f669ad
commit 6f742ec577

View File

@ -36,5 +36,5 @@ identifier -> IDENTIFIER | "@" STRING ;
operand -> ( NUMBER | STRING | identifier | "(" expression ")" | record | variant | list) ; operand -> ( NUMBER | STRING | identifier | "(" expression ")" | record | variant | list) ;
selector -> "." identifier ; selector -> "." identifier ;
index -> "[" expression "]" ; index -> "[" expression "]" ;
arguments -> "(" ( "_" | expression ( "," ( "_" | expression ) )* )? ")" ; call -> "(" ( ( "_" | expression ) ( "," ( "_" | expression ) )* ","? )? ")" ;
primary -> operand ( selector | index | arguments ) ; primary -> operand ( selector | index | call ) ;