(CommandList children: [ (C {(source)} { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Number '$0')})]) left_token: <Left_CommandSub '$('> spids: [6 10] ) (/reader.sh) } ) (C {(source)} { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Number '$0')})]) left_token: <Left_CommandSub '$('> spids: [15 19] ) (/printer.sh) } ) (C {(source)} { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Number '$0')})]) left_token: <Left_CommandSub '$('> spids: [24 28] ) (/env.sh) } ) (C {(source)} { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Number '$0')})]) left_token: <Left_CommandSub '$('> spids: [33 37] ) (/core.sh) } ) (FuncDef name: READ body: (BraceGroup children: [ (AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {(Lit_Other '[')} {(DQ (${ VSub_Number 1))} {(Lit_Other ']')}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Number 1))} spids: [64] ) ] spids: [64] ) (C {(READLINE)}) ] ) (C {(READ_STR)} {(DQ (${ VSub_Name r))}) ] spids: [49] ) spids: [44 48] ) (FuncDef name: IS_PAIR body: (BraceGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(_sequential) (Lit_Other '?')} {(DQ (${ VSub_Number 1))}) terminator: <Op_Semi ';'> ) ] action: [ (C {(_count)} {(DQ (${ VSub_Number 1))}) (AndOr ops: [Op_DAmp] children: [ (DBracket expr: (BoolBinary op_id:Redir_Great left:{(DQ (${ VSub_Name r))} right:{(0)}) ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] ) ] spids: [16777215 110] ) ] spids: [16777215 143] ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] spids: [95] ) spids: [90 94] ) (FuncDef name: QUASIQUOTE body: (BraceGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [(C {(IS_PAIR)} {(DQ (${ VSub_Number 1))})] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_symbol)} {(quote)}) (C {(_list)} {(DQ (${ VSub_Name r))} {(DQ (${ VSub_Number 1))}) (ControlFlow token:<ControlFlow_Return return>) ] spids: [16777215 174] ) ] else_action: [ (Sentence child: (C {(_nth)} {(DQ (${ VSub_Number 1))} {(0)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a0) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [216] ) ] spids: [214] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name a0))}) ) spids: [229 238] ) ) } right: {(DQ (unquote))} ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_nth)} {(DQ (${ VSub_Number 1))} {(1)}) (ControlFlow token:<ControlFlow_Return return>) ] spids: [16777215 250] ) (if_arm cond: [ (Sentence child: (C {(IS_PAIR)} {(DQ (${ VSub_Name a0))}) terminator: <Op_Semi ';'> ) ] action: [ (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name a0))} {(0)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a00) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [294] ) ] spids: [292] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name a00))}) ) spids: [307 316] ) ) } right: {(DQ (splice-unquote))} ) ) terminator: <Op_Semi ';'> ) ] action: [ (Sentence child: (C {(_symbol)} {(concat)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [338] ) ] spids: [336] ) (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name a0))} {(1)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:b) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [359] ) ] spids: [357] ) (C {(_rest)} {(DQ (${ VSub_Number 1))}) (Sentence child: (C {(QUASIQUOTE)} {(DQ (${ VSub_Name r))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:c) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [387] ) ] spids: [385] ) (C {(_list)} {(DQ (${ VSub_Name a))} {(DQ (${ VSub_Name b))} {(DQ (${ VSub_Name c))} ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [16777215 328] ) ] spids: [16777215 419] ) ] spids: [267 278] ) ] spids: [16777215 422] ) ] spids: [200 425] ) (Sentence child:(C {(_symbol)} {(cons)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [435] ) ] spids: [433] ) (Sentence child: (C {(QUASIQUOTE)} {(DQ (${ VSub_Name a0))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:b) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [454] ) ] spids: [452] ) (C {(_rest)} {(DQ (${ VSub_Number 1))}) (Sentence child: (C {(QUASIQUOTE)} {(DQ (${ VSub_Name r))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:c) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [482] ) ] spids: [480] ) (C {(_list)} {(DQ (${ VSub_Name a))} {(DQ (${ VSub_Name b))} {(DQ (${ VSub_Name c))}) (ControlFlow token:<ControlFlow_Return return>) ] spids: [158] ) spids: [153 157] ) (FuncDef name: IS_MACRO_CALL body: (BraceGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [(C {(_list) (Lit_Other '?')} {(DQ (${ VSub_Number 1))})] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (Sentence child: (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) terminator: <Op_Semi ';'> ) ] spids: [16777215 538] ) ] spids: [16777215 545] ) (Sentence child: (C {(_nth)} {(DQ (${ VSub_Number 1))} {(0)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a0) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [561] ) ] spids: [559] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(_symbol) (Lit_Other '?')} {(DQ (${ VSub_Name a0))}) terminator: <Op_Semi ';'> ) ] action: [ (C {(ENV_FIND)} {(DQ (${ VSub_Number 2))} {(DQ (${ VSub_Name a0))}) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr:(WordTest w:{(DQ (${ VSub_Name r))})) terminator: <Op_Semi ';'> ) ] action: [ (C {(ENV_GET)} {(DQ (${ VSub_Number 2))} {(DQ (${ VSub_Name a0))}) (C {(Lit_Other '[')} { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name r) (_ismacro_))}) ) spids: [633 643] ) ) } {(Lit_Other ']')} ) (ControlFlow token: <ControlFlow_Return return> arg_word: {($ VSub_QMark '$?')} ) ] spids: [16777215 612] ) ] spids: [16777215 654] ) ] spids: [16777215 581] ) ] spids: [16777215 657] ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] spids: [521] ) spids: [516 520] ) (FuncDef name: MACROEXPAND body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Number 1))} spids: [677] ) (assign_pair lhs: (LhsName name:env) op: Equal rhs: {(DQ (${ VSub_Number 2))} spids: [684] ) ] spids: [675] ) (While cond: [ (Sentence child: (C {(IS_MACRO_CALL)} {(DQ (${ VSub_Name ast))} {(DQ (${ VSub_Name env))}) terminator: <Op_Semi ';'> ) ] body: (DoGroup children: [ (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name ast))} {(0)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a0) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [725] ) ] spids: [723] ) (Sentence child: (C {(ENV_GET)} {(DQ (${ VSub_Name env))} {(DQ (${ VSub_Name a0))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:mac) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr:(ArithWord w:{(DQ (${ VSub_Name r))})) spids: [752 761] ) ) } spids: [750] ) ] spids: [748] ) (C {(_rest)} {(DQ (${ VSub_Name ast))}) (C { (BracedVarSub token: <VSub_Name mac> suffix_op: (StringUnary op_id:VOp1_DPercent arg_word:{('@*')}) spids: [774 778] ) } { (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr:(ArithWord w:{(DQ (${ VSub_Name r))})) spids: [780 789] ) } ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [792] ) ] spids: [792] ) ] spids: [709 800] ) ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Name ast))} spids: [803] ) ] spids: [803] ) ] spids: [672] ) spids: [667 671] ) (FuncDef name: EVAL_AST body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Number 1))} spids: [824] ) (assign_pair lhs: (LhsName name:env) op: Equal rhs: {(DQ (${ VSub_Number 2))} spids: [831] ) ] spids: [822] ) (Sentence child: (C {(_obj_type)} {(DQ (${ VSub_Name ast))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ot) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [854] ) ] spids: [852] ) (Case to_match: {(DQ (${ VSub_Name ot))} arms: [ (case_arm pat_list: [{(symbol)}] action: [ (C {(ENV_GET)} {(DQ (${ VSub_Name env))} {(DQ (${ VSub_Name ast))}) (ControlFlow token:<ControlFlow_Return return>) ] spids: [873 874 894 16777215] ) (case_arm pat_list: [{(list)}] action: [ (C {(_map_with_type)} {(_list)} {(EVAL)} {(DQ (${ VSub_Name ast))} {(DQ (${ VSub_Name env))} ) ] spids: [897 898 919 16777215] ) (case_arm pat_list: [{(vector)}] action: [ (C {(_map_with_type)} {(_vector)} {(EVAL)} {(DQ (${ VSub_Name ast))} {(DQ (${ VSub_Name env))} ) ] spids: [922 923 944 16777215] ) (case_arm pat_list: [{(hash_map)}] action: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:res) op: Equal rhs: {(DQ )} spids: [953] ) (assign_pair lhs: (LhsName name:key) op: Equal rhs: {(EmptyPart)} spids: [957] ) (assign_pair lhs: (LhsName name:val) op: Equal rhs: {(DQ )} spids: [959] ) (assign_pair lhs: (LhsName name:hm) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr:(ArithWord w:{(DQ (${ VSub_Name ast))})) spids: [965 974] ) ) } spids: [963] ) ] spids: [951] ) (Sentence child:(C {(_hash_map)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:new_hm) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [983] ) ] spids: [981] ) (C {(eval)} {(Assign_Local local)} {(Lit_VarLike 'keys=') (DQ (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('{!') (${ VSub_Name hm) ('[@]}') ) } ) (ForEach iter_name: key iter_words: [{(${ VSub_Name keys)}] do_arg_iter: F body: (DoGroup children: [ (C {(eval)} {(Lit_VarLike 'val=') (DQ (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('{') (${ VSub_Name hm) ('[') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Name key) (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) (']}') ) } ) (C {(EVAL)} {(DQ (${ VSub_Name val))} {(DQ (${ VSub_Name env))}) (C {(_assoc) (KW_Bang '!')} {(DQ (${ VSub_Name new_hm))} {(DQ (${ VSub_Name key))} {(DQ (${ VSub_Name r))} ) ] spids: [1017 1076] ) spids: [1011 1015] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Name new_hm))} spids: [1079] ) ] spids: [1079] ) ] spids: [947 948 1086 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Name ast))} spids: [1093] ) ] spids: [1093] ) ] spids: [1089 1090 1100 16777215] ) ] spids: [862 870 1103] ) ] spids: [819] ) spids: [814 818] ) (FuncDef name: EVAL body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Number 1))} spids: [1118] ) (assign_pair lhs: (LhsName name:env) op: Equal rhs: {(DQ (${ VSub_Number 2))} spids: [1125] ) ] spids: [1116] ) (While cond: [(Sentence child:(C {(true)}) terminator:<Op_Semi ';'>)] body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(EmptyPart)} spids: [1141] ) ] spids: [1141] ) (AndOr ops: [Op_DAmp] children: [ (DBracket expr: (WordTest w:{(DQ (${ VSub_Name __ERROR))}) ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [(C {(_list) (Lit_Other '?')} {(DQ (${ VSub_Name ast))})] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(EVAL_AST)} {(DQ (${ VSub_Name ast))} {(DQ (${ VSub_Name env))}) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [16777215 1179] ) ] spids: [16777215 1200] ) (C {(MACROEXPAND)} {(DQ (${ VSub_Name ast))} {(DQ (${ VSub_Name env))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1223] ) ] spids: [1223] ) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [(C {(_list) (Lit_Other '?')} {(DQ (${ VSub_Name ast))})] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(EVAL_AST)} {(DQ (${ VSub_Name ast))} {(DQ (${ VSub_Name env))}) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [16777215 1245] ) ] spids: [16777215 1266] ) (AndOr ops: [Op_DAmp Op_DAmp] children: [ (C {(_empty) (Lit_Other '?')} {(DQ (${ VSub_Name ast))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Name ast))} spids: [1280] ) ] spids: [1280] ) (ControlFlow token:<ControlFlow_Return return>) ] ) (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name ast))} {(0)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a0) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1306] ) ] spids: [1304] ) (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name ast))} {(1)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a1) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1327] ) ] spids: [1325] ) (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name ast))} {(2)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a2) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1348] ) ] spids: [1346] ) (Case to_match: { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr:(ArithWord w:{(DQ (${ VSub_Name a0))})) spids: [1359 1368] ) ) } arms: [ (case_arm pat_list: [{(def) (KW_Bang '!')}] action: [ (C {(EVAL)} {(DQ (${ VSub_Name a2))} {(DQ (${ VSub_Name env))}) (AndOr ops: [Op_DAmp] children: [ (DBracket expr: (WordTest w:{(DQ (${ VSub_Name __ERROR))}) ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) (C {(ENV_SET)} {(DQ (${ VSub_Name env))} {(DQ (${ VSub_Name a1))} {(DQ (${ VSub_Name r))} ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [1374 1376 1433 16777215] ) (case_arm pat_list: [{(let) (Lit_Other '*')}] action: [ (Sentence child: (C {(ENV)} {(DQ (${ VSub_Name env))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:let_env) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1451] ) ] spids: [1449] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:let_pairs) op: Equal rhs: { (ArrayLiteralPart words: [ { (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name a1))}) ) spids: [1463 1472] ) } ] ) } spids: [1461] ) ] spids: [1459] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:idx) op: Equal rhs: {(0)} spids: [1478] ) ] spids: [1476] ) (While cond: [ (Sentence child: (DBracket expr: (WordTest w: { (DQ (BracedVarSub token: <VSub_Name let_pairs> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name idx))}) ) spids: [1491 1500] ) ) } ) ) terminator: <Op_Semi ';'> ) ] body: (DoGroup children: [ (C {(EVAL)} { (DQ (BracedVarSub token: <VSub_Name let_pairs> bracket_op: (ArrayIndex expr: (ArithWord w: { (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithVarRef name:idx) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [1515 1523] ) } ) ) spids: [1512 1525] ) ) } {(DQ (${ VSub_Name let_env))} ) (C {(ENV_SET)} {(DQ (${ VSub_Name let_env))} { (DQ (BracedVarSub token: <VSub_Name let_pairs> bracket_op: (ArrayIndex expr: (ArithWord w:{(${ VSub_Name idx)}) ) spids: [1544 1551] ) ) } {(DQ (${ VSub_Name r))} ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:idx) op: Equal rhs: { (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithVarRef name:idx) right: (ArithWord w:{(Lit_Digits 2)}) ) spids: [1562 1570] ) } spids: [1561] ) ] spids: [1561] ) ] spids: [1506 1573] ) ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name a2))} spids: [1576] ) ] spids: [1576] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:env) op: Equal rhs: {(DQ (${ VSub_Name let_env))} spids: [1584] ) ] spids: [1584] ) ] spids: [1436 1438 1596 16777215] ) (case_arm pat_list: [{(quote)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Name a1))} spids: [1603] ) ] spids: [1603] ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [1599 1600 1613 16777215] ) (case_arm pat_list: [{(quasiquote)}] action: [ (C {(QUASIQUOTE)} {(DQ (${ VSub_Name a1))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1629] ) ] spids: [1629] ) ] spids: [1616 1617 1641 16777215] ) (case_arm pat_list: [{(defmacro) (KW_Bang '!')}] action: [ (C {(EVAL)} {(DQ (${ VSub_Name a2))} {(DQ (${ VSub_Name env))}) (AndOr ops: [Op_DAmp] children: [ (DBracket expr: (WordTest w:{(DQ (${ VSub_Name __ERROR))}) ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) (C {(ANON) (Lit_Other '[') (DQ (${ VSub_Name r) (_ismacro_)) (Lit_Other ']') (Lit_Other '=') (DQ (yes)) } ) (C {(ENV_SET)} {(DQ (${ VSub_Name env))} {(DQ (${ VSub_Name a1))} {(DQ (${ VSub_Name r))} ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [1644 1646 1719 16777215] ) (case_arm pat_list: [{(macroexpand)}] action: [ (C {(MACROEXPAND)} {(DQ (${ VSub_Name a1))} {(DQ (${ VSub_Name env))}) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [1722 1723 1743 16777215] ) (case_arm pat_list: [{(KW_Do do)}] action: [ (C {(_count)} {(DQ (${ VSub_Name ast))}) (C {(_slice)} {(DQ (${ VSub_Name ast))} {(1)} { (ArithSubPart anode: (ArithBinary op_id: Arith_Minus left: (ArithWord w:{(${ VSub_Name r)}) right: (ArithWord w:{(Lit_Digits 2)}) ) spids: [1768 1779] ) } ) (C {(EVAL_AST)} {(DQ (${ VSub_Name r))} {(DQ (${ VSub_Name env))}) (AndOr ops: [Op_DAmp Op_DAmp] children: [ (DBracket expr: (WordTest w:{(DQ (${ VSub_Name __ERROR))}) ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(EmptyPart)} spids: [1809] ) ] spids: [1809] ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) (C {(_last)} {(DQ (${ VSub_Name ast))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1827] ) ] spids: [1827] ) ] spids: [1746 1747 1839 16777215] ) (case_arm pat_list: [{(KW_If if)}] action: [ (C {(EVAL)} {(DQ (${ VSub_Name a1))} {(DQ (${ VSub_Name env))}) (AndOr ops: [Op_DAmp] children: [ (DBracket expr: (WordTest w:{(DQ (${ VSub_Name __ERROR))}) ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalOr left: (BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ (${ VSub_Name r))} right: {(DQ (${ VSub_Name __false))} ) right: (BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ (${ VSub_Name r))} right: {(DQ (${ VSub_Name __nil))} ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name ast))} {(3)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a3) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1934] ) ] spids: [1932] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (WordTest w:{(DQ (${ VSub_Name a3))}) ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name a3))} spids: [1958] ) ] spids: [1958] ) ] spids: [16777215 1955] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Name __nil))} spids: [1969] ) ] spids: [1969] ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [1966 1980] ) ] spids: [16777215 1914] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name a2))} spids: [1990] ) ] spids: [1990] ) ] spids: [1983 1998] ) ] spids: [1842 1843 2005 16777215] ) (case_arm pat_list: [{(fn) (Lit_Other '*')}] action: [ (C {(_function)} { (DQ ('ENV ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Name env) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' ') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) (${ VSub_Name a1) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' ') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('{@}') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ('; ') (' EVAL ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Name a2) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' ') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('{r}') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ) } {(DQ (${ VSub_Name a2))} {(DQ (${ VSub_Name env))} {(DQ (${ VSub_Name a1))} ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [2008 2010 2070 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (C {(EVAL_AST)} {(DQ (${ VSub_Name ast))} {(DQ (${ VSub_Name env))}) (AndOr ops: [Op_DAmp Op_DAmp] children: [ (DBracket expr: (WordTest w:{(DQ (${ VSub_Name __ERROR))}) ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(EmptyPart)} spids: [2103] ) ] spids: [2103] ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:el) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [2114] ) ] spids: [2112] ) (Sentence child: (C {(_first)} {(DQ (${ VSub_Name el))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:f) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name r))}) ) spids: [2135 2144] ) ) } spids: [2133] ) ] spids: [2131] ) (Sentence child: (C {(_rest)} {(DQ (${ VSub_Name el))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:args) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name r))}) ) spids: [2161 2170] ) ) } spids: [2159] ) ] spids: [2157] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobNEqual left: { (DQ (BracedVarSub token: <VSub_Name f> suffix_op: (PatSub pat: {('@')} replace: {(' ')} do_all: T do_prefix: F do_suffix: F ) spids: [2183 2190] ) ) } right: {(DQ (${ VSub_Name f))} ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(set)} {(--)} { (BracedVarSub token: <VSub_Name f> suffix_op: (PatSub pat: {('@')} replace: {(' ')} do_all: T do_prefix: F do_suffix: F ) spids: [2211 2218] ) } ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Number 2))} spids: [2221] ) ] spids: [2221] ) (C {(ENV)} {(DQ (${ VSub_Number 3))} {(DQ (${ VSub_Number 4))} {(${ VSub_Name args)} ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:env) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [2248] ) ] spids: [2248] ) ] spids: [16777215 2204] ) ] else_action: [ (C {(eval)} { (BracedVarSub token: <VSub_Name f> suffix_op: (StringUnary op_id:VOp1_DPercent arg_word:{('@*')}) spids: [2261 2265] ) } {(${ VSub_Name args)} ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [2256 2275] ) ] spids: [2073 2074 2282 16777215] ) ] spids: [1356 1371 2285] ) ] spids: [1138 2288] ) ) ] spids: [1113] ) spids: [1108 1112] ) (FuncDef name: PRINT body: (BraceGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr:(WordTest w:{(DQ (${ VSub_Name __ERROR))})) terminator: <Op_Semi ';'> ) ] action: [ (C {(_pr_str)} {(DQ (${ VSub_Name __ERROR))} {(yes)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ ('Error: ') (${ VSub_Name r))} spids: [2331] ) ] spids: [2331] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:__ERROR) op: Equal rhs: {(EmptyPart)} spids: [2340] ) ] spids: [2340] ) ] spids: [16777215 2317] ) ] else_action: [(C {(_pr_str)} {(DQ (${ VSub_Number 1))} {(yes)})] spids: [2343 2357] ) ] spids: [2301] ) spids: [2296 2300] ) (Sentence child:(C {(ENV)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:REPL_ENV) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [2368] ) ] spids: [2368] ) (FuncDef name: REP body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:r) op:Equal rhs:{(EmptyPart)} spids:[2383])] spids: [2383] ) (C {(READ)} {(DQ (${ VSub_Number 1))}) (C {(EVAL)} {(DQ (${ VSub_Name r))} {(DQ (${ VSub_Name REPL_ENV))}) (C {(PRINT)} {(DQ (${ VSub_Name r))}) ] spids: [2380] ) spids: [2375 2379] ) (FuncDef name: _fref body: (BraceGroup children: [ (Sentence child: (C {(_symbol)} {(DQ (${ VSub_Number 1))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:sym) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [2443] ) ] spids: [2441] ) (C {(_function)} { (DQ (${ VSub_Number 2) (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('{@}') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } ) (C {(ENV_SET)} {(DQ (${ VSub_Name REPL_ENV))} {(DQ (${ VSub_Name sym))} {(DQ (${ VSub_Name r))} ) ] spids: [2429] ) spids: [2424 2428] ) (ForEach iter_name: n iter_words: [ { (DQ (BracedVarSub token: <VSub_Name core_ns> prefix_op: VSub_Bang bracket_op: (WholeArray op_id:Lit_At) spids: [2494 2500] ) ) } ] do_arg_iter: F body: (DoGroup children: [ (Sentence child: (C {(_fref)} {(DQ (${ VSub_Name n))} { (DQ (BracedVarSub token: <VSub_Name core_ns> bracket_op: (ArrayIndex expr:(ArithWord w:{(DQ (${ VSub_Name n))})) spids: [2515 2524] ) ) } ) terminator: <Op_Semi ';'> ) ] spids: [2504 2528] ) spids: [2492 2502] ) (FuncDef name: _eval body: (BraceGroup children: [ (Sentence child: (C {(EVAL)} {(DQ (${ VSub_Number 1))} {(DQ (${ VSub_Name REPL_ENV))}) terminator: <Op_Semi ';'> ) ] spids: [2535] ) spids: [2530 2534] ) (C {(_fref)} {(DQ (eval))} {(_eval)}) (Sentence child:(C {(_list)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:argv) op:Equal rhs:{(DQ (${ VSub_Name r))} spids:[2565])] spids: [2565] ) (ForEach iter_name: _arg iter_words: [ { (DQ (BracedVarSub token: <VSub_At '@'> suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)})) spids: [2579 2583] ) ) } ] do_arg_iter: F body: (DoGroup children: [ (Sentence child: (C {(_string)} {(DQ (${ VSub_Name _arg))}) terminator: <Op_Semi ';'> ) (Sentence child: (C {(_conj) (KW_Bang '!')} {(DQ (${ VSub_Name argv))} {(DQ (${ VSub_Name r))}) terminator: <Op_Semi ';'> ) ] spids: [2587 2614] ) spids: [2577 2585] ) (C {(_symbol)} {(DQ (__STAR__ARGV__STAR__))}) (Sentence child: (C {(ENV_SET)} {(DQ (${ VSub_Name REPL_ENV))} {(DQ (${ VSub_Name r))} {(DQ (${ VSub_Name argv))}) terminator: <Op_Semi ';'> ) (C {(REP)} {(DQ ('(def! not (fn* (a) (if a false true)))'))}) (C {(REP)} { (DQ ('(def! load-file (fn* (f) (eval (read-string (str ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('(do ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' (slurp f) ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (')') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (')))))') ) } ) (C {(REP)} { (DQ ( "(defmacro! cond (fn* (& xs) (if (> (count xs) 0) (list 'if (first xs) (if (> (count xs) 1) (nth xs 1) (throw " ) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('odd number of forms to cond') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (")) (cons 'cond (rest (rest xs)))))))") ) } ) (C {(REP)} { (DQ ('(defmacro! or (fn* (& xs) (if (empty? xs) nil (if (= 1 (count xs)) (first xs) ') (EscapedLiteralPart token:<Lit_EscapedChar '\\`'>) ('(let* (or_FIXME ~(first xs)) (if or_FIXME or_FIXME (or ~@(rest xs))))))))') ) } ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr:(WordTest w:{(DQ (${ VSub_Number 1))})) terminator: <Op_Semi ';'> ) ] action: [ (C {(REP)} { (DQ ('(load-file ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Number 1) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (')') ) } ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] spids: [16777215 2702] ) ] spids: [16777215 2722] ) (While cond: [(Sentence child:(C {(true)}) terminator:<Op_Semi ';'>)] body: (DoGroup children: [ (AndOr ops: [Op_DPipe] children: [ (C {(READLINE)} {(DQ ('user> '))}) (ControlFlow token: <ControlFlow_Exit exit> arg_word: {(DQ ($ VSub_QMark '$?'))} ) ] ) (AndOr ops: [Op_DAmp Op_DAmp] children: [ (DBracket expr:(WordTest w:{(DQ (${ VSub_Name r))})) (C {(REP)} {(DQ (${ VSub_Name r))}) (C {(echo)} {(DQ (${ VSub_Name r))}) ] ) ] spids: [2734 2782] ) ) ] )