Skip to content

Commit

Permalink
output 5..toString() instead of (5).toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
mishoo committed Jan 21, 2011
1 parent 9596935 commit 1fa7fe5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/codegen.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ characters in string S to STREAM."
"(" (join (mapcar (lambda (expr) (parenthesize expr :seq)) args) ", " ",") ")"))

(:dot (expr prop)
(stick (parenthesize expr #'needs-parens) "." prop))
(stick (if (eq (car expr) :num)
(stick (gencode expr) ".")
(parenthesize expr #'needs-parens))
"." prop))

(:if (cond then else)
(apply #'add-spaces `("if" ,(stick "(" (gencode cond) ")")
Expand Down

0 comments on commit 1fa7fe5

Please sign in to comment.