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

58 lines
707 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)
(expression
(value
(map
(identifier)
(value
(integer))))))))))
==================
Map Access
==================
x.answer
---
(root
(item
(statement
(expression
(identifier)))))