This commit is contained in:
bronku 2025-11-30 11:10:14 +01:00
parent cfc7aaf9a2
commit 16378e5d48
10 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,2 @@
{"x": 1, "y": 2}

View file

@ -0,0 +1,10 @@
Module
ExprStmt
Dict
KeyValue
String("x")
Number(1)
KeyValue
String("y")
Number(2)

View file

@ -0,0 +1,2 @@
(lambda a, b: a + b)(3, 4)

View file

@ -0,0 +1,12 @@
Module
ExprStmt
Call
Lambda
Param(a)
Param(b)
BinOp(+)
Identifier(a)
Identifier(b)
Number(3)
Number(4)

View file

@ -0,0 +1,2 @@
{x for x in items}

View file

@ -0,0 +1,7 @@
Module
ExprStmt
SetComp
Identifier(x)
For(x)
Identifier(items)

View file

@ -0,0 +1,2 @@
(x for x in items)

View file

@ -0,0 +1,7 @@
Module
ExprStmt
Generator
Identifier(x)
For(x)
Identifier(items)

View file

@ -0,0 +1,2 @@
[ x*x for x in items if x > 0 ]

View file

@ -0,0 +1,13 @@
Module
ExprStmt
ListComp
BinOp(*)
Identifier(x)
Identifier(x)
For(x)
Identifier(items)
If
Compare(>)
Identifier(x)
Number(0)