Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> -- (find-dn6 "zha.lua" "ZHA")
> dofile "newrect.lua"
> pris = function (o) printf("%s ", tostring(o)) end
> z = ZHA.fromspec("12RRL1LLRR")
> = z
    45    
  44      
43        
  33      
    23    
  22  13  
    12  03
  11  02  
10  01    
  00      
> for y=z.maxy,0,-1 do pris(z:leftpoint(y):lr())  end; print()
45 44 43 33 23 22 12 11 10 00 
> for y=z.maxy,0,-1 do pris(z:rightpoint(y):lr()) end; print()
45 44 43 33 23 13 03 02 01 00 
> for _,P in ipairs(z:rightwallgenerators("all")) do pris(P:lr()) end; print()
01 02 03 44 45 
> for _,P in ipairs(z:rightwallgenerators())      do pris(P:lr()) end; print()
44 
> for _,P in ipairs(z:leftwallgenerators("all"))  do pris(P:lr()) end: print()
stdin:1: unexpected symbol near ':'
> for _,P in ipairs(z:leftwallgenerators())       do pris(P:lr()) end; print()
22 33 
> for _,P in ipairs(z:rightwallcorners())         do pris(P:lr()) end; print()
00 03 43 45 45 
> for _,P in ipairs(z:leftwallcorners())          do pris(P:lr()) end; print()
00 10 12 22 23 43 45 
> 
> --      45
> --    44
> --  43
> --    33
> --      23
> --    22  13
> --      12  03
> --    11  02
> --  10  01
> --    00
> 
>