Add support for floats

I'm not sure all operations are supported but the vast majority should
be supported now.

This commit also refactors binop translation.
This commit is contained in:
Ayke van Laethem
2018-08-31 21:24:22 +02:00
parent 3cdf606183
commit 46d2d2e777
2 changed files with 194 additions and 106 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ func main() {
Currently supported features:
* control flow
* many (but not all) basic types: most ints, strings, structs
* many (but not all) basic types: most ints, floats, strings, structs
* function calling
* interfaces for basic types (with type switches and asserts)
* goroutines (very initial support)
@@ -50,7 +50,7 @@ Currently supported features:
Not yet supported:
* float, complex, etc.
* complex numbers
* garbage collection
* defer
* closures