34 lines
690 B
Text
34 lines
690 B
Text
// @concrete:
|
|
// | File
|
|
// | LetStatement
|
|
// | Let:'"let"'
|
|
// | Identifier:'"x"'
|
|
// | Equal:'"="'
|
|
// | LiteralExpression
|
|
// | Number:'"23"'
|
|
// | Semicolon:'";"'
|
|
// | LetStatement
|
|
// | Let:'"let"'
|
|
// | Identifier:'"y"'
|
|
// | Equal:'"="'
|
|
// | BinaryExpression
|
|
// | Identifier
|
|
// | Identifier:'"x"'
|
|
// | Star:'"*"'
|
|
// | LiteralExpression
|
|
// | Number:'"2"'
|
|
// | Semicolon:'";"'
|
|
// | PrintStatement
|
|
// | Print:'"print"'
|
|
// | LeftParen:'"("'
|
|
// | Identifier
|
|
// | Identifier:'"y"'
|
|
// | RightParen:'")"'
|
|
// | Semicolon:'";"'
|
|
// |
|
|
|
|
let x = 23;
|
|
let y = x * 2;
|
|
print(y);
|
|
|
|
// @type: 667 f64
|