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

118 lines
3.1 KiB
Plaintext
Raw Normal View History

2023-11-11 01:44:03 +00:00
================================================================================
2023-10-31 09:51:37 +00:00
Simple Indexes
2023-11-11 01:44:03 +00:00
================================================================================
dust_data:1:name
creature:total_clams
foobar:1:42
2023-11-11 01:44:03 +00:00
--------------------------------------------------------------------------------
(root
2023-11-11 01:44:03 +00:00
(statement
2024-02-16 15:55:15 +00:00
(statement_kind
(expression
(index
(index_expression
(index
(index_expression
(identifier))
(index_expression
(value
(integer)))))
(index_expression
(identifier))))))
2023-11-11 01:44:03 +00:00
(statement
2024-02-16 15:55:15 +00:00
(statement_kind
(expression
(index
(index_expression
(identifier))
(index_expression
(identifier))))))
2023-11-11 01:44:03 +00:00
(statement
2024-02-16 15:55:15 +00:00
(statement_kind
(expression
(index
(index_expression
(index
(index_expression
(identifier))
(index_expression
(value
(integer)))))
(index_expression
(value
(integer))))))))
2023-10-31 09:51:37 +00:00
2023-11-11 01:44:03 +00:00
================================================================================
2023-10-31 09:51:37 +00:00
Nested Indexes
2023-11-11 01:44:03 +00:00
================================================================================
2023-10-31 09:51:37 +00:00
[['answers' 'foobar'], 42, 666]:0:1:0..2
2023-11-11 01:44:03 +00:00
--------------------------------------------------------------------------------
(root
2023-11-11 01:44:03 +00:00
(statement
2024-02-16 15:55:15 +00:00
(statement_kind
(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)))))))
2023-11-14 23:56:44 +00:00
================================================================================
Function Call Index
================================================================================
x:(y()):0
2023-11-14 23:56:44 +00:00
--------------------------------------------------------------------------------
(root
(statement
2024-02-16 15:55:15 +00:00
(statement_kind
(expression
(index
(index_expression
(index
(index_expression
(identifier))
(index_expression
(function_call
(function_expression
(identifier))))))
(index_expression
(value
(integer))))))))