Skip to content

Instantly share code, notes, and snippets.

@fracek
Created June 30, 2014 11:06
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 fracek/701bd03d8aa6563cdc36 to your computer and use it in GitHub Desktop.
Save fracek/701bd03d8aa6563cdc36 to your computer and use it in GitHub Desktop.
define traced macro gen-bind
{ gen-bind(?:name; ?identifier:name => ?dylan-identifier:name ?:*) }
=> { if (?dylan-identifier)
//?name ## "$" ## ?identifier ## "-setter"(?dylan-identifier, opts);
format-out("DYLAN %=\n", ?dylan-identifier);
end if }
{ gen-bind(?:name; ?identifier:name ?:*) }
=> { if (?identifier)
//?name ## "$" ## ?identifier ## "-setter"(?identifier, opts);
format-out("YYY %=\n", ?identifier);
end if }
end macro;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment