tree-sitter-dust/corpus/maps.txt
2023-10-06 16:19:17 -04:00

57 lines
695 B
Plaintext

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