parse floats

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2012-03-24 12:30:48 -04:00
parent 88a1198a87
commit 126908cc26
1 changed files with 5 additions and 2 deletions

View File

@ -220,11 +220,14 @@ class ScalaDecompile(Method):
#return "field %s -> %s" % (name, result) #return "field %s -> %s" % (name, result)
return "field %s %s" % (result, name) return "field %s %s" % (result, name)
elif line.startswith('int'):
return 'int %s' % line[4:]
elif line.startswith('long'): elif line.startswith('long'):
return 'long %s' % line[5:] return 'long %s' % line[5:]
elif line.startswith('int'): elif line.startswith('float'):
return 'int %s' % line[4:] return 'double %s' % line[6:]
elif line.startswith('double'): elif line.startswith('double'):
return 'double %s' % line[7:] return 'double %s' % line[7:]