aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-09-02 15:56:36 +0100
committergingerBill <bill@gingerbill.org>2018-09-02 15:56:36 +0100
commit220485a2d2cd180e7ff2a15bab66c867c06b05d7 (patch)
tree4b3df1aae33e7b2af9375b1f8e11d8c2b2b88a15 /src/parser.hpp
parenteb274cf31600814b2f808c80d43376b0e9e959f1 (diff)
`typeid` as keyword (ready to implement polymorphic name parameters)
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 0cc77d2cc..c4c161864 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -418,6 +418,10 @@ AST_KIND(_DeclEnd, "", bool) \
Ast *list; \
}) \
AST_KIND(_TypeBegin, "", bool) \
+ AST_KIND(TypeidType, "typeid", struct { \
+ Token token; \
+ Ast *specialization; \
+ }) \
AST_KIND(TypeType, "type", struct { \
Token token; \
Ast *specialization; \