mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 03:23:07 +02:00
added support for namespaces nested inside classes
This commit is contained in:
parent
4e2a3b2bfc
commit
8a42979447
19 changed files with 13018 additions and 13230 deletions
|
@ -1190,36 +1190,15 @@ namespace_name
|
|||
::= identifier_name
|
||||
|
||||
|
||||
--namespace_name
|
||||
-- ::= original_namespace_name
|
||||
-- | namespace_alias
|
||||
|
||||
|
||||
--original_namespace_name
|
||||
-- ::= identifier_name
|
||||
|
||||
|
||||
--namespace_alias
|
||||
-- ::= identifier_token
|
||||
|
||||
|
||||
namespace_definition
|
||||
::= named_namespace_definition
|
||||
| unnamed_namespace_definition
|
||||
|
||||
|
||||
-- In the spec grammar this is broken down into original_namespace_definition and extension_namespace_definition.
|
||||
-- But since we are not tracking identifiers it becomes the same thing, so its simplified here.
|
||||
named_namespace_definition
|
||||
::= original_namespace_definition
|
||||
| extension_namespace_definition
|
||||
|
||||
|
||||
original_namespace_definition
|
||||
::= 'namespace' identifier_name '{' <openscope-ast> declaration_seq_opt '}'
|
||||
/. $Build consumeNamespaceDefinition(true); $EndBuild ./
|
||||
|
||||
|
||||
extension_namespace_definition
|
||||
::= 'namespace' original_namespace_name '{' <openscope-ast> declaration_seq_opt '}'
|
||||
::= 'namespace' namespace_name '{' <openscope-ast> declaration_seq_opt '}'
|
||||
/. $Build consumeNamespaceDefinition(true); $EndBuild ./
|
||||
|
||||
|
||||
|
@ -1228,18 +1207,11 @@ unnamed_namespace_definition
|
|||
/. $Build consumeNamespaceDefinition(false); $EndBuild ./
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
namespace_alias_definition
|
||||
::= 'namespace' identifier_token '=' dcolon_opt nested_name_specifier_opt namespace_name ';'
|
||||
/. $Build consumeNamespaceAliasDefinition(); $EndBuild ./
|
||||
|
||||
|
||||
--qualified_namespace_specifier
|
||||
-- ::= dcolon_opt nested_name_specifier_opt namespace_name
|
||||
|
||||
|
||||
-- make more lenient!
|
||||
-- using_declaration
|
||||
-- ::= 'using' typename_opt dcolon_opt nested_name_specifier unqualified_id_name ';'
|
||||
|
@ -1579,7 +1551,8 @@ member_declaration
|
|||
/. $Build consumeMemberDeclarationQualifiedId(); $EndBuild ./
|
||||
| using_declaration
|
||||
| template_declaration
|
||||
| explicit_specialization -- is this spec?
|
||||
| explicit_specialization -- not spec
|
||||
| namespace_definition -- not spec
|
||||
| visibility_label
|
||||
| ERROR_TOKEN
|
||||
/. $Build consumeDeclarationProblem(); $EndBuild ./
|
||||
|
@ -1840,7 +1813,7 @@ handler
|
|||
exception_declaration
|
||||
::= type_specifier_seq <openscope-ast> declarator
|
||||
/. $Build consumeDeclarationSimple(true); $EndBuild ./
|
||||
| type_specifier_seq <openscope-ast> abstract_declarator -- TODO might need to be abstract_declarator_without_function, might be too lenient, what exactly can you catch?
|
||||
| type_specifier_seq <openscope-ast> abstract_declarator
|
||||
/. $Build consumeDeclarationSimple(true); $EndBuild ./
|
||||
| type_specifier_seq
|
||||
/. $Build consumeDeclarationSimple(false); $EndBuild ./
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -17,26 +17,26 @@ public interface CPPExpressionStatementParsersym {
|
|||
public final static int
|
||||
TK_asm = 62,
|
||||
TK_auto = 49,
|
||||
TK_bool = 15,
|
||||
TK_break = 78,
|
||||
TK_case = 79,
|
||||
TK_bool = 14,
|
||||
TK_break = 77,
|
||||
TK_case = 78,
|
||||
TK_catch = 119,
|
||||
TK_char = 16,
|
||||
TK_char = 15,
|
||||
TK_class = 63,
|
||||
TK_const = 46,
|
||||
TK_const_cast = 32,
|
||||
TK_continue = 80,
|
||||
TK_default = 81,
|
||||
TK_const_cast = 31,
|
||||
TK_continue = 79,
|
||||
TK_default = 80,
|
||||
TK_delete = 64,
|
||||
TK_do = 82,
|
||||
TK_double = 17,
|
||||
TK_dynamic_cast = 33,
|
||||
TK_do = 81,
|
||||
TK_double = 16,
|
||||
TK_dynamic_cast = 32,
|
||||
TK_else = 121,
|
||||
TK_enum = 69,
|
||||
TK_enum = 68,
|
||||
TK_explicit = 50,
|
||||
TK_export = 75,
|
||||
TK_extern = 14,
|
||||
TK_false = 34,
|
||||
TK_export = 82,
|
||||
TK_extern = 17,
|
||||
TK_false = 33,
|
||||
TK_float = 18,
|
||||
TK_for = 83,
|
||||
TK_friend = 51,
|
||||
|
@ -46,38 +46,38 @@ public interface CPPExpressionStatementParsersym {
|
|||
TK_int = 19,
|
||||
TK_long = 20,
|
||||
TK_mutable = 53,
|
||||
TK_namespace = 60,
|
||||
TK_namespace = 57,
|
||||
TK_new = 65,
|
||||
TK_operator = 7,
|
||||
TK_private = 114,
|
||||
TK_protected = 115,
|
||||
TK_public = 116,
|
||||
TK_register = 54,
|
||||
TK_reinterpret_cast = 35,
|
||||
TK_reinterpret_cast = 34,
|
||||
TK_return = 86,
|
||||
TK_short = 21,
|
||||
TK_signed = 22,
|
||||
TK_sizeof = 36,
|
||||
TK_sizeof = 35,
|
||||
TK_static = 55,
|
||||
TK_static_cast = 37,
|
||||
TK_struct = 70,
|
||||
TK_static_cast = 36,
|
||||
TK_struct = 69,
|
||||
TK_switch = 87,
|
||||
TK_template = 31,
|
||||
TK_template = 37,
|
||||
TK_this = 38,
|
||||
TK_throw = 57,
|
||||
TK_try = 76,
|
||||
TK_throw = 58,
|
||||
TK_try = 75,
|
||||
TK_true = 39,
|
||||
TK_typedef = 56,
|
||||
TK_typeid = 40,
|
||||
TK_typename = 10,
|
||||
TK_union = 71,
|
||||
TK_union = 70,
|
||||
TK_unsigned = 23,
|
||||
TK_using = 58,
|
||||
TK_using = 59,
|
||||
TK_virtual = 45,
|
||||
TK_void = 24,
|
||||
TK_volatile = 47,
|
||||
TK_wchar_t = 25,
|
||||
TK_while = 77,
|
||||
TK_while = 76,
|
||||
TK_integer = 41,
|
||||
TK_floating = 42,
|
||||
TK_charconst = 43,
|
||||
|
@ -85,10 +85,10 @@ public interface CPPExpressionStatementParsersym {
|
|||
TK_identifier = 1,
|
||||
TK_Completion = 2,
|
||||
TK_EndOfCompletion = 9,
|
||||
TK_Invalid = 124,
|
||||
TK_Invalid = 123,
|
||||
TK_LeftBracket = 48,
|
||||
TK_LeftParen = 3,
|
||||
TK_LeftBrace = 59,
|
||||
TK_LeftBrace = 60,
|
||||
TK_Dot = 120,
|
||||
TK_DotStar = 96,
|
||||
TK_Arrow = 103,
|
||||
|
@ -116,7 +116,7 @@ public interface CPPExpressionStatementParsersym {
|
|||
TK_AndAnd = 101,
|
||||
TK_OrOr = 102,
|
||||
TK_Question = 117,
|
||||
TK_Colon = 72,
|
||||
TK_Colon = 71,
|
||||
TK_ColonColon = 4,
|
||||
TK_DotDotDot = 95,
|
||||
TK_Assign = 67,
|
||||
|
@ -133,12 +133,11 @@ public interface CPPExpressionStatementParsersym {
|
|||
TK_Comma = 66,
|
||||
TK_zero = 44,
|
||||
TK_RightBracket = 118,
|
||||
TK_RightParen = 73,
|
||||
TK_RightBrace = 68,
|
||||
TK_RightParen = 72,
|
||||
TK_RightBrace = 73,
|
||||
TK_SemiColon = 13,
|
||||
TK_ERROR_TOKEN = 74,
|
||||
TK_original_namespace_name = 122,
|
||||
TK_EOF_TOKEN = 123;
|
||||
TK_EOF_TOKEN = 122;
|
||||
|
||||
public final static String orderedTerminalSymbols[] = {
|
||||
"",
|
||||
|
@ -155,10 +154,10 @@ public interface CPPExpressionStatementParsersym {
|
|||
"Plus",
|
||||
"Minus",
|
||||
"SemiColon",
|
||||
"extern",
|
||||
"bool",
|
||||
"char",
|
||||
"double",
|
||||
"extern",
|
||||
"float",
|
||||
"int",
|
||||
"long",
|
||||
|
@ -172,13 +171,13 @@ public interface CPPExpressionStatementParsersym {
|
|||
"LT",
|
||||
"stringlit",
|
||||
"Bang",
|
||||
"template",
|
||||
"const_cast",
|
||||
"dynamic_cast",
|
||||
"false",
|
||||
"reinterpret_cast",
|
||||
"sizeof",
|
||||
"static_cast",
|
||||
"template",
|
||||
"this",
|
||||
"true",
|
||||
"typeid",
|
||||
|
@ -198,10 +197,10 @@ public interface CPPExpressionStatementParsersym {
|
|||
"register",
|
||||
"static",
|
||||
"typedef",
|
||||
"namespace",
|
||||
"throw",
|
||||
"using",
|
||||
"LeftBrace",
|
||||
"namespace",
|
||||
"GT",
|
||||
"asm",
|
||||
"class",
|
||||
|
@ -209,14 +208,13 @@ public interface CPPExpressionStatementParsersym {
|
|||
"new",
|
||||
"Comma",
|
||||
"Assign",
|
||||
"RightBrace",
|
||||
"enum",
|
||||
"struct",
|
||||
"union",
|
||||
"Colon",
|
||||
"RightParen",
|
||||
"RightBrace",
|
||||
"ERROR_TOKEN",
|
||||
"export",
|
||||
"try",
|
||||
"while",
|
||||
"break",
|
||||
|
@ -224,6 +222,7 @@ public interface CPPExpressionStatementParsersym {
|
|||
"continue",
|
||||
"default",
|
||||
"do",
|
||||
"export",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
|
@ -263,7 +262,6 @@ public interface CPPExpressionStatementParsersym {
|
|||
"catch",
|
||||
"Dot",
|
||||
"else",
|
||||
"original_namespace_name",
|
||||
"EOF_TOKEN",
|
||||
"Invalid"
|
||||
};
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -17,26 +17,26 @@ public interface CPPNoCastExpressionParsersym {
|
|||
public final static int
|
||||
TK_asm = 62,
|
||||
TK_auto = 49,
|
||||
TK_bool = 15,
|
||||
TK_break = 78,
|
||||
TK_case = 79,
|
||||
TK_bool = 14,
|
||||
TK_break = 77,
|
||||
TK_case = 78,
|
||||
TK_catch = 119,
|
||||
TK_char = 16,
|
||||
TK_char = 15,
|
||||
TK_class = 63,
|
||||
TK_const = 46,
|
||||
TK_const_cast = 32,
|
||||
TK_continue = 80,
|
||||
TK_default = 81,
|
||||
TK_const_cast = 31,
|
||||
TK_continue = 79,
|
||||
TK_default = 80,
|
||||
TK_delete = 64,
|
||||
TK_do = 82,
|
||||
TK_double = 17,
|
||||
TK_dynamic_cast = 33,
|
||||
TK_do = 81,
|
||||
TK_double = 16,
|
||||
TK_dynamic_cast = 32,
|
||||
TK_else = 122,
|
||||
TK_enum = 69,
|
||||
TK_enum = 68,
|
||||
TK_explicit = 50,
|
||||
TK_export = 75,
|
||||
TK_extern = 14,
|
||||
TK_false = 34,
|
||||
TK_export = 82,
|
||||
TK_extern = 17,
|
||||
TK_false = 33,
|
||||
TK_float = 18,
|
||||
TK_for = 83,
|
||||
TK_friend = 51,
|
||||
|
@ -46,38 +46,38 @@ public interface CPPNoCastExpressionParsersym {
|
|||
TK_int = 19,
|
||||
TK_long = 20,
|
||||
TK_mutable = 53,
|
||||
TK_namespace = 60,
|
||||
TK_namespace = 57,
|
||||
TK_new = 65,
|
||||
TK_operator = 7,
|
||||
TK_private = 114,
|
||||
TK_protected = 115,
|
||||
TK_public = 116,
|
||||
TK_register = 54,
|
||||
TK_reinterpret_cast = 35,
|
||||
TK_reinterpret_cast = 34,
|
||||
TK_return = 86,
|
||||
TK_short = 21,
|
||||
TK_signed = 22,
|
||||
TK_sizeof = 36,
|
||||
TK_sizeof = 35,
|
||||
TK_static = 55,
|
||||
TK_static_cast = 37,
|
||||
TK_struct = 70,
|
||||
TK_static_cast = 36,
|
||||
TK_struct = 69,
|
||||
TK_switch = 87,
|
||||
TK_template = 31,
|
||||
TK_template = 37,
|
||||
TK_this = 38,
|
||||
TK_throw = 57,
|
||||
TK_try = 76,
|
||||
TK_throw = 58,
|
||||
TK_try = 75,
|
||||
TK_true = 39,
|
||||
TK_typedef = 56,
|
||||
TK_typeid = 40,
|
||||
TK_typename = 10,
|
||||
TK_union = 71,
|
||||
TK_union = 70,
|
||||
TK_unsigned = 23,
|
||||
TK_using = 58,
|
||||
TK_using = 59,
|
||||
TK_virtual = 45,
|
||||
TK_void = 24,
|
||||
TK_volatile = 47,
|
||||
TK_wchar_t = 25,
|
||||
TK_while = 77,
|
||||
TK_while = 76,
|
||||
TK_integer = 41,
|
||||
TK_floating = 42,
|
||||
TK_charconst = 43,
|
||||
|
@ -85,10 +85,10 @@ public interface CPPNoCastExpressionParsersym {
|
|||
TK_identifier = 1,
|
||||
TK_Completion = 2,
|
||||
TK_EndOfCompletion = 9,
|
||||
TK_Invalid = 124,
|
||||
TK_Invalid = 123,
|
||||
TK_LeftBracket = 48,
|
||||
TK_LeftParen = 3,
|
||||
TK_LeftBrace = 59,
|
||||
TK_LeftBrace = 60,
|
||||
TK_Dot = 120,
|
||||
TK_DotStar = 96,
|
||||
TK_Arrow = 103,
|
||||
|
@ -116,7 +116,7 @@ public interface CPPNoCastExpressionParsersym {
|
|||
TK_AndAnd = 101,
|
||||
TK_OrOr = 102,
|
||||
TK_Question = 117,
|
||||
TK_Colon = 72,
|
||||
TK_Colon = 71,
|
||||
TK_ColonColon = 4,
|
||||
TK_DotDotDot = 95,
|
||||
TK_Assign = 67,
|
||||
|
@ -133,11 +133,10 @@ public interface CPPNoCastExpressionParsersym {
|
|||
TK_Comma = 66,
|
||||
TK_zero = 44,
|
||||
TK_RightBracket = 118,
|
||||
TK_RightParen = 73,
|
||||
TK_RightBrace = 68,
|
||||
TK_RightParen = 72,
|
||||
TK_RightBrace = 73,
|
||||
TK_SemiColon = 13,
|
||||
TK_ERROR_TOKEN = 74,
|
||||
TK_original_namespace_name = 123,
|
||||
TK_EOF_TOKEN = 121;
|
||||
|
||||
public final static String orderedTerminalSymbols[] = {
|
||||
|
@ -155,10 +154,10 @@ public interface CPPNoCastExpressionParsersym {
|
|||
"Plus",
|
||||
"Minus",
|
||||
"SemiColon",
|
||||
"extern",
|
||||
"bool",
|
||||
"char",
|
||||
"double",
|
||||
"extern",
|
||||
"float",
|
||||
"int",
|
||||
"long",
|
||||
|
@ -172,13 +171,13 @@ public interface CPPNoCastExpressionParsersym {
|
|||
"LT",
|
||||
"stringlit",
|
||||
"Bang",
|
||||
"template",
|
||||
"const_cast",
|
||||
"dynamic_cast",
|
||||
"false",
|
||||
"reinterpret_cast",
|
||||
"sizeof",
|
||||
"static_cast",
|
||||
"template",
|
||||
"this",
|
||||
"true",
|
||||
"typeid",
|
||||
|
@ -198,10 +197,10 @@ public interface CPPNoCastExpressionParsersym {
|
|||
"register",
|
||||
"static",
|
||||
"typedef",
|
||||
"namespace",
|
||||
"throw",
|
||||
"using",
|
||||
"LeftBrace",
|
||||
"namespace",
|
||||
"GT",
|
||||
"asm",
|
||||
"class",
|
||||
|
@ -209,14 +208,13 @@ public interface CPPNoCastExpressionParsersym {
|
|||
"new",
|
||||
"Comma",
|
||||
"Assign",
|
||||
"RightBrace",
|
||||
"enum",
|
||||
"struct",
|
||||
"union",
|
||||
"Colon",
|
||||
"RightParen",
|
||||
"RightBrace",
|
||||
"ERROR_TOKEN",
|
||||
"export",
|
||||
"try",
|
||||
"while",
|
||||
"break",
|
||||
|
@ -224,6 +222,7 @@ public interface CPPNoCastExpressionParsersym {
|
|||
"continue",
|
||||
"default",
|
||||
"do",
|
||||
"export",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
|
@ -264,7 +263,6 @@ public interface CPPNoCastExpressionParsersym {
|
|||
"Dot",
|
||||
"EOF_TOKEN",
|
||||
"else",
|
||||
"original_namespace_name",
|
||||
"Invalid"
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -18,24 +18,24 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
TK_asm = 62,
|
||||
TK_auto = 49,
|
||||
TK_bool = 15,
|
||||
TK_break = 78,
|
||||
TK_case = 79,
|
||||
TK_break = 77,
|
||||
TK_case = 78,
|
||||
TK_catch = 119,
|
||||
TK_char = 16,
|
||||
TK_class = 63,
|
||||
TK_const = 46,
|
||||
TK_const_cast = 32,
|
||||
TK_continue = 80,
|
||||
TK_default = 81,
|
||||
TK_continue = 79,
|
||||
TK_default = 80,
|
||||
TK_delete = 65,
|
||||
TK_do = 82,
|
||||
TK_do = 81,
|
||||
TK_double = 17,
|
||||
TK_dynamic_cast = 33,
|
||||
TK_else = 122,
|
||||
TK_enum = 69,
|
||||
TK_enum = 68,
|
||||
TK_explicit = 50,
|
||||
TK_export = 75,
|
||||
TK_extern = 12,
|
||||
TK_export = 82,
|
||||
TK_extern = 14,
|
||||
TK_false = 34,
|
||||
TK_float = 18,
|
||||
TK_for = 83,
|
||||
|
@ -46,7 +46,7 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
TK_int = 19,
|
||||
TK_long = 20,
|
||||
TK_mutable = 53,
|
||||
TK_namespace = 59,
|
||||
TK_namespace = 57,
|
||||
TK_new = 66,
|
||||
TK_operator = 7,
|
||||
TK_private = 114,
|
||||
|
@ -60,24 +60,24 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
TK_sizeof = 36,
|
||||
TK_static = 55,
|
||||
TK_static_cast = 37,
|
||||
TK_struct = 70,
|
||||
TK_struct = 69,
|
||||
TK_switch = 87,
|
||||
TK_template = 30,
|
||||
TK_template = 31,
|
||||
TK_this = 38,
|
||||
TK_throw = 60,
|
||||
TK_try = 76,
|
||||
TK_throw = 58,
|
||||
TK_try = 75,
|
||||
TK_true = 39,
|
||||
TK_typedef = 56,
|
||||
TK_typeid = 40,
|
||||
TK_typename = 10,
|
||||
TK_union = 71,
|
||||
TK_union = 70,
|
||||
TK_unsigned = 23,
|
||||
TK_using = 57,
|
||||
TK_using = 59,
|
||||
TK_virtual = 41,
|
||||
TK_void = 24,
|
||||
TK_volatile = 47,
|
||||
TK_wchar_t = 25,
|
||||
TK_while = 77,
|
||||
TK_while = 76,
|
||||
TK_integer = 42,
|
||||
TK_floating = 43,
|
||||
TK_charconst = 44,
|
||||
|
@ -85,10 +85,10 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
TK_identifier = 1,
|
||||
TK_Completion = 2,
|
||||
TK_EndOfCompletion = 9,
|
||||
TK_Invalid = 124,
|
||||
TK_Invalid = 123,
|
||||
TK_LeftBracket = 48,
|
||||
TK_LeftParen = 3,
|
||||
TK_LeftBrace = 58,
|
||||
TK_LeftBrace = 60,
|
||||
TK_Dot = 120,
|
||||
TK_DotStar = 96,
|
||||
TK_Arrow = 103,
|
||||
|
@ -97,10 +97,10 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
TK_MinusMinus = 27,
|
||||
TK_And = 8,
|
||||
TK_Star = 6,
|
||||
TK_Plus = 13,
|
||||
TK_Minus = 14,
|
||||
TK_Plus = 11,
|
||||
TK_Minus = 12,
|
||||
TK_Tilde = 5,
|
||||
TK_Bang = 31,
|
||||
TK_Bang = 30,
|
||||
TK_Slash = 91,
|
||||
TK_Percent = 92,
|
||||
TK_RightShift = 88,
|
||||
|
@ -116,7 +116,7 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
TK_AndAnd = 101,
|
||||
TK_OrOr = 102,
|
||||
TK_Question = 117,
|
||||
TK_Colon = 72,
|
||||
TK_Colon = 71,
|
||||
TK_ColonColon = 4,
|
||||
TK_DotDotDot = 95,
|
||||
TK_Assign = 67,
|
||||
|
@ -133,11 +133,10 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
TK_Comma = 64,
|
||||
TK_zero = 45,
|
||||
TK_RightBracket = 118,
|
||||
TK_RightParen = 73,
|
||||
TK_RightBrace = 68,
|
||||
TK_SemiColon = 11,
|
||||
TK_RightParen = 72,
|
||||
TK_RightBrace = 73,
|
||||
TK_SemiColon = 13,
|
||||
TK_ERROR_TOKEN = 74,
|
||||
TK_original_namespace_name = 123,
|
||||
TK_EOF_TOKEN = 121;
|
||||
|
||||
public final static String orderedTerminalSymbols[] = {
|
||||
|
@ -152,10 +151,10 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
"And",
|
||||
"EndOfCompletion",
|
||||
"typename",
|
||||
"SemiColon",
|
||||
"extern",
|
||||
"Plus",
|
||||
"Minus",
|
||||
"SemiColon",
|
||||
"extern",
|
||||
"bool",
|
||||
"char",
|
||||
"double",
|
||||
|
@ -171,8 +170,8 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
"MinusMinus",
|
||||
"LT",
|
||||
"stringlit",
|
||||
"template",
|
||||
"Bang",
|
||||
"template",
|
||||
"const_cast",
|
||||
"dynamic_cast",
|
||||
"false",
|
||||
|
@ -198,10 +197,10 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
"register",
|
||||
"static",
|
||||
"typedef",
|
||||
"using",
|
||||
"LeftBrace",
|
||||
"namespace",
|
||||
"throw",
|
||||
"using",
|
||||
"LeftBrace",
|
||||
"GT",
|
||||
"asm",
|
||||
"class",
|
||||
|
@ -209,14 +208,13 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
"delete",
|
||||
"new",
|
||||
"Assign",
|
||||
"RightBrace",
|
||||
"enum",
|
||||
"struct",
|
||||
"union",
|
||||
"Colon",
|
||||
"RightParen",
|
||||
"RightBrace",
|
||||
"ERROR_TOKEN",
|
||||
"export",
|
||||
"try",
|
||||
"while",
|
||||
"break",
|
||||
|
@ -224,6 +222,7 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
"continue",
|
||||
"default",
|
||||
"do",
|
||||
"export",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
|
@ -264,7 +263,6 @@ public interface CPPNoFunctionDeclaratorParsersym {
|
|||
"Dot",
|
||||
"EOF_TOKEN",
|
||||
"else",
|
||||
"original_namespace_name",
|
||||
"Invalid"
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -22,7 +22,7 @@ public interface CPPParsersym {
|
|||
TK_case = 79,
|
||||
TK_catch = 119,
|
||||
TK_char = 14,
|
||||
TK_class = 61,
|
||||
TK_class = 60,
|
||||
TK_const = 33,
|
||||
TK_const_cast = 36,
|
||||
TK_continue = 80,
|
||||
|
@ -46,7 +46,7 @@ public interface CPPParsersym {
|
|||
TK_int = 17,
|
||||
TK_long = 18,
|
||||
TK_mutable = 42,
|
||||
TK_namespace = 58,
|
||||
TK_namespace = 56,
|
||||
TK_new = 67,
|
||||
TK_operator = 7,
|
||||
TK_private = 114,
|
||||
|
@ -64,7 +64,7 @@ public interface CPPParsersym {
|
|||
TK_switch = 87,
|
||||
TK_template = 29,
|
||||
TK_this = 48,
|
||||
TK_throw = 62,
|
||||
TK_throw = 61,
|
||||
TK_try = 76,
|
||||
TK_true = 49,
|
||||
TK_typedef = 50,
|
||||
|
@ -72,7 +72,7 @@ public interface CPPParsersym {
|
|||
TK_typename = 10,
|
||||
TK_union = 69,
|
||||
TK_unsigned = 21,
|
||||
TK_using = 56,
|
||||
TK_using = 58,
|
||||
TK_virtual = 31,
|
||||
TK_void = 22,
|
||||
TK_volatile = 34,
|
||||
|
@ -85,10 +85,10 @@ public interface CPPParsersym {
|
|||
TK_identifier = 1,
|
||||
TK_Completion = 2,
|
||||
TK_EndOfCompletion = 9,
|
||||
TK_Invalid = 124,
|
||||
TK_Invalid = 123,
|
||||
TK_LeftBracket = 57,
|
||||
TK_LeftParen = 3,
|
||||
TK_LeftBrace = 60,
|
||||
TK_LeftBrace = 62,
|
||||
TK_Dot = 120,
|
||||
TK_DotStar = 96,
|
||||
TK_Arrow = 103,
|
||||
|
@ -116,7 +116,7 @@ public interface CPPParsersym {
|
|||
TK_AndAnd = 101,
|
||||
TK_OrOr = 102,
|
||||
TK_Question = 117,
|
||||
TK_Colon = 72,
|
||||
TK_Colon = 71,
|
||||
TK_ColonColon = 4,
|
||||
TK_DotDotDot = 95,
|
||||
TK_Assign = 70,
|
||||
|
@ -133,11 +133,10 @@ public interface CPPParsersym {
|
|||
TK_Comma = 64,
|
||||
TK_zero = 55,
|
||||
TK_RightBracket = 118,
|
||||
TK_RightParen = 73,
|
||||
TK_RightBrace = 71,
|
||||
TK_RightParen = 72,
|
||||
TK_RightBrace = 73,
|
||||
TK_SemiColon = 11,
|
||||
TK_ERROR_TOKEN = 74,
|
||||
TK_original_namespace_name = 123,
|
||||
TK_EOF_TOKEN = 121;
|
||||
|
||||
public final static String orderedTerminalSymbols[] = {
|
||||
|
@ -197,13 +196,13 @@ public interface CPPParsersym {
|
|||
"floating",
|
||||
"charconst",
|
||||
"zero",
|
||||
"using",
|
||||
"LeftBracket",
|
||||
"namespace",
|
||||
"LeftBracket",
|
||||
"using",
|
||||
"asm",
|
||||
"LeftBrace",
|
||||
"class",
|
||||
"throw",
|
||||
"LeftBrace",
|
||||
"GT",
|
||||
"Comma",
|
||||
"delete",
|
||||
|
@ -212,9 +211,9 @@ public interface CPPParsersym {
|
|||
"struct",
|
||||
"union",
|
||||
"Assign",
|
||||
"RightBrace",
|
||||
"Colon",
|
||||
"RightParen",
|
||||
"RightBrace",
|
||||
"ERROR_TOKEN",
|
||||
"export",
|
||||
"try",
|
||||
|
@ -264,7 +263,6 @@ public interface CPPParsersym {
|
|||
"Dot",
|
||||
"EOF_TOKEN",
|
||||
"else",
|
||||
"original_namespace_name",
|
||||
"Invalid"
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -17,26 +17,26 @@ public interface CPPSizeofExpressionParsersym {
|
|||
public final static int
|
||||
TK_asm = 62,
|
||||
TK_auto = 49,
|
||||
TK_bool = 15,
|
||||
TK_break = 78,
|
||||
TK_case = 79,
|
||||
TK_bool = 14,
|
||||
TK_break = 77,
|
||||
TK_case = 78,
|
||||
TK_catch = 119,
|
||||
TK_char = 16,
|
||||
TK_char = 15,
|
||||
TK_class = 63,
|
||||
TK_const = 46,
|
||||
TK_const_cast = 32,
|
||||
TK_continue = 80,
|
||||
TK_default = 81,
|
||||
TK_const_cast = 31,
|
||||
TK_continue = 79,
|
||||
TK_default = 80,
|
||||
TK_delete = 64,
|
||||
TK_do = 82,
|
||||
TK_double = 17,
|
||||
TK_dynamic_cast = 33,
|
||||
TK_do = 81,
|
||||
TK_double = 16,
|
||||
TK_dynamic_cast = 32,
|
||||
TK_else = 122,
|
||||
TK_enum = 69,
|
||||
TK_enum = 68,
|
||||
TK_explicit = 50,
|
||||
TK_export = 75,
|
||||
TK_extern = 14,
|
||||
TK_false = 34,
|
||||
TK_export = 82,
|
||||
TK_extern = 17,
|
||||
TK_false = 33,
|
||||
TK_float = 18,
|
||||
TK_for = 83,
|
||||
TK_friend = 51,
|
||||
|
@ -46,38 +46,38 @@ public interface CPPSizeofExpressionParsersym {
|
|||
TK_int = 19,
|
||||
TK_long = 20,
|
||||
TK_mutable = 53,
|
||||
TK_namespace = 60,
|
||||
TK_namespace = 57,
|
||||
TK_new = 65,
|
||||
TK_operator = 7,
|
||||
TK_private = 114,
|
||||
TK_protected = 115,
|
||||
TK_public = 116,
|
||||
TK_register = 54,
|
||||
TK_reinterpret_cast = 35,
|
||||
TK_reinterpret_cast = 34,
|
||||
TK_return = 86,
|
||||
TK_short = 21,
|
||||
TK_signed = 22,
|
||||
TK_sizeof = 36,
|
||||
TK_sizeof = 35,
|
||||
TK_static = 55,
|
||||
TK_static_cast = 37,
|
||||
TK_struct = 70,
|
||||
TK_static_cast = 36,
|
||||
TK_struct = 69,
|
||||
TK_switch = 87,
|
||||
TK_template = 31,
|
||||
TK_template = 37,
|
||||
TK_this = 38,
|
||||
TK_throw = 57,
|
||||
TK_try = 76,
|
||||
TK_throw = 58,
|
||||
TK_try = 75,
|
||||
TK_true = 39,
|
||||
TK_typedef = 56,
|
||||
TK_typeid = 40,
|
||||
TK_typename = 10,
|
||||
TK_union = 71,
|
||||
TK_union = 70,
|
||||
TK_unsigned = 23,
|
||||
TK_using = 58,
|
||||
TK_using = 59,
|
||||
TK_virtual = 45,
|
||||
TK_void = 24,
|
||||
TK_volatile = 47,
|
||||
TK_wchar_t = 25,
|
||||
TK_while = 77,
|
||||
TK_while = 76,
|
||||
TK_integer = 41,
|
||||
TK_floating = 42,
|
||||
TK_charconst = 43,
|
||||
|
@ -85,10 +85,10 @@ public interface CPPSizeofExpressionParsersym {
|
|||
TK_identifier = 1,
|
||||
TK_Completion = 2,
|
||||
TK_EndOfCompletion = 9,
|
||||
TK_Invalid = 124,
|
||||
TK_Invalid = 123,
|
||||
TK_LeftBracket = 48,
|
||||
TK_LeftParen = 3,
|
||||
TK_LeftBrace = 59,
|
||||
TK_LeftBrace = 60,
|
||||
TK_Dot = 120,
|
||||
TK_DotStar = 96,
|
||||
TK_Arrow = 103,
|
||||
|
@ -116,7 +116,7 @@ public interface CPPSizeofExpressionParsersym {
|
|||
TK_AndAnd = 101,
|
||||
TK_OrOr = 102,
|
||||
TK_Question = 117,
|
||||
TK_Colon = 72,
|
||||
TK_Colon = 71,
|
||||
TK_ColonColon = 4,
|
||||
TK_DotDotDot = 95,
|
||||
TK_Assign = 67,
|
||||
|
@ -133,11 +133,10 @@ public interface CPPSizeofExpressionParsersym {
|
|||
TK_Comma = 66,
|
||||
TK_zero = 44,
|
||||
TK_RightBracket = 118,
|
||||
TK_RightParen = 73,
|
||||
TK_RightBrace = 68,
|
||||
TK_RightParen = 72,
|
||||
TK_RightBrace = 73,
|
||||
TK_SemiColon = 13,
|
||||
TK_ERROR_TOKEN = 74,
|
||||
TK_original_namespace_name = 123,
|
||||
TK_EOF_TOKEN = 121;
|
||||
|
||||
public final static String orderedTerminalSymbols[] = {
|
||||
|
@ -155,10 +154,10 @@ public interface CPPSizeofExpressionParsersym {
|
|||
"Plus",
|
||||
"Minus",
|
||||
"SemiColon",
|
||||
"extern",
|
||||
"bool",
|
||||
"char",
|
||||
"double",
|
||||
"extern",
|
||||
"float",
|
||||
"int",
|
||||
"long",
|
||||
|
@ -172,13 +171,13 @@ public interface CPPSizeofExpressionParsersym {
|
|||
"LT",
|
||||
"stringlit",
|
||||
"Bang",
|
||||
"template",
|
||||
"const_cast",
|
||||
"dynamic_cast",
|
||||
"false",
|
||||
"reinterpret_cast",
|
||||
"sizeof",
|
||||
"static_cast",
|
||||
"template",
|
||||
"this",
|
||||
"true",
|
||||
"typeid",
|
||||
|
@ -198,10 +197,10 @@ public interface CPPSizeofExpressionParsersym {
|
|||
"register",
|
||||
"static",
|
||||
"typedef",
|
||||
"namespace",
|
||||
"throw",
|
||||
"using",
|
||||
"LeftBrace",
|
||||
"namespace",
|
||||
"GT",
|
||||
"asm",
|
||||
"class",
|
||||
|
@ -209,14 +208,13 @@ public interface CPPSizeofExpressionParsersym {
|
|||
"new",
|
||||
"Comma",
|
||||
"Assign",
|
||||
"RightBrace",
|
||||
"enum",
|
||||
"struct",
|
||||
"union",
|
||||
"Colon",
|
||||
"RightParen",
|
||||
"RightBrace",
|
||||
"ERROR_TOKEN",
|
||||
"export",
|
||||
"try",
|
||||
"while",
|
||||
"break",
|
||||
|
@ -224,6 +222,7 @@ public interface CPPSizeofExpressionParsersym {
|
|||
"continue",
|
||||
"default",
|
||||
"do",
|
||||
"export",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
|
@ -264,7 +263,6 @@ public interface CPPSizeofExpressionParsersym {
|
|||
"Dot",
|
||||
"EOF_TOKEN",
|
||||
"else",
|
||||
"original_namespace_name",
|
||||
"Invalid"
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -15,27 +15,27 @@ package org.eclipse.cdt.internal.core.dom.lrparser.cpp;
|
|||
|
||||
public interface CPPTemplateTypeParameterParsersym {
|
||||
public final static int
|
||||
TK_asm = 62,
|
||||
TK_asm = 63,
|
||||
TK_auto = 49,
|
||||
TK_bool = 15,
|
||||
TK_break = 78,
|
||||
TK_case = 79,
|
||||
TK_break = 77,
|
||||
TK_case = 78,
|
||||
TK_catch = 119,
|
||||
TK_char = 16,
|
||||
TK_class = 63,
|
||||
TK_class = 62,
|
||||
TK_const = 46,
|
||||
TK_const_cast = 32,
|
||||
TK_continue = 80,
|
||||
TK_default = 81,
|
||||
TK_continue = 79,
|
||||
TK_default = 80,
|
||||
TK_delete = 65,
|
||||
TK_do = 82,
|
||||
TK_do = 81,
|
||||
TK_double = 17,
|
||||
TK_dynamic_cast = 33,
|
||||
TK_else = 122,
|
||||
TK_enum = 69,
|
||||
TK_enum = 68,
|
||||
TK_explicit = 50,
|
||||
TK_export = 75,
|
||||
TK_extern = 12,
|
||||
TK_export = 82,
|
||||
TK_extern = 14,
|
||||
TK_false = 34,
|
||||
TK_float = 18,
|
||||
TK_for = 83,
|
||||
|
@ -46,7 +46,7 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
TK_int = 19,
|
||||
TK_long = 20,
|
||||
TK_mutable = 53,
|
||||
TK_namespace = 59,
|
||||
TK_namespace = 57,
|
||||
TK_new = 66,
|
||||
TK_operator = 7,
|
||||
TK_private = 114,
|
||||
|
@ -60,35 +60,35 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
TK_sizeof = 36,
|
||||
TK_static = 55,
|
||||
TK_static_cast = 37,
|
||||
TK_struct = 70,
|
||||
TK_struct = 69,
|
||||
TK_switch = 87,
|
||||
TK_template = 29,
|
||||
TK_template = 30,
|
||||
TK_this = 38,
|
||||
TK_throw = 60,
|
||||
TK_try = 76,
|
||||
TK_throw = 58,
|
||||
TK_try = 75,
|
||||
TK_true = 39,
|
||||
TK_typedef = 56,
|
||||
TK_typeid = 40,
|
||||
TK_typename = 10,
|
||||
TK_union = 71,
|
||||
TK_union = 70,
|
||||
TK_unsigned = 23,
|
||||
TK_using = 57,
|
||||
TK_using = 59,
|
||||
TK_virtual = 41,
|
||||
TK_void = 24,
|
||||
TK_volatile = 47,
|
||||
TK_wchar_t = 25,
|
||||
TK_while = 77,
|
||||
TK_while = 76,
|
||||
TK_integer = 42,
|
||||
TK_floating = 43,
|
||||
TK_charconst = 44,
|
||||
TK_stringlit = 30,
|
||||
TK_stringlit = 29,
|
||||
TK_identifier = 1,
|
||||
TK_Completion = 2,
|
||||
TK_EndOfCompletion = 9,
|
||||
TK_Invalid = 124,
|
||||
TK_Invalid = 123,
|
||||
TK_LeftBracket = 48,
|
||||
TK_LeftParen = 3,
|
||||
TK_LeftBrace = 58,
|
||||
TK_LeftBrace = 60,
|
||||
TK_Dot = 120,
|
||||
TK_DotStar = 96,
|
||||
TK_Arrow = 103,
|
||||
|
@ -97,8 +97,8 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
TK_MinusMinus = 27,
|
||||
TK_And = 8,
|
||||
TK_Star = 6,
|
||||
TK_Plus = 13,
|
||||
TK_Minus = 14,
|
||||
TK_Plus = 11,
|
||||
TK_Minus = 12,
|
||||
TK_Tilde = 5,
|
||||
TK_Bang = 31,
|
||||
TK_Slash = 91,
|
||||
|
@ -116,7 +116,7 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
TK_AndAnd = 101,
|
||||
TK_OrOr = 102,
|
||||
TK_Question = 117,
|
||||
TK_Colon = 72,
|
||||
TK_Colon = 71,
|
||||
TK_ColonColon = 4,
|
||||
TK_DotDotDot = 95,
|
||||
TK_Assign = 67,
|
||||
|
@ -133,11 +133,10 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
TK_Comma = 64,
|
||||
TK_zero = 45,
|
||||
TK_RightBracket = 118,
|
||||
TK_RightParen = 73,
|
||||
TK_RightBrace = 68,
|
||||
TK_SemiColon = 11,
|
||||
TK_RightParen = 72,
|
||||
TK_RightBrace = 73,
|
||||
TK_SemiColon = 13,
|
||||
TK_ERROR_TOKEN = 74,
|
||||
TK_original_namespace_name = 123,
|
||||
TK_EOF_TOKEN = 121;
|
||||
|
||||
public final static String orderedTerminalSymbols[] = {
|
||||
|
@ -152,10 +151,10 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
"And",
|
||||
"EndOfCompletion",
|
||||
"typename",
|
||||
"SemiColon",
|
||||
"extern",
|
||||
"Plus",
|
||||
"Minus",
|
||||
"SemiColon",
|
||||
"extern",
|
||||
"bool",
|
||||
"char",
|
||||
"double",
|
||||
|
@ -170,8 +169,8 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
"PlusPlus",
|
||||
"MinusMinus",
|
||||
"LT",
|
||||
"template",
|
||||
"stringlit",
|
||||
"template",
|
||||
"Bang",
|
||||
"const_cast",
|
||||
"dynamic_cast",
|
||||
|
@ -198,25 +197,24 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
"register",
|
||||
"static",
|
||||
"typedef",
|
||||
"using",
|
||||
"LeftBrace",
|
||||
"namespace",
|
||||
"throw",
|
||||
"using",
|
||||
"LeftBrace",
|
||||
"GT",
|
||||
"asm",
|
||||
"class",
|
||||
"asm",
|
||||
"Comma",
|
||||
"delete",
|
||||
"new",
|
||||
"Assign",
|
||||
"RightBrace",
|
||||
"enum",
|
||||
"struct",
|
||||
"union",
|
||||
"Colon",
|
||||
"RightParen",
|
||||
"RightBrace",
|
||||
"ERROR_TOKEN",
|
||||
"export",
|
||||
"try",
|
||||
"while",
|
||||
"break",
|
||||
|
@ -224,6 +222,7 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
"continue",
|
||||
"default",
|
||||
"do",
|
||||
"export",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
|
@ -264,7 +263,6 @@ public interface CPPTemplateTypeParameterParsersym {
|
|||
"Dot",
|
||||
"EOF_TOKEN",
|
||||
"else",
|
||||
"original_namespace_name",
|
||||
"Invalid"
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue