mirror of
https://github.com/LucasVbr/croissant.git
synced 2026-07-09 15:07:48 +00:00
Feat: Add Character, String and float literals
This commit is contained in:
+1
-33
@@ -1,33 +1 @@
|
||||
1 + 1;
|
||||
4 * 0;
|
||||
|
||||
/*
|
||||
|
||||
Root(
|
||||
SequenceStatement(
|
||||
ExpressionStatement(
|
||||
BinaryExpression(
|
||||
Add,
|
||||
Literal(
|
||||
Integer(1)
|
||||
),
|
||||
Literal(
|
||||
Integer(1)
|
||||
)
|
||||
)
|
||||
),
|
||||
ExpressionStatement(
|
||||
BinaryExpression(
|
||||
Multiply,
|
||||
Literal(
|
||||
Integer(4)
|
||||
),
|
||||
Literal(
|
||||
Integer(0)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
*/
|
||||
'a';
|
||||
Reference in New Issue
Block a user