Simple number literal parsing (#77)

This commit is contained in:
David Jennes
2016-12-07 20:33:06 +01:00
committed by Kyle Fuller
parent 15facd97fb
commit 2d507e7c11
2 changed files with 17 additions and 0 deletions

View File

@@ -60,6 +60,11 @@ public struct Variable : Equatable, Resolvable {
return variable[variable.characters.index(after: variable.startIndex) ..< variable.characters.index(before: variable.endIndex)]
}
if let number = Float80(variable) {
// Number literal
return number
}
for bit in lookup() {
current = normalize(current)