comparison number_c.rhope @ 135:18a4403fe576

Javascript backend can now produce broken output. Needs fixes plus port of standard lib
author Mike Pavone <pavone@retrodev.com>
date Sun, 14 Nov 2010 03:09:49 -0500
parents 7361d70fbba6
children fc3815b7462f
comparison
equal deleted inserted replaced
134:386f4a874821 135:18a4403fe576
116 } 116 }
117 }}} 117 }}}
118 } 118 }
119 119
120 Generate Number Methods[backend:out] 120 Generate Number Methods[backend:out]
121 { 121 {
122 numtypes <- ("Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64") 122 out <- Fold[_Generate Number Methods[?], backend, [backend]Supported Number Types]
123
124 out <- Fold[_Generate Number Methods[?], backend, numtypes]
125 } 123 }
126 124
127 Register Number Method[program, method, type, outtype:out] 125 Register Number Method[program, method, type, outtype:out]
128 { 126 {
129 name <- [[method]Append["@"]]Append[type] 127 name <- [[method]Append["@"]]Append[type]