tree-sitter-dust/corpus/maps.txt

59 lines
765 B
Plaintext
Raw Normal View History

2023-09-29 19:25:10 +00:00
==================
2023-10-01 05:13:29 +00:00
Simple Map
2023-09-29 19:25:10 +00:00
==================
map {
answer = 42
}
---
(root
(item
(statement
2023-10-01 05:13:29 +00:00
(expression
(value
(map
(identifier)
(value
(integer))))))))
2023-09-29 19:25:10 +00:00
==================
Map Assignment
==================
x = map {
answer = 42
}
---
(root
(item
(statement
2023-10-01 05:13:29 +00:00
(expression
(assignment
2023-10-01 10:09:29 +00:00
(identifier)
(statement
(expression
2023-10-01 05:13:29 +00:00
(value
2023-10-01 10:09:29 +00:00
(map
(identifier)
(value
(integer)))))))))))
2023-09-29 19:25:10 +00:00
==================
Map Access
==================
x.answer
---
(root
2023-10-01 05:13:29 +00:00
(item
(statement
2023-09-29 19:25:10 +00:00
(expression
2023-10-01 05:13:29 +00:00
(identifier)))))