1
0
dust/tree-sitter-dust/corpus/index.txt
2023-11-14 18:56:44 -05:00

115 lines
2.8 KiB
Plaintext

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