tree-sitter-dust/corpus/tables.txt

62 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-09-29 18:32:18 +00:00
==================
2023-09-29 20:34:20 +00:00
Table Declaration
2023-09-29 18:32:18 +00:00
==================
table <text, number> {
2023-09-29 20:34:20 +00:00
['answer', 42]
2023-09-29 18:32:18 +00:00
}
---
(root
(item
(statement
(open_statement
(expression
(value
(table
(identifier)
(identifier)
(list
(value
(string))
(value
(integer))))))))))
2023-09-29 20:34:20 +00:00
==================
Table Assignment
==================
foobar = table <text, number> {
['answer', 42]
}
foobar
---
(root
(item
(statement
(open_statement
(expression
(operation
(expression
(identifier))
(operator)
(expression
(value
(table
(identifier)
(identifier)
(list
(value
(string))
(value
(integer)))))))))))
(item
(statement
(open_statement
(expression
(identifier))))))