tree-sitter-dust/examples/variables.ds

13 lines
306 B
Plaintext
Raw Normal View History

2023-09-29 15:56:07 +00:00
# Dust is data-oriented, so variables are declared with minimal syntax. A
# single character, the assignment operator (`=`), sets a variable.
x = 1;
y = "hello dust!";
z = 42.0;
list = (3, 2, x);
big_list = (x, y, z, list);
map.x = "foobar";
function = '
message = "I am a function!";
output message;
';