Simple number literal parsing (#77)
This commit is contained in:
committed by
Kyle Fuller
parent
15facd97fb
commit
2d507e7c11
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user