1
0
dust/tree-sitter-dust/corpus/index.txt

113 lines
2.9 KiB
Plaintext

================================================================================
Simple Indexes
================================================================================
dust_data:1:name
creature:total_clams
foobar:1:42
--------------------------------------------------------------------------------
(root
(statement
(expression
(index
(index_expression
(index
(index_expression
(identifier))
(index_expression
(value
(integer)))))
(index_expression
(identifier)))))
(statement
(expression
(index
(index_expression
(identifier))
(index_expression
(identifier)))))
(statement
(expression
(index
(index_expression
(index
(index_expression
(identifier))
(index_expression
(value
(integer)))))
(index_expression
(value
(integer)))))))
================================================================================
Nested Indexes
================================================================================
[['answers' 'foobar'], 42, 666]:0:1:0..2
--------------------------------------------------------------------------------
(root
(statement
(expression
(index
(index_expression
(index
(index_expression
(index
(index_expression
(value
(list
(expression
(value
(list
(expression
(value
(string)))
(expression
(value
(string))))))
(expression
(value
(integer)))
(expression
(value
(integer))))))
(index_expression
(value
(integer)))))
(index_expression
(value
(integer)))))
(index_expression
(range))))))
================================================================================
Function Call Index
================================================================================
x:(y()):0
--------------------------------------------------------------------------------
(root
(statement
(expression
(index
(index_expression
(index
(index_expression
(identifier))
(index_expression
(function_call
(function_expression
(identifier))))))
(index_expression
(value
(integer)))))))