Skip to content

Instantly share code, notes, and snippets.

import macros,options
type C = ref object
c: int
macro until(cond,node,body:untyped):untyped =
# Example implementation, just to prove it's possible
# Generates:
# for raw in b:
# if cond(raw): break