Skip to content

Instantly share code, notes, and snippets.

@Varriount
Created January 10, 2015 09:43
Show Gist options
  • Save Varriount/188eb68c84b63306850b to your computer and use it in GitHub Desktop.
Save Varriount/188eb68c84b63306850b to your computer and use it in GitHub Desktop.
import macros
macro eval(s: string): expr =
result = parseStmt($s)
eval("echo 5")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment