(Block (FunctionDef (Var "main") (args) (Block (Declare (Var "list") nil (List (Int "10") (Int "20") (Int "30"))) (Declare (Var "table") nil (Table (TableEntry (Text "one") (Int "1")) (TableEntry (Text "two") (Int "2")))) (Declare (Var "empty") (ListType (VarType "Int")) nil) (DebugLog (Index (Var "list") (Int "1"))) (DebugLog (Index (Var "list") (Int "-1"))) (DebugLog (Index (Var "table") (Text "one"))) (DebugLog (List (Comprehension (Multiply (Var "x") (Int "10")) (vars (Var "x")) (iters (Var "list")) ))) (DebugLog (List (Comprehension (Var "x") (vars (Var "x")) (iters (Var "list")) :filter (NotEquals (Var "x") (Int "20"))))) (DebugLog (Table (Comprehension (TableEntry (Var "x") (Multiply (Int "10") (Var "x"))) (vars (Var "x")) (iters (Int "5")) ))))))
|