Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adds support for instanceof checking through (instance-of? item type) #53

Merged
merged 1 commit into from

2 participants

@matthewp

No description provided.

@jbr jbr merged commit e816429 into from
@jbr
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 include/macros.sibilant
View
5 include/macros.sibilant
@@ -358,4 +358,7 @@
(lambda (h k v)
(concat (translate k) " = " (translate v))))
(if (undefined? body) ");"
- (concat ") {" (indent (translate body)) "}"))))
+ (concat ") {" (indent (translate body)) "}"))))
+
+(defmacro instance-of? (item type)
+ (concat "(" (translate item) " instanceof " (translate type) ")"))
Something went wrong with that request. Please try again.