(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:esh)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: (C {<readlink>} {<-f>} {($ Id.VSub_DollarName '$BALLS_LIB') <'/../bin/esh'>})
              )
            }
          spids: [3]
        )
      ]
    )
    (command.ShFunction
      name: 'render::esh'
      body: 
        (BraceGroup
          children: [
            (C {<local>} 
              {<Id.Lit_VarLike 'view='> 
                (DQ ($ Id.VSub_DollarName '$BALLS_VIEWS') <'/'> ($ Id.VSub_Number '$1'))
              }
            )
            (C {<local>} 
              {<Id.Lit_VarLike 'compiled='> 
                (DQ 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (C {<esh> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <compile>} 
                        {(DQ ($ Id.VSub_DollarName '$view'))}
                      )
                  )
                )
              }
            )
            (command.Subshell child:(C {<.>} {(DQ ($ Id.VSub_DollarName '$compiled'))}))
          ]
        )
    )
    (command.ShFunction
      name: 'esh::compile'
      body: 
        (BraceGroup
          children: [
            (C {<local>} {<Id.Lit_VarLike 'view='> (DQ ($ Id.VSub_Number '$1'))})
            (C {<local>} {<Id.Lit_VarLike 'compiled_fname='> (DQ ($ Id.VSub_DollarName '$view') <.o>)})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (command.DBracket
                                  expr: 
                                    (bool_expr.LogicalNot
                                      child: 
                                        (bool_expr.Unary
                                          op_id: Id.BoolUnary_f
                                          child: {(DQ ($ Id.VSub_DollarName '$compiled_fname'))}
                                        )
                                    )
                                )
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_nt
                                      left: {(DQ ($ Id.VSub_DollarName '$view'))}
                                      right: {(DQ ($ Id.VSub_DollarName '$compiled_fname'))}
                                    )
                                )
                              ]
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [{($ Id.VSub_DollarName '$esh')} {(DQ ($ Id.VSub_DollarName '$view'))}]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {(DQ ($ Id.VSub_DollarName '$compiled_fname'))}
                        )
                      ]
                      do_fork: T
                    )
                  ]
                  spids: [96 127]
                )
              ]
            )
            (C {<echo>} {(DQ ($ Id.VSub_DollarName '$compiled_fname'))})
          ]
        )
    )
  ]
)