Skip to content

Instantly share code, notes, and snippets.

@0x0dea
Created August 19, 2015 10:06
Show Gist options
  • Save 0x0dea/dbcee26173872efa6a51 to your computer and use it in GitHub Desktop.
Save 0x0dea/dbcee26173872efa6a51 to your computer and use it in GitHub Desktop.
expr = ''
begin
p eval expr << gets
rescue SyntaxError
retry
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment