Skip to content

Instantly share code, notes, and snippets.

@SamuraiT
Created December 10, 2014 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamuraiT/d3b521c101539bb1e65e to your computer and use it in GitHub Desktop.
Save SamuraiT/d3b521c101539bb1e65e to your computer and use it in GitHub Desktop.
simple REPL
def repl(prompt="(scheme)> "):
while True:
val = eval(parse(input(prompt)))
if val is not None:
print(val)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment