Skip to content

Instantly share code, notes, and snippets.

@eterps
Created June 5, 2019 18:38
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 eterps/4ab5c21458b9b984089a0805e91c4390 to your computer and use it in GitHub Desktop.
Save eterps/4ab5c21458b9b984089a0805e91c4390 to your computer and use it in GitHub Desktop.
# Currently doesn't work
import macros
macro do_sequentially(idx: int, statements: varargs[untyped]): untyped =
result = nnkStmtList.newTree()
do_sequentially(1):
do: echo "Foo"
do: echo "Bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment