(CommandList
  children: [
    (AndOr
      children: [
        (C {(Lit_Other "[")} 
          {
            (BracedVarSub
              token: <VSub_Name VARIABLES_QUEUE_SH>
              suffix_op: (StringUnary op_id:VTest_Plus arg_word:{(true)})
              spids: [9 13]
            )
          } {(Lit_Other "]")}
        )
        (ControlFlow token:<ControlFlow_Return return>)
      ]
      op_id: Op_DAmp
    )
    (Assignment
      keyword: Assign_Declare
      flags: ["'-g'"]
      pairs: [(assign_pair lhs:(LhsName name:VARIABLES_QUEUE_SH) op:Equal rhs:{(true)} spids:[25])]
      spids: [21]
    )
    (C {(.)} 
      {
        (BracedVarSub
          token: <VSub_Name BASH_SOURCE>
          suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ("*")})
          spids: [31 36]
        ) (/common.sh)
      }
    )
    (C {(.)} 
      {
        (BracedVarSub
          token: <VSub_Name BASH_SOURCE>
          suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ("*")})
          spids: [41 46]
        ) (/logger.sh)
      }
    )
    (C {(.)} 
      {
        (BracedVarSub
          token: <VSub_Name BASH_SOURCE>
          suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ("*")})
          spids: [51 56]
        ) (/variables.sh)
      }
    )
    (C {(.)} 
      {
        (BracedVarSub
          token: <VSub_Name BASH_SOURCE>
          suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ("*")})
          spids: [61 66]
        ) (/variables.atom.sh)
      }
    )
    (C {(.)} 
      {
        (BracedVarSub
          token: <VSub_Name BASH_SOURCE>
          suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ("*")})
          spids: [71 76]
        ) (/variables.arraylist.sh)
      }
    )
    (C {(variable) (Lit_Other ":") (Lit_Other ":") (type) (Lit_Other ":") (Lit_Other ":") (define)} 
      {(ArrayQueue)} {(ArrayList)}
    )
    (FuncDef
      name: "variable::ArrayQueue::new"
      body: 
        (BraceGroup
          children: [
            (C {(variable) (Lit_Other ":") (Lit_Other ":") (new)} {(ArrayQueue)} {(DQ (${ VSub_At "@"))})
          ]
          spids: [124]
        )
      spids: [112 123]
    )
    (FuncDef
      name: "variable::ArrayQueue::enqueue"
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(${ VSub_Name VARIABLES_DEBUG)}
                              right: {(1)}
                            )
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Sentence
                      child: (C {(stderr)} {(DQ ("variable::ArrayQueue::enqueue ") (${ VSub_At "@"))})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  spids: [-1 182]
                )
              ]
              spids: [-1 195]
            )
            (Assignment
              keyword: Assign_Declare
              pairs: [
                (assign_pair
                  lhs: (LhsName name:token)
                  op: Equal
                  rhs: {(DQ (${ VSub_Number 1))}
                  spids: [201]
                )
              ]
              spids: [199]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (C 
                              {(variable) (Lit_Other ":") (Lit_Other ":") (type) (Lit_Other ":") 
                                (Lit_Other ":") (instanceOf)
                              } {(DQ (${ VSub_Name token))} {(ArrayQueue)}
                            )
                          ]
                          negated: True
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(stderr)} 
                      {
                        (DQ ("Variable [") (${ VSub_Name token) 
                          ("] is not of type ArrayQueue (actual type [") (${ VSub_Name RESULT) ("])")
                        )
                      }
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 231]
                )
              ]
              spids: [-1 254]
            )
            (C 
              {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayList) (Lit_Other ":") (Lit_Other ":") 
                (append)
              } {(DQ (${ VSub_At "@"))}
            )
          ]
          spids: [164]
        )
      spids: [152 163]
    )
    (FuncDef
      name: "variable::ArrayQueue::dequeue"
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(${ VSub_Name VARIABLES_DEBUG)}
                              right: {(1)}
                            )
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (Sentence
                      child: (C {(stderr)} {(DQ ("variable::ArrayList::isEmpty_c ") (${ VSub_At "@"))})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  spids: [-1 314]
                )
              ]
              spids: [-1 327]
            )
            (Assignment
              keyword: Assign_Declare
              pairs: [
                (assign_pair
                  lhs: (LhsName name:token)
                  op: Equal
                  rhs: {(DQ (${ VSub_Number 1))}
                  spids: [332]
                )
              ]
              spids: [330]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (C 
                              {(variable) (Lit_Other ":") (Lit_Other ":") (type) (Lit_Other ":") 
                                (Lit_Other ":") (instanceOf)
                              } {(DQ (${ VSub_Name token))} {(ArrayQueue)}
                            )
                          ]
                          negated: True
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(stderr)} 
                      {
                        (DQ ("Variable [") (${ VSub_Name token) 
                          ("] is not of type ArrayQueue (actual type [") (${ VSub_Name RESULT) ("])")
                        )
                      }
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 363]
                )
              ]
              spids: [-1 386]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C 
                          {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayList) (Lit_Other ":") 
                            (Lit_Other ":") (isEmpty_c)
                          } {(DQ (${ VSub_Name token))}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(stderr)} {(DQ ("Cannot dequeue from an empty queue"))})
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 408]
                )
              ]
              spids: [-1 423]
            )
            (Sentence
              child: 
                (C 
                  {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") 
                    (Lit_Other ":") (peek)
                  } {(DQ (${ VSub_Name token))}
                )
              terminator: <Op_Semi ";">
            )
            (Assignment
              keyword: Assign_Declare
              pairs: [
                (assign_pair
                  lhs: (LhsName name:result)
                  op: Equal
                  rhs: {($ VSub_Name "$RESULT")}
                  spids: [444]
                )
              ]
              spids: [442]
            )
            (Sentence
              child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (type)} {($ VSub_Name "$token")})
              terminator: <Op_Semi ";">
            )
            (Assignment
              keyword: Assign_Declare
              pairs: [
                (assign_pair
                  lhs: (LhsName name:type)
                  op: Equal
                  rhs: {($ VSub_Name "$RESULT")}
                  spids: [458]
                )
              ]
              spids: [456]
            )
            (Sentence
              child: 
                (C 
                  {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayList) (Lit_Other ":") 
                    (Lit_Other ":") (rest)
                  } {($ VSub_Name "$token")}
                )
              terminator: <Op_Semi ";">
            )
            (Assignment
              keyword: Assign_Declare
              pairs: [
                (assign_pair
                  lhs: (LhsName name:value)
                  op: Equal
                  rhs: {($ VSub_Name "$RESULT")}
                  spids: [475]
                )
              ]
              spids: [473]
            )
            (C {(variable) (Lit_Other ":") (Lit_Other ":") (set)} {(DQ ($ VSub_Name "$token"))} 
              {(DQ ($ VSub_Name "$type"))} {(DQ ($ VSub_Name "$value"))}
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:RESULT)
                  op: Equal
                  rhs: {(DQ (${ VSub_Name result))}
                  spids: [497]
                )
              ]
              spids: [497]
            )
          ]
          spids: [296]
        )
      spids: [284 295]
    )
    (FuncDef
      name: "variable::ArrayQueue::peek"
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_Declare
              pairs: [
                (assign_pair
                  lhs: (LhsName name:token)
                  op: Equal
                  rhs: {(DQ (${ VSub_Number 1))}
                  spids: [533]
                )
              ]
              spids: [531]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (C 
                              {(variable) (Lit_Other ":") (Lit_Other ":") (type) (Lit_Other ":") 
                                (Lit_Other ":") (instanceOf)
                              } {(DQ (${ VSub_Name token))} {(ArrayQueue)}
                            )
                          ]
                          negated: True
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [
                    (C {(stderr)} 
                      {
                        (DQ ("Variable [") (${ VSub_Name token) 
                          ("] is not of type ArrayQueue (actual type [") (${ VSub_Name RESULT) ("])")
                        )
                      }
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 564]
                )
              ]
              spids: [-1 587]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C 
                          {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayList) (Lit_Other ":") 
                            (Lit_Other ":") (isEmpty_c)
                          } {($ VSub_Name "$token")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {(stderr)} {(DQ ("Cannot peek from an empty queue"))}) (C {(exit)} {(1)})]
                  spids: [-1 605]
                )
              ]
              spids: [-1 620]
            )
            (Sentence
              child: 
                (C 
                  {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayList) (Lit_Other ":") 
                    (Lit_Other ":") (first)
                  } {($ VSub_Name "$token")}
                )
              terminator: <Op_Semi ";">
            )
            (Assignment
              keyword: Assign_Declare
              pairs: [
                (assign_pair
                  lhs: (LhsName name:result)
                  op: Equal
                  rhs: {($ VSub_Name "$RESULT")}
                  spids: [640]
                )
              ]
              spids: [638]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:RESULT)
                  op: Equal
                  rhs: {(DQ (${ VSub_Name result))}
                  spids: [644]
                )
              ]
              spids: [644]
            )
          ]
          spids: [528]
        )
      spids: [516 527]
    )
    (FuncDef
      name: "_variable::ArrayQueue::peek_p"
      body: 
        (BraceGroup
          children: [
            (C 
              {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") 
                (peek)
              } {(DQ (${ VSub_At "@"))}
            )
            (C {(echo)} {(DQ ($ VSub_Name "$RESULT"))})
          ]
          spids: [665]
        )
      spids: [653 664]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other "[")} {($ VSub_Number "$0")} {(KW_Bang "!") (Lit_Other "=")} 
                  {($ VSub_Name "$BASH_SOURCE")} {(Lit_Other "]")}
                )
              terminator: <Op_Semi ";">
            )
          ]
          action: [(ControlFlow token:<ControlFlow_Return return>)]
          spids: [-1 711]
        )
      ]
      spids: [-1 716]
    )
    (Sentence
      child: 
        (C 
          {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") (new)}
        )
      terminator: <Op_Semi ";">
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:vCode) op:Equal rhs:{(${ VSub_Name RESULT)} spids:[738])]
      spids: [738]
    )
    (Sentence
      child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (new)} {(String)} {(DQ (first))})
      terminator: <Op_Semi ";">
    )
    (C 
      {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") (enqueue)} {(${ VSub_Name vCode)} {(${ VSub_Name RESULT)}
    )
    (Sentence
      child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (new)} {(String)} {(DQ (second))})
      terminator: <Op_Semi ";">
    )
    (C 
      {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") (enqueue)} {(${ VSub_Name vCode)} {(${ VSub_Name RESULT)}
    )
    (Sentence
      child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (new)} {(String)} {(DQ (third))})
      terminator: <Op_Semi ";">
    )
    (C 
      {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") (enqueue)} {(${ VSub_Name vCode)} {(${ VSub_Name RESULT)}
    )
    (Sentence
      child: 
        (C 
          {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") (peek)} {($ VSub_Name "$vCode")}
        )
      terminator: <Op_Semi ";">
    )
    (Sentence
      child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (value)} {(DQ (${ VSub_Name RESULT))})
      terminator: <Op_Semi ";">
    )
    (C {(assert) (Lit_Other ":") (Lit_Other ":") (equals)} {(DQ (first))} {(DQ ($ VSub_Name "$RESULT"))} 
      {(DQ ("queue:peek first"))}
    )
    (Sentence
      child: 
        (C 
          {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") 
            (dequeue)
          } {($ VSub_Name "$vCode")}
        )
      terminator: <Op_Semi ";">
    )
    (Sentence
      child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (value)} {(DQ (${ VSub_Name RESULT))})
      terminator: <Op_Semi ";">
    )
    (C {(assert) (Lit_Other ":") (Lit_Other ":") (equals)} {(DQ (first))} {(DQ ($ VSub_Name "$RESULT"))} 
      {(DQ ("queue::dequeue first"))}
    )
    (Sentence
      child: 
        (C 
          {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") (peek)} {($ VSub_Name "$vCode")}
        )
      terminator: <Op_Semi ";">
    )
    (Sentence
      child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (value)} {(DQ (${ VSub_Name RESULT))})
      terminator: <Op_Semi ";">
    )
    (C {(assert) (Lit_Other ":") (Lit_Other ":") (equals)} {(DQ (second))} {(DQ ($ VSub_Name "$RESULT"))} 
      {(DQ ("queue:peek second"))}
    )
    (Sentence
      child: 
        (C 
          {(variable) (Lit_Other ":") (Lit_Other ":") (ArrayQueue) (Lit_Other ":") (Lit_Other ":") 
            (dequeue)
          } {($ VSub_Name "$vCode")}
        )
      terminator: <Op_Semi ";">
    )
    (Sentence
      child: (C {(variable) (Lit_Other ":") (Lit_Other ":") (value)} {(DQ (${ VSub_Name RESULT))})
      terminator: <Op_Semi ";">
    )
    (C {(assert) (Lit_Other ":") (Lit_Other ":") (equals)} {(DQ (second))} {(DQ ($ VSub_Name "$RESULT"))} 
      {(DQ ("queue::dequeue second"))}
    )
    (C {(assert) (Lit_Other ":") (Lit_Other ":") (report)})
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (AndOr
                  children: [
                    (C {(Lit_Other "[")} 
                      {
                        (BracedVarSub
                          token: <VSub_Number 1>
                          suffix_op: (StringUnary op_id:VTest_Plus arg_word:{(isset)})
                          spids: [1018 1022]
                        )
                      } {(Lit_Other "]")}
                    )
                    (C {(Lit_Other "[")} {(DQ ($ VSub_Number "$1"))} {(Lit_Other "=") (Lit_Other "=")} 
                      {(DQ (debug))} {(Lit_Other "]")}
                    )
                  ]
                  op_id: Op_DAmp
                )
              terminator: <Op_Semi ";">
            )
          ]
          action: [(C {(variable) (Lit_Other ":") (Lit_Other ":") (printMetadata)})]
          spids: [-1 1044]
        )
      ]
      spids: [-1 1053]
    )
  ]
)