Last active
August 29, 2015 14:07
-
-
Save disnet/b0a2858710bf0dec93e4 to your computer and use it in GitHub Desktop.
import macros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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