Created
May 12, 2012 07:56
-
-
Save letoh/2665112 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dsl.scheme import * | |
(_define . foo | |
((1, 2, 3))) | |
(_define . bar | |
(lambda x: x + 4)) | |
(_display (1, 3)) | |
(_cons. a (_cons. b (_cons. c ()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
class Display(object):
def call(s, *x):
print x
return x
display_ = Display()
class Define(object):
def init(s, sym = None):
s._sym = sym
define_ = Define()
class Cons(object):
def getattr(s, name):
return s
cons_ = Cons()