87 lines
1.3 KiB
Plaintext
87 lines
1.3 KiB
Plaintext
==================
|
|
get attr
|
|
==================
|
|
|
|
foo = bar.baz
|
|
|
|
---
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(expr_term
|
|
(expr_term
|
|
(variable_expr
|
|
(identifier)))
|
|
(get_attr
|
|
(identifier)))))))
|
|
|
|
==================
|
|
get index
|
|
==================
|
|
|
|
foo = bar[1]
|
|
|
|
---
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(expr_term
|
|
(expr_term
|
|
(variable_expr
|
|
(identifier)))
|
|
(index
|
|
(expression
|
|
(expr_term
|
|
(literal_value
|
|
(numeric_lit))))))))))
|
|
|
|
==================
|
|
attr splat
|
|
==================
|
|
|
|
foo = bar.*.foo
|
|
|
|
---
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(expr_term
|
|
(expr_term
|
|
(variable_expr
|
|
(identifier)))
|
|
(splat
|
|
(attr_splat
|
|
(get_attr
|
|
(identifier)))))))))
|
|
|
|
==================
|
|
full splat
|
|
==================
|
|
|
|
foo = bar[*].foo
|
|
|
|
---
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(expr_term
|
|
(expr_term
|
|
(variable_expr
|
|
(identifier)))
|
|
(splat
|
|
(full_splat
|
|
(get_attr
|
|
(identifier)))))))))
|