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

62 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-11-15 01:00:57 +00:00
================================================================================
Simple Assignment
================================================================================
x = y
--------------------------------------------------------------------------------
(root
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(identifier))))))
================================================================================
Map Item Assignment
================================================================================
x:y = 1
--------------------------------------------------------------------------------
(root
(statement
2023-11-15 01:41:57 +00:00
(index_assignment
2023-11-15 01:00:57 +00:00
(index
(expression
(identifier))
(expression
(identifier)))
(assignment_operator)
(statement
(expression
(value
(integer)))))))
================================================================================
List Item Assignment
================================================================================
x:9 = 'foobar'
--------------------------------------------------------------------------------
(root
(statement
2023-11-15 01:41:57 +00:00
(index_assignment
2023-11-15 01:00:57 +00:00
(index
(expression
(identifier))
(expression
(value
(integer))))
(assignment_operator)
(statement
(expression
(value
(string)))))))