Files

110 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

================================================================================
2021-06-11 23:32:22 +02:00
get attr
================================================================================
2021-06-11 23:32:22 +02:00
foo = bar.baz
--------------------------------------------------------------------------------
2021-06-11 23:32:22 +02:00
(config_file
(body
(attribute
(identifier)
(expression
(variable_expr
(identifier))
(get_attr
(identifier))))))
2021-06-11 23:32:22 +02:00
================================================================================
2021-06-11 23:32:22 +02:00
get index
================================================================================
2021-06-11 23:32:22 +02:00
foo = bar[1]
--------------------------------------------------------------------------------
2021-06-11 23:32:22 +02:00
(config_file
(body
(attribute
(identifier)
(expression
(variable_expr
(identifier))
(index
(new_index
(expression
(literal_value
(numeric_lit)))))))))
2021-06-11 23:32:22 +02:00
================================================================================
2021-06-11 23:32:22 +02:00
attr splat
================================================================================
2021-06-11 23:32:22 +02:00
foo = bar.*.foo
--------------------------------------------------------------------------------
2021-06-11 23:32:22 +02:00
(config_file
(body
(attribute
(identifier)
(expression
(variable_expr
(identifier))
(splat
(attr_splat
(get_attr
(identifier))))))))
2021-06-11 23:32:22 +02:00
================================================================================
2021-06-11 23:32:22 +02:00
full splat
================================================================================
2021-06-11 23:32:22 +02:00
foo = bar[*].foo
--------------------------------------------------------------------------------
2021-06-11 23:32:22 +02:00
(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
(identifier)
(expression
(variable_expr
(identifier))
(splat
(full_splat))
(splat
(full_splat
(get_attr
(identifier))
(get_attr
(identifier))
(get_attr
(identifier))
(index
(new_index
(expression
(variable_expr
(identifier)))))))))))