Added bool type keyword to ETokType, move volatile pos in ESpecifier

volatile can be applied to a function so I moved it there.
This commit is contained in:
Edward R. Gonzalez 2023-11-21 20:04:57 -05:00
parent 3319bfcaa9
commit 6ad0ae97bc
4 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,6 @@ namespace ESpecifier
RValue, RValue,
Static, Static,
Thread_Local, Thread_Local,
Volatile,
Virtual, Virtual,
Const, Const,
Final, Final,

View File

@ -96,6 +96,7 @@ namespace parser
Type_Signed, Type_Signed,
Type_Short, Type_Short,
Type_Long, Type_Long,
Type_bool,
Type_char, Type_char,
Type_int, Type_int,
Type_double, Type_double,
@ -197,6 +198,7 @@ namespace parser
{ sizeof( "signed" ), "signed" }, { sizeof( "signed" ), "signed" },
{ sizeof( "short" ), "short" }, { sizeof( "short" ), "short" },
{ sizeof( "long" ), "long" }, { sizeof( "long" ), "long" },
{ sizeof( "bool" ), "bool" },
{ sizeof( "char" ), "char" }, { sizeof( "char" ), "char" },
{ sizeof( "int" ), "int" }, { sizeof( "int" ), "int" },
{ sizeof( "double" ), "double" }, { sizeof( "double" ), "double" },

View File

@ -17,10 +17,10 @@ Register, register
RValue, && RValue, &&
Static, static Static, static
Thread_Local, thread_local Thread_Local, thread_local
Volatile, volatile
Virtual, virtual Virtual, virtual
Const, const Const, const
Final, final Final, final
NoExceptions, noexcept NoExceptions, noexcept
Override, override Override, override
Pure, = 0 Pure, = 0
Volatile, volatile

1 Invalid INVALID
17 RValue &&
18 Static static
19 Thread_Local thread_local
Volatile volatile
20 Virtual virtual
21 Const const
22 Final final
23 NoExceptions noexcept
24 Override override
25 Pure = 0
26 Volatile volatile

View File

@ -77,10 +77,12 @@ Star, "*"
Statement_End, ";" Statement_End, ";"
StaticAssert, "static_assert" StaticAssert, "static_assert"
String, "__string__" String, "__string__"
Type_Typename, "typename"
Type_Unsigned, "unsigned" Type_Unsigned, "unsigned"
Type_Signed, "signed" Type_Signed, "signed"
Type_Short, "short" Type_Short, "short"
Type_Long, "long" Type_Long, "long"
Type_bool, "bool"
Type_char, "char" Type_char, "char"
Type_int, "int" Type_int, "int"
Type_double, "double" Type_double, "double"

1 Invalid __invalid__
77 Statement_End ;
78 StaticAssert static_assert
79 String __string__
80 Type_Typename typename
81 Type_Unsigned unsigned
82 Type_Signed signed
83 Type_Short short
84 Type_Long long
85 Type_bool bool
86 Type_char char
87 Type_int int
88 Type_double double