add precedence to splat operators; test for associativity

This commit is contained in:
mhoffm
2021-06-18 07:29:00 +02:00
parent b793cd7c37
commit 9b79cbda48
5 changed files with 6585 additions and 6476 deletions

View File

@@ -52,9 +52,9 @@ foo = bar.*.foo
(variable_expr
(identifier))
(splat
(attr_splat))
(get_attr
(identifier))))))
(attr_splat
(get_attr
(identifier))))))))
================================================================================
full splat
@@ -64,6 +64,26 @@ foo = bar[*].foo
--------------------------------------------------------------------------------
(config_file
(body
(attribute
(identifier)
(expression
(variable_expr
(identifier))
(splat
(full_splat
(get_attr
(identifier))))))))
================================================================================
full splat repeated
================================================================================
foo = bar[*][*].a.b.c[d]
--------------------------------------------------------------------------------
(config_file
(body
(attribute
@@ -73,5 +93,15 @@ foo = bar[*].foo
(identifier))
(splat
(full_splat))
(get_attr
(identifier))))))
(splat
(full_splat
(get_attr
(identifier))
(get_attr
(identifier))
(get_attr
(identifier))
(index
(expression
(variable_expr
(identifier))))))))))