diff --git a/btparser/ast.h b/btparser/ast.h index 6d83a8a..b6512fe 100644 --- a/btparser/ast.h +++ b/btparser/ast.h @@ -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; diff --git a/btparser/keywords.h b/btparser/keywords.h index cdc948c..7a56efb 100644 --- a/btparser/keywords.h +++ b/btparser/keywords.h @@ -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) \ No newline at end of file +DEF_KEYWORD(UINT32) + +DEF_KEYWORD(nullptr) +DEF_KEYWORD(NULL) \ No newline at end of file diff --git a/btparser/operators.h b/btparser/operators.h index c215f0a..eea8bfc 100644 --- a/btparser/operators.h +++ b/btparser/operators.h @@ -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, '!') \ No newline at end of file