tree-sitter-dust/corpus/maps.txt
2023-10-01 06:09:29 -04:00

59 lines
765 B
Plaintext

==================
Simple Map
==================
map {
answer = 42
}
---
(root
(item
(statement
(expression
(value
(map
(identifier)
(value
(integer))))))))
==================
Map Assignment
==================
x = map {
answer = 42
}
---
(root
(item
(statement
(expression
(assignment
(identifier)
(statement
(expression
(value
(map
(identifier)
(value
(integer)))))))))))
==================
Map Access
==================
x.answer
---
(root
(item
(statement
(expression
(identifier)))))