Skip to content

Commit

Permalink
fixing parser bug on end-of-input after dot
Browse files Browse the repository at this point in the history
closes issue #36
  • Loading branch information
JeffBezanson committed Jun 8, 2011
1 parent 2216b90 commit 110d97d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@
((and (eqv? c #\.)
(let ((c (read-char port))
(nextc (peek-char port)))
(cond ((char-numeric? nextc)
(cond ((eof-object? nextc)
'|.|)
((char-numeric? nextc)
(read-number port c))
((opchar? nextc)
(string->symbol
Expand Down

0 comments on commit 110d97d

Please sign in to comment.