diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-12 12:40:36 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-12 12:40:36 +0800 |
commit | 06e7e28cd4de3871f55255150b66821b12365881 (patch) | |
tree | 97d1e22f999ee53845455932a411cc25ca2d9de2 /src/macros.hpp | |
parent | e71fccd80610bc05b0a90338b2b3beb9a0b94c22 (diff) | |
download | mrust-06e7e28cd4de3871f55255150b66821b12365881.tar.gz |
Float parsing, module-level macro expansion
Diffstat (limited to 'src/macros.hpp')
-rw-r--r-- | src/macros.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/macros.hpp b/src/macros.hpp index 74001cae..2938cb93 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -57,6 +57,7 @@ struct MacroPatEnt: PAT_TT,
PAT_IDENT,
PAT_PATH,
+ PAT_TYPE,
PAT_EXPR,
PAT_STMT,
PAT_BLOCK,
@@ -81,7 +82,8 @@ struct MacroPatEnt: {
}
- MacroPatEnt(Token sep, ::std::vector<MacroPatEnt> ents):
+ MacroPatEnt(Token sep, bool need_once, ::std::vector<MacroPatEnt> ents):
+ name( need_once ? "+" : "*" ),
tok(sep),
subpats( move(ents) ),
type(PAT_LOOP)
|