Skip to content

Instantly share code, notes, and snippets.

@disnet
Last active August 29, 2015 14:07
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 disnet/b0a2858710bf0dec93e4 to your computer and use it in GitHub Desktop.
Save disnet/b0a2858710bf0dec93e4 to your computer and use it in GitHub Desktop.
import macros
// test.js
#lang "./macros/stxcase.js";
import { m } from "./mod.js";
m(10, 100)
// mod.js
#lang "./macros/stxcase.js";
var eql = function(x, y) { return x === y; }
macro m {
rule {} => { eql }
}
export {
m
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment