mozilla/sweet.js — pull request #228 by andreypopp (2014-01-29 21:31:42+00:00)
Title: Syntax for importing macros from external modules into scope

Heavy WIP. Should be pulled on top of #227, just the latest commit is interesting actually.

Adds "import macros from ..." primitive macro which mimics a part of ES6 module
syntax and brings every exported macro from an external module into scope of the
current module.

At first, I wanted to implement just standard ES6 module syntax but the realized
that there's no way to differentiate between runtime module imports and
compile-time module imports.

Implemented as a primitive macro.