1
0
dust/tree-sitter-dust/corpus/maps.txt
2023-11-03 21:16:55 -04:00

94 lines
3.1 KiB
Plaintext

================================================================================
Simple Map
================================================================================
map { answer = 42 }
--------------------------------------------------------------------------------
(root
(block
(statement
(expression
(value
(map
(block
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(integer)))))))))))))
================================================================================
Nested Maps
================================================================================
x = map {
y = map {
foo = 'bar'
z = map {
message = 'hiya'
}
}
f = 12
}
--------------------------------------------------------------------------------
(root
(block
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(map
(block
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(map
(block
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(string))))))
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(map
(block
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(string))))))))))))))))))))
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(integer)))))))))))))))