mirror of
https://github.com/LucasVbr/croissant.git
synced 2026-05-13 17:12:10 +00:00
feat: support variable declaration statement
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// Déclaration d'une variable de type entier
|
||||
var a: entier = 4 + 2 + 3 * 1;
|
||||
|
||||
/*
|
||||
SourceFile([
|
||||
VariableStatement([
|
||||
VariableDeclaration(
|
||||
Type_Integer,
|
||||
Identifier("a"),
|
||||
BinaryExpression(
|
||||
Add,
|
||||
BinaryExpression(
|
||||
Add,
|
||||
Literal(Integer(4)
|
||||
),
|
||||
Literal(Integer(2))
|
||||
),
|
||||
BinaryExpression(
|
||||
Multiply,
|
||||
Literal(Integer(3)),
|
||||
Literal(Integer(1))
|
||||
))
|
||||
)]
|
||||
)]
|
||||
)
|
||||
*/
|
||||
Reference in New Issue
Block a user