Skip to content

Commit

Permalink
fix lexer problem identifying ints as reals
Browse files Browse the repository at this point in the history
  • Loading branch information
relud committed Mar 12, 2012
1 parent 16ba03f commit aa5ac1c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lexer.rb
Expand Up @@ -59,14 +59,6 @@ def tokenize(input)
next
end

l = s.scan(/\-?\d+e?(\d+)?/)
if l
token = RealToken.new(:real, l.to_f)
st.try_set(l, token)
tokens << token
next
end

l = s.scan(/\-?\d+\.(\d+)?/)
if l
token = RealToken.new(:real, l.to_f)
Expand Down

0 comments on commit aa5ac1c

Please sign in to comment.