(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: [{(sh) (Lit_Other '*')}] action: [ (C {(EVAL)} {(DQ (${ VSub_Name a1))} {(DQ (${ VSub_Name env))}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:output) op: Equal rhs: {(DQ )} spids: [1767] ) ] spids: [1765] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:line) op: Equal rhs: {(DQ )} spids: [1774] ) ] spids: [1772] ) (While cond: [(Sentence child:(C {(read)} {(line)}) terminator:<Op_Semi ';'>)] body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:output) op: Equal rhs: { (DQ (${ VSub_Name output) (${ VSub_Name line) (Lit_Other '\\') (n) ) } spids: [1789] ) ] spids: [1789] ) ] spids: [1786 1802] ) redirects: [ (Redir op_id: Redir_Less fd: 16777215 arg_word: { (CommandSubPart command_list: (CommandList children: [ (C {(eval)} { (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name r))}) ) spids: [1809 1818] ) } ) ] ) left_token: <Left_ProcSubIn '<('> spids: [1806 1819] ) } spids: [1804] ) ] ) (C {(_string)} { (DQ (BracedVarSub token: <VSub_Name output> suffix_op: (StringUnary op_id: VOp1_Percent arg_word: {(EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) (n)} ) spids: [1825 1830] ) ) } ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [1746 1748 1836 16777215] ) (case_arm pat_list: [{(try) (Lit_Other '*')}] action: [ (C {(EVAL)} {(DQ (${ VSub_Name a1))} {(DQ (${ VSub_Name env))}) (AndOr ops: [Op_DAmp] children: [ (DBracket expr: (BoolUnary op_id: BoolUnary_z child: {(DQ (${ VSub_Name __ERROR))} ) ) (ControlFlow token: <ControlFlow_Return return> ) ] ) (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name a2))} {(0)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a20) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1888] ) ] spids: [1886] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} { (DQ (BracedVarSub token: <VSub_Name ANON> bracket_op: (ArrayIndex expr: (ArithWord w:{(DQ (${ VSub_Name a20))}) ) spids: [1901 1910] ) ) } {(Lit_Other '=') (Lit_Other '=')} {(DQ (catch__STAR__))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name a2))} {(1)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a21) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1939] ) ] spids: [1937] ) (Sentence child: (C {(_nth)} {(DQ (${ VSub_Name a2))} {(2)}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:a22) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1960] ) ] spids: [1958] ) (Sentence child: (C {(_list)} {(DQ (${ VSub_Name a21))}) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:binds) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [1979] ) ] spids: [1977] ) (C {(ENV)} {(DQ (${ VSub_Name env))} {(DQ (${ VSub_Name binds))} {(DQ (${ VSub_Name __ERROR))} ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:try_env) op: Equal rhs: {(DQ (${ VSub_Name r))} spids: [2010] ) ] spids: [2008] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:__ERROR) op: Equal rhs: {(EmptyPart)} spids: [2018] ) ] spids: [2018] ) (C {(EVAL)} {(DQ (${ VSub_Name a22))} {(DQ (${ VSub_Name try_env))}) ] spids: [16777215 1923] ) ] spids: [16777215 2036] ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [1839 1841 2044 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: [2069 2080] ) } ) (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: [2110] ) ] spids: [2110] ) (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: [2128] ) ] spids: [2128] ) ] spids: [2047 2048 2140 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: [2235] ) ] spids: [2233] ) (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: [2259] ) ] spids: [2259] ) ] spids: [16777215 2256] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:r) op: Equal rhs: {(DQ (${ VSub_Name __nil))} spids: [2270] ) ] spids: [2270] ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [2267 2281] ) ] spids: [16777215 2215] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Name a2))} spids: [2291] ) ] spids: [2291] ) ] spids: [2284 2299] ) ] spids: [2143 2144 2306 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: [2309 2311 2371 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: [2404] ) ] spids: [2404] ) (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: [2415] ) ] spids: [2413] ) (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: [2436 2445] ) ) } spids: [2434] ) ] spids: [2432] ) (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: [2462 2471] ) ) } spids: [2460] ) ] spids: [2458] ) (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: [2484 2491] ) ) } 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: [2512 2519] ) } ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ast) op: Equal rhs: {(DQ (${ VSub_Number 2))} spids: [2522] ) ] spids: [2522] ) (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: [2549] ) ] spids: [2549] ) ] spids: [16777215 2505] ) ] else_action: [ (C {(eval)} { (BracedVarSub token: <VSub_Name f> suffix_op: (StringUnary op_id:VOp1_DPercent arg_word:{('@*')}) spids: [2562 2566] ) } {(${ VSub_Name args)} ) (ControlFlow token: <ControlFlow_Return return> ) ] spids: [2557 2576] ) ] spids: [2374 2375 2583 16777215] ) ] spids: [1356 1371 2586] ) ] spids: [1138 2589] ) ) ] 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: [2632] ) ] spids: [2632] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:__ERROR) op: Equal rhs: {(EmptyPart)} spids: [2641] ) ] spids: [2641] ) ] spids: [16777215 2618] ) ] else_action: [(C {(_pr_str)} {(DQ (${ VSub_Number 1))} {(yes)})] spids: [2644 2658] ) ] spids: [2602] ) spids: [2597 2601] ) (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: [2669] ) ] spids: [2669] ) (FuncDef name: REP body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:r) op:Equal rhs:{(EmptyPart)} spids:[2684])] spids: [2684] ) (C {(READ)} {(DQ (${ VSub_Number 1))}) (C {(EVAL)} {(DQ (${ VSub_Name r))} {(DQ (${ VSub_Name REPL_ENV))}) (C {(PRINT)} {(DQ (${ VSub_Name r))}) ] spids: [2681] ) spids: [2676 2680] ) (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: [2744] ) ] spids: [2742] ) (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: [2730] ) spids: [2725 2729] ) (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: [2795 2801] ) ) } ] 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: [2816 2825] ) ) } ) terminator: <Op_Semi ';'> ) ] spids: [2805 2829] ) spids: [2793 2803] ) (FuncDef name: _eval body: (BraceGroup children: [ (Sentence child: (C {(EVAL)} {(DQ (${ VSub_Number 1))} {(DQ (${ VSub_Name REPL_ENV))}) terminator: <Op_Semi ';'> ) ] spids: [2836] ) spids: [2831 2835] ) (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:[2866])] spids: [2866] ) (ForEach iter_name: _arg iter_words: [ { (DQ (BracedVarSub token: <VSub_At '@'> suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)})) spids: [2880 2884] ) ) } ] 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: [2888 2915] ) spids: [2878 2886] ) (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! *host-language* ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (bash) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (')') ) } ) (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 ('(def! *gensym-counter* (atom 0))'))}) (C {(REP)} { (DQ ('(def! gensym (fn* [] (symbol (str ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (G__) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' (swap! *gensym-counter* (fn* [x] (+ 1 x)))))))') ) } ) (C {(REP)} { (DQ ( '(defmacro! or (fn* (& xs) (if (empty? xs) nil (if (= 1 (count xs)) (first xs) (let* (condvar (gensym)) ' ) (EscapedLiteralPart token:<Lit_EscapedChar '\\`'>) ('(let* (~condvar ~(first xs)) (if ~condvar ~condvar (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 3029] ) ] spids: [16777215 3049] ) (C {(REP)} { (DQ ('(println (str ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('Mal [') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' *host-language* ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (']') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('))') ) } ) (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: [3075 3123] ) ) ] )