(command.CommandList
  children: [
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      left: <Id.KW_DLeftBracket '[['>
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_Number 0)}
                          right: 
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name BASH_SOURCE>
                                var_name: BASH_SOURCE
                                bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                        )
                      right: <Id.Lit_DRightBracket ']]'>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'dirname='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'dirname='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'dirname='> name:dirname)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (BracedVarSub
                        left: <Id.Left_DollarBrace '${'>
                        token: <Id.VSub_Name BASH_SOURCE>
                        var_name: BASH_SOURCE
                        bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                        suffix_op: 
                          (suffix_op.Unary
                            op: <Id.VOp1_Percent '%'>
                            arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
                          )
                        right: <Id.Right_DollarBrace '}'>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.AndOr
              children: [
                (command.DBracket
                  left: <Id.KW_DLeftBracket '[['>
                  expr: 
                    (bool_expr.Binary
                      op_id: Id.BoolBinary_GlobDEqual
                      left: {($ Id.VSub_DollarName dirname)}
                      right: {($ Id.VSub_Number 0)}
                    )
                  right: <Id.Lit_DRightBracket ']]'>
                  redirects: []
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'top_dir='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'top_dir='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'top_dir='> name:top_dir)
                      op: assign_op.Equal
                      rhs: {(SQ <..>)}
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'top_dir='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'top_dir='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'top_dir='> name:top_dir)
                      op: assign_op.Equal
                      rhs: {(${ Id.VSub_Name dirname) <'/..'>}
                    )
                  ]
                  redirects: []
                )
              ]
              ops: [<Id.Op_DAmp _> <Id.Op_DPipe _>]
            )
            (command.ForEach
              keyword: <Id.KW_For for>
              iter_names: [lib_file]
              iterable: (for_iter.Words words:[{<help>} {<alias>}])
              semi_tok: <Id.Op_Semi _>
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <source>
                          more_env: []
                          words: [
                            {<source>}
                            {($ Id.VSub_DollarName top_dir) <'/lib/'> (${ Id.VSub_Name lib_file) <.sh>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
          ]
          spids: [58 77]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.Simple
      blame_tok: <_Dbg_help_add>
      more_env: []
      words: [
        {<_Dbg_help_add>}
        {<down>}
        {
          (SQ <'**down** [*count*]\n'> <'\n'> 
            <'Move the current frame down in the stack trace (to an newer frame). 0 is\n'> <'the most recent frame.\n'> <'\n'> <'If *count* is omitted, use 1.\n'> <'\n'> <'See also:\n'> 
            <'---------\n'> <'\n'> <'**down** and **frame**.'>
          )
        }
        {<1>}
        {<_Dbg_complete_down>}
      ]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <_Dbg_complete_down>
      name: _Dbg_complete_down
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <typeset>
                  more_env: []
                  words: [{<typeset>} {<-i>} {<start>}]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
            (command.DParen
              left: <Id.Op_DLeftParen _>
              child: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: ($ Id.Lit_ArithVarLike start)
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Plus
                      left: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Plus
                          left: 
                            (arith_expr.Unary
                              op_id: Id.Node_UnaryMinus
                              child: ($ Id.Lit_ArithVarLike _Dbg_stack_size)
                            )
                          right: {<Id.Lit_Digits 2>}
                        )
                      right: ($ Id.Lit_ArithVarLike _Dbg_stack_pos)
                    )
                )
              right: <Id.Op_DRightParen _>
              redirects: []
            )
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <typeset>
                  more_env: []
                  words: [{<typeset>} {<-i>} {<end>}]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
            (command.DParen
              left: <Id.Op_DLeftParen _>
              child: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: ($ Id.Lit_ArithVarLike end)
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Minus
                      left: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Minus
                          left: ($ Id.Lit_ArithVarLike _Dbg_stack_size)
                          right: {<Id.Lit_Digits 3>}
                        )
                      right: ($ Id.Lit_ArithVarLike _Dbg_stack_pos)
                    )
                )
              right: <Id.Op_DRightParen _>
              redirects: []
            )
            (command.Simple
              blame_tok: <_Dbg_complete_num_range>
              more_env: []
              words: [
                {<_Dbg_complete_num_range>}
                {($ Id.VSub_DollarName start)}
                {($ Id.VSub_DollarName end)}
              ]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <_Dbg_do_down>
      name: _Dbg_do_down
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <_Dbg_not_running>
                  more_env: []
                  words: [{<_Dbg_not_running>}]
                  redirects: []
                  do_fork: T
                )
                (command.ControlFlow
                  keyword: <Id.ControlFlow_Return return>
                  arg_word: {<3>}
                )
              ]
              ops: [<Id.Op_DAmp _>]
            )
            (command.Simple
              blame_tok: <typeset>
              more_env: []
              words: [
                {<typeset>}
                {<Id.Lit_VarLike 'count='> 
                  (BracedVarSub
                    left: <Id.Left_DollarBrace '${'>
                    token: <Id.VSub_Number 1>
                    var_name: 1
                    suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<1>})
                    right: <Id.Right_DollarBrace '}'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <_Dbg_is_signed_int>
              more_env: []
              words: [{<_Dbg_is_signed_int>} {($ Id.VSub_DollarName count)}]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              left: <Id.Op_DLeftParen _>
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_DEqual
                                  left: {<Id.Lit_Digits 0>}
                                  right: {($ Id.VSub_QMark '?')}
                                )
                              right: <Id.Op_DRightParen _>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <_Dbg_frame_adjust>
                      more_env: []
                      words: [{<_Dbg_frame_adjust>} {($ Id.VSub_DollarName count)} {<-1>}]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <typeset>
                      more_env: []
                      words: [{<typeset>} {<-i>} {<Id.Lit_VarLike 'rc='> ($ Id.VSub_QMark '?')}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [263 278]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.Simple
                  blame_tok: <_Dbg_errmsg>
                  more_env: []
                  words: [
                    {<_Dbg_errmsg>}
                    {(DQ <'Expecting an integer; got '> ($ Id.VSub_DollarName count))}
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <typeset>
                  more_env: []
                  words: [{<typeset>} {<-i>} {<Id.Lit_VarLike 'rc='> <2>}]
                  redirects: []
                  do_fork: T
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.AndOr
              children: [
                (command.DParen
                  left: <Id.Op_DLeftParen _>
                  child: 
                    (arith_expr.Binary
                      op_id: Id.Arith_DEqual
                      left: {<Id.Lit_Digits 0>}
                      right: ($ Id.Lit_ArithVarLike rc)
                    )
                  right: <Id.Op_DRightParen _>
                  redirects: []
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike '_Dbg_last_cmd='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike '_Dbg_last_cmd='>
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike '_Dbg_last_cmd='>
                          name: _Dbg_last_cmd
                        )
                      op: assign_op.Equal
                      rhs: {(SQ <down>)}
                    )
                  ]
                  redirects: []
                )
              ]
              ops: [<Id.Op_DAmp _>]
            )
            (command.ControlFlow
              keyword: <Id.ControlFlow_Return return>
              arg_word: {($ Id.VSub_DollarName rc)}
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      left: <Id.KW_DLeftBracket '[['>
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_Number 0)}
                          right: 
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name BASH_SOURCE>
                                var_name: BASH_SOURCE
                                bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                        )
                      right: <Id.Lit_DRightBracket ']]'>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ForEach
              keyword: <Id.KW_For for>
              iter_names: [_Dbg_file]
              iterable: (for_iter.Words words:[{<help>} {<msg>} {<sort>} {<columnize>}])
              semi_tok: <Id.Op_Semi _>
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <source>
                      more_env: []
                      words: [
                        {<source>}
                        {(${ Id.VSub_Name top_dir) <'/lib/'> (${ Id.VSub_Name _Dbg_file) <.sh>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
            (command.Simple
              blame_tok: <source>
              more_env: []
              words: [{<source>} {(${ Id.VSub_Name top_dir) <'/command/help.sh'>}]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike '_Dbg_args='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike '_Dbg_args='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_Dbg_args='> name:_Dbg_args)
                  op: assign_op.Equal
                  rhs: {(SQ <down>)}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <_Dbg_do_help>
              more_env: []
              words: [{<_Dbg_do_help>} {<down>}]
              redirects: []
              do_fork: T
            )
          ]
          spids: [345 364]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
  ]
)