diff --git a/test/corpus/let.txt b/test/corpus/let.txt new file mode 100644 index 0000000..33c256e --- /dev/null +++ b/test/corpus/let.txt @@ -0,0 +1,38 @@ +=== +Variable declaration (let) +=== + +let x = "Hello world!" +let x: int = 420 + +--- + +(source_file + (statement + (var_decl + name: (identifier) + initial: (expression + (literal + (string) + ) + ) + ) + ) + (statement + (var_decl + name: (identifier) + type: (type + (type_name + (identifier + (primitive_type) + ) + ) + ) + initial: (expression + (literal + (number) + ) + ) + ) + ) +)