added various keywords

This commit is contained in:
mrexodia 2016-09-22 14:19:20 +02:00
parent 4b4cda91cb
commit b33fad74de
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 11 additions and 5 deletions

View File

@ -55,7 +55,7 @@ namespace AST
{
};
class BuiltinVar : public Decl //built-in variable declaration (int x)
class BuiltinVar : public Decl //built-in variable declaration (int x;)
{
Type mType;
string mName;

View File

@ -22,7 +22,9 @@ DEF_KEYWORD(struct)
DEF_KEYWORD(typedef)
DEF_KEYWORD(sizeof)
DEF_KEYWORD(void)
DEF_KEYWORD(union)
DEF_KEYWORD(signed)
DEF_KEYWORD(unsigned)
DEF_KEYWORD(local)
@ -33,6 +35,8 @@ DEF_KEYWORD(false)
DEF_KEYWORD(char)
DEF_KEYWORD(uchar)
DEF_KEYWORD(wchar_t)
DEF_KEYWORD(char16_t)
DEF_KEYWORD(char32_t)
DEF_KEYWORD(byte)
DEF_KEYWORD(ubyte)
@ -59,6 +63,7 @@ DEF_KEYWORD(WORD)
DEF_KEYWORD(DWORD)
DEF_KEYWORD(QWORD)
DEF_KEYWORD(float)
DEF_KEYWORD(double)
DEF_KEYWORD(string)
DEF_KEYWORD(time_t)
@ -72,4 +77,7 @@ DEF_KEYWORD(UQUAD)
DEF_KEYWORD(LONGLONG)
DEF_KEYWORD(ULONG_PTR)
DEF_KEYWORD(VQUAD)
DEF_KEYWORD(UINT32)
DEF_KEYWORD(UINT32)
DEF_KEYWORD(nullptr)
DEF_KEYWORD(NULL)

View File

@ -57,6 +57,4 @@ DEF_OP_SINGLE(op_or, '|')
DEF_OP_SINGLE(lop_le, '<')
DEF_OP_SINGLE(lop_gr, '>')
DEF_OP_SINGLE(lop_not, '!')
DEF_OP_SINGLE(lop_not, '!')