diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-07 11:09:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-07 11:09:38 +0800 |
commit | 30edd863f98df929326f2706c9a2ed32730a225b (patch) | |
tree | 300ada6a6d231ecff9b002b0a09d4866f273cd20 /src/expand/macro_rules.hpp | |
parent | 150a481100bba025bc5132338ae3d37f19de5bfc (diff) | |
download | mrust-30edd863f98df929326f2706c9a2ed32730a225b.tar.gz |
Expand - Start on macro_rules expanding
Diffstat (limited to 'src/expand/macro_rules.hpp')
-rw-r--r-- | src/expand/macro_rules.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/expand/macro_rules.hpp b/src/expand/macro_rules.hpp new file mode 100644 index 00000000..81e9b18a --- /dev/null +++ b/src/expand/macro_rules.hpp @@ -0,0 +1,15 @@ +/** + * Binding header for the macro_rules syntax extension + */ +#pragma once + +#include <synext.hpp> +#include "../macros.hpp" + +namespace AST { + class Expr; + class Module; +} +class TokenTree; + +extern AST::Expr Macro_Invoke(const char* name, const MacroRules& rules, const TokenTree& tt, AST::Module& mod, MacroPosition position); |