Skip to content
This repository has been archived by the owner on Mar 16, 2018. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoqi committed Dec 29, 2017
1 parent dbdfca4 commit 407fb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js.scm
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
(define *true "true")
(define *eq? (%*xfx "==="))
(define *not-eq? (%*xfx "!=="))
(define (*or* xs) (*%* "||"))
(define (*and* xs) (*%* "&&"))
(define *or* (*%* "||"))
(define *and* (*%* "&&"))
(define (*not x) (++ "(!"x")"))
(define (**if-boolean b xb yb) (++ "if("b"){"(**top xb)"}else{"(**top yb)"}"))
(define (**if b xb yb) (**if-boolean (*not-eq? b *false) xb yb))
Expand Down

0 comments on commit 407fb3e

Please sign in to comment.