You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
603 B
Plaintext
47 lines
603 B
Plaintext
4 months ago
|
Declaration Test
|
||
|
|
||
|
======
|
||
|
|
||
|
let a = 1 + 1
|
||
|
let b = a + 2
|
||
|
|
||
|
======
|
||
|
|
||
|
(file
|
||
|
(statement
|
||
|
(decl
|
||
|
(ident: "a")
|
||
|
(expr
|
||
|
(infix_expr
|
||
|
(literal
|
||
|
(integer: "1")
|
||
|
)
|
||
|
(operator: "+")
|
||
|
(expr
|
||
|
(literal
|
||
|
(integer: "1")
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(statement
|
||
|
(decl
|
||
|
(ident: "b")
|
||
|
(expr
|
||
|
(infix_expr
|
||
|
(ident: "a")
|
||
|
(operator: "+")
|
||
|
(expr
|
||
|
(literal
|
||
|
(integer: "2")
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(EOI: "")
|
||
|
)
|