Skip to main content

big_code_analysis_ast/languages/
language_cpp.rs

1// See `src/languages/mod.rs` for the rationale behind the per-file
2// pedantic carve-outs below.
3#![allow(clippy::match_same_arms, clippy::too_many_lines)]
4// One variant per grammar kind id, named after the rule; the name is
5// the documentation and there is nothing per-variant to add.
6#![allow(missing_docs)]
7
8// Code generated; DO NOT EDIT.
9
10use num_derive::FromPrimitive;
11
12#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
13pub enum Cpp {
14    End = 0,
15    Identifier = 1,
16    HASHinclude = 2,
17    PreprocIncludeToken2 = 3,
18    HASHdefine = 4,
19    LPAREN = 5,
20    DOTDOTDOT = 6,
21    COMMA = 7,
22    RPAREN = 8,
23    HASHif = 9,
24    LF = 10,
25    HASHendif = 11,
26    HASHifdef = 12,
27    HASHifndef = 13,
28    HASHelse = 14,
29    HASHelif = 15,
30    HASHelifdef = 16,
31    HASHelifndef = 17,
32    PreprocArg = 18,
33    PreprocDirective = 19,
34    LPAREN2 = 20,
35    Defined = 21,
36    BANG = 22,
37    TILDE = 23,
38    DASH = 24,
39    PLUS = 25,
40    STAR = 26,
41    SLASH = 27,
42    PERCENT = 28,
43    PIPEPIPE = 29,
44    AMPAMP = 30,
45    PIPE = 31,
46    CARET = 32,
47    AMP = 33,
48    EQEQ = 34,
49    BANGEQ = 35,
50    GT = 36,
51    GTEQ = 37,
52    LTEQ = 38,
53    LT = 39,
54    LTLT = 40,
55    GTGT = 41,
56    SEMI = 42,
57    Extension = 43,
58    Typedef = 44,
59    Virtual = 45,
60    Extern = 46,
61    Attribute2 = 47,
62    Attribute3 = 48,
63    COLONCOLON = 49,
64    LBRACKLBRACK = 50,
65    RBRACKRBRACK = 51,
66    Declspec = 52,
67    Based = 53,
68    Cdecl = 54,
69    Clrcall = 55,
70    Stdcall = 56,
71    Fastcall = 57,
72    Thiscall = 58,
73    Vectorcall = 59,
74    MsRestrictModifier = 60,
75    MsUnsignedPtrModifier = 61,
76    MsSignedPtrModifier = 62,
77    Unaligned = 63,
78    Unaligned2 = 64,
79    LBRACE = 65,
80    RBRACE = 66,
81    Signed = 67,
82    Unsigned = 68,
83    Long = 69,
84    Short = 70,
85    LBRACK = 71,
86    Static = 72,
87    RBRACK = 73,
88    EQ = 74,
89    Register = 75,
90    Inline = 76,
91    Inline2 = 77,
92    Inline3 = 78,
93    Forceinline = 79,
94    ThreadLocal = 80,
95    Thread = 81,
96    Const = 82,
97    Constexpr = 83,
98    Volatile = 84,
99    Restrict = 85,
100    Restrict2 = 86,
101    Atomic = 87,
102    Noreturn = 88,
103    Noreturn2 = 89,
104    Nonnull = 90,
105    Mutable = 91,
106    Constinit = 92,
107    Consteval = 93,
108    Alignas = 94,
109    Alignas2 = 95,
110    PrimitiveType = 96,
111    Enum = 97,
112    Class = 98,
113    Struct = 99,
114    Union = 100,
115    COLON = 101,
116    If = 102,
117    Else = 103,
118    Switch = 104,
119    Case = 105,
120    Default = 106,
121    While = 107,
122    Do = 108,
123    For = 109,
124    Return = 110,
125    Break = 111,
126    Continue = 112,
127    Goto = 113,
128    Try = 114,
129    Except = 115,
130    Finally = 116,
131    Leave = 117,
132    QMARK = 118,
133    STAREQ = 119,
134    SLASHEQ = 120,
135    PERCENTEQ = 121,
136    PLUSEQ = 122,
137    DASHEQ = 123,
138    LTLTEQ = 124,
139    GTGTEQ = 125,
140    AMPEQ = 126,
141    CARETEQ = 127,
142    PIPEEQ = 128,
143    AndEq = 129,
144    OrEq = 130,
145    XorEq = 131,
146    Not = 132,
147    Compl = 133,
148    LTEQGT = 134,
149    Or = 135,
150    And = 136,
151    Bitor = 137,
152    Xor = 138,
153    Bitand = 139,
154    NotEq = 140,
155    DASHDASH = 141,
156    PLUSPLUS = 142,
157    Sizeof = 143,
158    Alignof = 144,
159    Alignof2 = 145,
160    Alignof3 = 146,
161    Alignof4 = 147,
162    Alignof5 = 148,
163    Offsetof = 149,
164    Generic = 150,
165    Asm = 151,
166    Asm2 = 152,
167    Asm3 = 153,
168    Volatile2 = 154,
169    DOT = 155,
170    DOTSTAR = 156,
171    DASHGT = 157,
172    NumberLiteral = 158,
173    LSQUOTE = 159,
174    USQUOTE = 160,
175    USQUOTE2 = 161,
176    U8SQUOTE = 162,
177    SQUOTE = 163,
178    Character = 164,
179    LDQUOTE = 165,
180    UDQUOTE = 166,
181    UDQUOTE2 = 167,
182    U8DQUOTE = 168,
183    DQUOTE = 169,
184    StringContent = 170,
185    EscapeSequence = 171,
186    SystemLibString = 172,
187    True = 173,
188    False = 174,
189    NULL = 175,
190    Nullptr = 176,
191    Comment = 177,
192    Auto = 178,
193    Decltype3 = 179,
194    Final = 180,
195    Override = 181,
196    Explicit = 182,
197    Typename = 183,
198    Template = 184,
199    GT2 = 185,
200    Operator = 186,
201    Try2 = 187,
202    Delete = 188,
203    PureVirtualClauseToken1 = 189,
204    Friend = 190,
205    Public = 191,
206    Private = 192,
207    Protected = 193,
208    Noexcept2 = 194,
209    Throw = 195,
210    Namespace = 196,
211    Using = 197,
212    StaticAssert = 198,
213    Concept = 199,
214    CoReturn = 200,
215    CoYield = 201,
216    Catch = 202,
217    RDQUOTE = 203,
218    LRDQUOTE = 204,
219    URDQUOTE = 205,
220    URDQUOTE2 = 206,
221    U8RDQUOTE = 207,
222    CoAwait = 208,
223    New = 209,
224    Requires = 210,
225    DASHGTSTAR = 211,
226    LPARENRPAREN = 212,
227    LBRACKRBRACK = 213,
228    DQUOTEDQUOTE = 214,
229    This = 215,
230    LiteralSuffix = 216,
231    RawStringDelimiter = 217,
232    RawStringContent = 218,
233    TranslationUnit = 219,
234    TopLevelItem = 220,
235    BlockItem = 221,
236    PreprocInclude = 222,
237    PreprocDef = 223,
238    PreprocFunctionDef = 224,
239    PreprocParams = 225,
240    PreprocCall = 226,
241    PreprocIf = 227,
242    PreprocIfdef = 228,
243    PreprocElse = 229,
244    PreprocElif = 230,
245    PreprocElifdef = 231,
246    PreprocIf2 = 232,
247    PreprocIfdef2 = 233,
248    PreprocElse2 = 234,
249    PreprocElif2 = 235,
250    PreprocElifdef2 = 236,
251    PreprocIf3 = 237,
252    PreprocIfdef3 = 238,
253    PreprocElse3 = 239,
254    PreprocElif3 = 240,
255    PreprocElifdef3 = 241,
256    PreprocIf4 = 242,
257    PreprocIfdef4 = 243,
258    PreprocElse4 = 244,
259    PreprocElif4 = 245,
260    PreprocElifdef4 = 246,
261    PreprocExpression = 247,
262    ParenthesizedExpression = 248,
263    PreprocDefined = 249,
264    UnaryExpression = 250,
265    CallExpression = 251,
266    ArgumentList = 252,
267    BinaryExpression = 253,
268    FunctionDefinition = 254,
269    Declaration = 255,
270    TypeDefinition = 256,
271    TypeDefinitionType = 257,
272    TypeDefinitionDeclarators = 258,
273    DeclarationModifiers = 259,
274    DeclarationSpecifiers = 260,
275    LinkageSpecification = 261,
276    AttributeSpecifier = 262,
277    Attribute = 263,
278    AttributeDeclaration = 264,
279    MsDeclspecModifier = 265,
280    MsBasedModifier = 266,
281    MsCallModifier = 267,
282    MsUnalignedPtrModifier = 268,
283    MsPointerModifier = 269,
284    DeclarationList = 270,
285    Declarator = 271,
286    FieldDeclarator = 272,
287    TypeDeclarator = 273,
288    AbstractDeclarator = 274,
289    ParenthesizedDeclarator = 275,
290    ParenthesizedDeclarator2 = 276,
291    ParenthesizedDeclarator3 = 277,
292    AbstractParenthesizedDeclarator = 278,
293    AttributedDeclarator = 279,
294    AttributedDeclarator2 = 280,
295    AttributedDeclarator3 = 281,
296    PointerDeclarator = 282,
297    PointerDeclarator2 = 283,
298    PointerTypeDeclarator = 284,
299    AbstractPointerDeclarator = 285,
300    FunctionDeclarator = 286,
301    FunctionDeclarator2 = 287,
302    FunctionDeclarator3 = 288,
303    AbstractFunctionDeclarator = 289,
304    ArrayDeclarator = 290,
305    ArrayDeclarator2 = 291,
306    ArrayDeclarator3 = 292,
307    AbstractArrayDeclarator = 293,
308    InitDeclarator = 294,
309    CompoundStatement = 295,
310    StorageClassSpecifier = 296,
311    TypeQualifier = 297,
312    AlignasQualifier = 298,
313    TypeSpecifier = 299,
314    SizedTypeSpecifier = 300,
315    EnumSpecifier = 301,
316    EnumeratorList = 302,
317    StructSpecifier = 303,
318    UnionSpecifier = 304,
319    FieldDeclarationList = 305,
320    FieldDeclarationListItem = 306,
321    FieldDeclaration = 307,
322    BitfieldClause = 308,
323    Enumerator = 309,
324    ParameterList = 310,
325    ParameterDeclaration = 311,
326    AttributedStatement = 312,
327    Statement = 313,
328    TopLevelStatement = 314,
329    LabeledStatement = 315,
330    ExpressionStatement = 316,
331    ExpressionStatement2 = 317,
332    IfStatement = 318,
333    ElseClause = 319,
334    SwitchStatement = 320,
335    CaseStatement = 321,
336    WhileStatement = 322,
337    DoStatement = 323,
338    ForStatement = 324,
339    ForStatementBody = 325,
340    ReturnStatement = 326,
341    BreakStatement = 327,
342    ContinueStatement = 328,
343    GotoStatement = 329,
344    SehTryStatement = 330,
345    SehExceptClause = 331,
346    SehFinallyClause = 332,
347    SehLeaveStatement = 333,
348    Expression = 334,
349    String = 335,
350    CommaExpression = 336,
351    ConditionalExpression = 337,
352    AssignmentExpression = 338,
353    PointerExpression = 339,
354    UnaryExpression2 = 340,
355    BinaryExpression2 = 341,
356    UpdateExpression = 342,
357    CastExpression = 343,
358    TypeDescriptor = 344,
359    SizeofExpression = 345,
360    AlignofExpression = 346,
361    OffsetofExpression = 347,
362    GenericExpression = 348,
363    SubscriptExpression = 349,
364    CallExpression2 = 350,
365    GnuAsmExpression = 351,
366    GnuAsmQualifier = 352,
367    GnuAsmOutputOperandList = 353,
368    GnuAsmOutputOperand = 354,
369    GnuAsmInputOperandList = 355,
370    GnuAsmInputOperand = 356,
371    GnuAsmClobberList = 357,
372    GnuAsmGotoList = 358,
373    ExtensionExpression = 359,
374    ArgumentList2 = 360,
375    FieldExpression = 361,
376    CompoundLiteralExpression = 362,
377    ParenthesizedExpression2 = 363,
378    InitializerList = 364,
379    InitializerPair = 365,
380    SubscriptDesignator = 366,
381    SubscriptRangeDesignator = 367,
382    FieldDesignator = 368,
383    CharLiteral = 369,
384    ConcatenatedString = 370,
385    StringLiteral = 371,
386    Null = 372,
387    EmptyDeclaration = 373,
388    PlaceholderTypeSpecifier = 374,
389    Decltype = 375,
390    Decltype2 = 376,
391    ClassDeclaration = 377,
392    ClassDeclarationItem = 378,
393    ClassSpecifier = 379,
394    ClassName = 380,
395    VirtualSpecifier = 381,
396    ExplicitFunctionSpecifier = 382,
397    BaseClassClause = 383,
398    EnumBaseClause = 384,
399    DependentType = 385,
400    TemplateDeclaration = 386,
401    TemplateInstantiation = 387,
402    TemplateParameterList = 388,
403    TypeParameterDeclaration = 389,
404    VariadicTypeParameterDeclaration = 390,
405    OptionalTypeParameterDeclaration = 391,
406    TemplateTemplateParameterDeclaration = 392,
407    OptionalParameterDeclaration = 393,
408    VariadicParameterDeclaration = 394,
409    VariadicDeclarator = 395,
410    ReferenceDeclarator = 396,
411    OperatorCast = 397,
412    FieldInitializerList = 398,
413    FieldInitializer = 399,
414    FunctionDefinition2 = 400,
415    ConstructorSpecifiers = 401,
416    FunctionDefinition3 = 402,
417    Declaration2 = 403,
418    TryStatement = 404,
419    FunctionDefinition4 = 405,
420    Declaration3 = 406,
421    DefaultMethodClause = 407,
422    DeleteMethodClause = 408,
423    PureVirtualClause = 409,
424    FriendDeclaration = 410,
425    AccessSpecifier = 411,
426    ReferenceDeclarator2 = 412,
427    ReferenceDeclarator3 = 413,
428    ReferenceDeclarator4 = 414,
429    AbstractReferenceDeclarator = 415,
430    StructuredBindingDeclarator = 416,
431    RefQualifier = 417,
432    FunctionDeclaratorSeq = 418,
433    FunctionAttributesStart = 419,
434    FunctionExceptionSpecification = 420,
435    FunctionAttributesEnd = 421,
436    FunctionPostfix = 422,
437    TrailingReturnType = 423,
438    Noexcept = 424,
439    ThrowSpecifier = 425,
440    TemplateType = 426,
441    TemplateMethod = 427,
442    TemplateFunction = 428,
443    TemplateArgumentList = 429,
444    NamespaceDefinition = 430,
445    NamespaceAliasDefinition = 431,
446    NamespaceSpecifier = 432,
447    NestedNamespaceSpecifier = 433,
448    UsingDeclaration = 434,
449    AliasDeclaration = 435,
450    StaticAssertDeclaration = 436,
451    ConceptDefinition = 437,
452    ForRangeLoop = 438,
453    ForRangeLoopBody = 439,
454    InitStatement = 440,
455    ConditionClause = 441,
456    Declaration4 = 442,
457    CoReturnStatement = 443,
458    CoYieldStatement = 444,
459    ThrowStatement = 445,
460    TryStatement2 = 446,
461    CatchClause = 447,
462    RawStringLiteral = 448,
463    SubscriptArgumentList = 449,
464    CoAwaitExpression = 450,
465    NewExpression = 451,
466    NewDeclarator = 452,
467    DeleteExpression = 453,
468    TypeRequirement = 454,
469    CompoundRequirement = 455,
470    Requirement = 456,
471    RequirementSeq = 457,
472    ConstraintConjunction = 458,
473    ConstraintDisjunction = 459,
474    RequirementClauseConstraint = 460,
475    RequiresClause = 461,
476    ParameterList2 = 462,
477    RequiresExpression = 463,
478    LambdaExpression = 464,
479    LambdaCaptureSpecifier = 465,
480    LambdaDefaultCapture = 466,
481    LambdaCaptureIdentifier = 467,
482    LambdaCaptureInitializer = 468,
483    LambdaCapture = 469,
484    FoldOperator = 470,
485    BinaryFoldOperator = 471,
486    UnaryLeftFold = 472,
487    UnaryRightFold = 473,
488    BinaryFold = 474,
489    FoldExpression = 475,
490    ParameterPackExpansion = 476,
491    ParameterPackExpansion2 = 477,
492    ParameterPackExpansion3 = 478,
493    DestructorName = 479,
494    DependentName = 480,
495    DependentName2 = 481,
496    DependentName3 = 482,
497    ScopeResolution = 483,
498    QualifiedIdentifier = 484,
499    QualifiedIdentifier2 = 485,
500    QualifiedIdentifier3 = 486,
501    QualifiedIdentifier4 = 487,
502    AssignmentExpression2 = 488,
503    OperatorName = 489,
504    UserDefinedLiteral = 490,
505    TranslationUnitRepeat1 = 491,
506    PreprocParamsRepeat1 = 492,
507    PreprocIfRepeat1 = 493,
508    PreprocIfInFieldDeclarationListRepeat1 = 494,
509    PreprocIfInEnumeratorListRepeat1 = 495,
510    PreprocIfInEnumeratorListNoCommaRepeat1 = 496,
511    PreprocArgumentListRepeat1 = 497,
512    DeclarationRepeat1 = 498,
513    TypeDefinitionRepeat1 = 499,
514    TypeDefinitionTypeRepeat1 = 500,
515    TypeDefinitionDeclaratorsRepeat1 = 501,
516    DeclarationSpecifiersRepeat1 = 502,
517    AttributeDeclarationRepeat1 = 503,
518    AttributedDeclaratorRepeat1 = 504,
519    PointerDeclaratorRepeat1 = 505,
520    ArrayDeclaratorRepeat1 = 506,
521    SizedTypeSpecifierRepeat1 = 507,
522    EnumeratorListRepeat1 = 508,
523    FieldDeclarationRepeat1 = 509,
524    ParameterListRepeat1 = 510,
525    CaseStatementRepeat1 = 511,
526    GenericExpressionRepeat1 = 512,
527    GnuAsmExpressionRepeat1 = 513,
528    GnuAsmOutputOperandListRepeat1 = 514,
529    GnuAsmInputOperandListRepeat1 = 515,
530    GnuAsmClobberListRepeat1 = 516,
531    GnuAsmGotoListRepeat1 = 517,
532    ArgumentListRepeat1 = 518,
533    InitializerListRepeat1 = 519,
534    InitializerPairRepeat1 = 520,
535    CharLiteralRepeat1 = 521,
536    ConcatenatedStringRepeat1 = 522,
537    StringLiteralRepeat1 = 523,
538    ClassDeclarationRepeat1 = 524,
539    BaseClassClauseRepeat1 = 525,
540    TemplateParameterListRepeat1 = 526,
541    FieldInitializerListRepeat1 = 527,
542    OperatorCastDefinitionRepeat1 = 528,
543    ConstructorTryStatementRepeat1 = 529,
544    StructuredBindingDeclaratorRepeat1 = 530,
545    FunctionPostfixRepeat1 = 531,
546    ThrowSpecifierRepeat1 = 532,
547    TemplateArgumentListRepeat1 = 533,
548    SubscriptArgumentListRepeat1 = 534,
549    RequirementSeqRepeat1 = 535,
550    RequiresParameterListRepeat1 = 536,
551    LambdaCaptureSpecifierRepeat1 = 537,
552    FieldIdentifier = 538,
553    NamespaceIdentifier = 539,
554    SimpleRequirement = 540,
555    StatementIdentifier = 541,
556    TypeIdentifier = 542,
557    Error = 543,
558}
559
560/// Each runtime kind id of `Cpp` with tree-sitter's `named` and
561/// `visible` flags, in id order. A label for the id the enum identifies,
562/// read by the role-coverage gate; the generator's ERROR sentinel has no
563/// entry.
564pub const CPP_KIND_FLAGS: &[(u16, bool, bool)] = &[
565    (0, false, false),
566    (1, true, true),
567    (2, false, true),
568    (3, false, false),
569    (4, false, true),
570    (5, false, true),
571    (6, false, true),
572    (7, false, true),
573    (8, false, true),
574    (9, false, true),
575    (10, false, true),
576    (11, false, true),
577    (12, false, true),
578    (13, false, true),
579    (14, false, true),
580    (15, false, true),
581    (16, false, true),
582    (17, false, true),
583    (18, true, true),
584    (19, true, true),
585    (20, false, true),
586    (21, false, true),
587    (22, false, true),
588    (23, false, true),
589    (24, false, true),
590    (25, false, true),
591    (26, false, true),
592    (27, false, true),
593    (28, false, true),
594    (29, false, true),
595    (30, false, true),
596    (31, false, true),
597    (32, false, true),
598    (33, false, true),
599    (34, false, true),
600    (35, false, true),
601    (36, false, true),
602    (37, false, true),
603    (38, false, true),
604    (39, false, true),
605    (40, false, true),
606    (41, false, true),
607    (42, false, true),
608    (43, false, true),
609    (44, false, true),
610    (45, false, true),
611    (46, false, true),
612    (47, false, true),
613    (48, false, true),
614    (49, false, true),
615    (50, false, true),
616    (51, false, true),
617    (52, false, true),
618    (53, false, true),
619    (54, false, true),
620    (55, false, true),
621    (56, false, true),
622    (57, false, true),
623    (58, false, true),
624    (59, false, true),
625    (60, true, true),
626    (61, true, true),
627    (62, true, true),
628    (63, false, true),
629    (64, false, true),
630    (65, false, true),
631    (66, false, true),
632    (67, false, true),
633    (68, false, true),
634    (69, false, true),
635    (70, false, true),
636    (71, false, true),
637    (72, false, true),
638    (73, false, true),
639    (74, false, true),
640    (75, false, true),
641    (76, false, true),
642    (77, false, true),
643    (78, false, true),
644    (79, false, true),
645    (80, false, true),
646    (81, false, true),
647    (82, false, true),
648    (83, false, true),
649    (84, false, true),
650    (85, false, true),
651    (86, false, true),
652    (87, false, true),
653    (88, false, true),
654    (89, false, true),
655    (90, false, true),
656    (91, false, true),
657    (92, false, true),
658    (93, false, true),
659    (94, false, true),
660    (95, false, true),
661    (96, true, true),
662    (97, false, true),
663    (98, false, true),
664    (99, false, true),
665    (100, false, true),
666    (101, false, true),
667    (102, false, true),
668    (103, false, true),
669    (104, false, true),
670    (105, false, true),
671    (106, false, true),
672    (107, false, true),
673    (108, false, true),
674    (109, false, true),
675    (110, false, true),
676    (111, false, true),
677    (112, false, true),
678    (113, false, true),
679    (114, false, true),
680    (115, false, true),
681    (116, false, true),
682    (117, false, true),
683    (118, false, true),
684    (119, false, true),
685    (120, false, true),
686    (121, false, true),
687    (122, false, true),
688    (123, false, true),
689    (124, false, true),
690    (125, false, true),
691    (126, false, true),
692    (127, false, true),
693    (128, false, true),
694    (129, false, true),
695    (130, false, true),
696    (131, false, true),
697    (132, false, true),
698    (133, false, true),
699    (134, false, true),
700    (135, false, true),
701    (136, false, true),
702    (137, false, true),
703    (138, false, true),
704    (139, false, true),
705    (140, false, true),
706    (141, false, true),
707    (142, false, true),
708    (143, false, true),
709    (144, false, true),
710    (145, false, true),
711    (146, false, true),
712    (147, false, true),
713    (148, false, true),
714    (149, false, true),
715    (150, false, true),
716    (151, false, true),
717    (152, false, true),
718    (153, false, true),
719    (154, false, true),
720    (155, false, true),
721    (156, false, true),
722    (157, false, true),
723    (158, true, true),
724    (159, false, true),
725    (160, false, true),
726    (161, false, true),
727    (162, false, true),
728    (163, false, true),
729    (164, true, true),
730    (165, false, true),
731    (166, false, true),
732    (167, false, true),
733    (168, false, true),
734    (169, false, true),
735    (170, true, true),
736    (171, true, true),
737    (172, true, true),
738    (173, true, true),
739    (174, true, true),
740    (175, false, true),
741    (176, false, true),
742    (177, true, true),
743    (178, true, true),
744    (179, false, true),
745    (180, false, true),
746    (181, false, true),
747    (182, false, true),
748    (183, false, true),
749    (184, false, true),
750    (185, false, true),
751    (186, false, true),
752    (187, false, true),
753    (188, false, true),
754    (189, false, false),
755    (190, false, true),
756    (191, false, true),
757    (192, false, true),
758    (193, false, true),
759    (194, false, true),
760    (195, false, true),
761    (196, false, true),
762    (197, false, true),
763    (198, false, true),
764    (199, false, true),
765    (200, false, true),
766    (201, false, true),
767    (202, false, true),
768    (203, false, true),
769    (204, false, true),
770    (205, false, true),
771    (206, false, true),
772    (207, false, true),
773    (208, false, true),
774    (209, false, true),
775    (210, false, true),
776    (211, false, true),
777    (212, false, true),
778    (213, false, true),
779    (214, false, true),
780    (215, true, true),
781    (216, true, true),
782    (217, true, true),
783    (218, true, true),
784    (219, true, true),
785    (220, false, false),
786    (221, false, false),
787    (222, true, true),
788    (223, true, true),
789    (224, true, true),
790    (225, true, true),
791    (226, true, true),
792    (227, true, true),
793    (228, true, true),
794    (229, true, true),
795    (230, true, true),
796    (231, true, true),
797    (232, true, true),
798    (233, true, true),
799    (234, true, true),
800    (235, true, true),
801    (236, true, true),
802    (237, true, true),
803    (238, true, true),
804    (239, true, true),
805    (240, true, true),
806    (241, true, true),
807    (242, true, true),
808    (243, true, true),
809    (244, true, true),
810    (245, true, true),
811    (246, true, true),
812    (247, false, false),
813    (248, true, true),
814    (249, true, true),
815    (250, true, true),
816    (251, true, true),
817    (252, true, true),
818    (253, true, true),
819    (254, true, true),
820    (255, true, true),
821    (256, true, true),
822    (257, false, false),
823    (258, false, false),
824    (259, false, false),
825    (260, false, false),
826    (261, true, true),
827    (262, true, true),
828    (263, true, true),
829    (264, true, true),
830    (265, true, true),
831    (266, true, true),
832    (267, true, true),
833    (268, true, true),
834    (269, true, true),
835    (270, true, true),
836    (271, false, false),
837    (272, false, false),
838    (273, false, false),
839    (274, false, false),
840    (275, true, true),
841    (276, true, true),
842    (277, true, true),
843    (278, true, true),
844    (279, true, true),
845    (280, true, true),
846    (281, true, true),
847    (282, true, true),
848    (283, true, true),
849    (284, true, true),
850    (285, true, true),
851    (286, true, true),
852    (287, true, true),
853    (288, true, true),
854    (289, true, true),
855    (290, true, true),
856    (291, true, true),
857    (292, true, true),
858    (293, true, true),
859    (294, true, true),
860    (295, true, true),
861    (296, true, true),
862    (297, true, true),
863    (298, true, true),
864    (299, false, false),
865    (300, true, true),
866    (301, true, true),
867    (302, true, true),
868    (303, true, true),
869    (304, true, true),
870    (305, true, true),
871    (306, false, false),
872    (307, true, true),
873    (308, true, true),
874    (309, true, true),
875    (310, true, true),
876    (311, true, true),
877    (312, true, true),
878    (313, false, false),
879    (314, false, false),
880    (315, true, true),
881    (316, true, true),
882    (317, true, true),
883    (318, true, true),
884    (319, true, true),
885    (320, true, true),
886    (321, true, true),
887    (322, true, true),
888    (323, true, true),
889    (324, true, true),
890    (325, false, false),
891    (326, true, true),
892    (327, true, true),
893    (328, true, true),
894    (329, true, true),
895    (330, true, true),
896    (331, true, true),
897    (332, true, true),
898    (333, true, true),
899    (334, false, false),
900    (335, false, false),
901    (336, true, true),
902    (337, true, true),
903    (338, true, true),
904    (339, true, true),
905    (340, true, true),
906    (341, true, true),
907    (342, true, true),
908    (343, true, true),
909    (344, true, true),
910    (345, true, true),
911    (346, true, true),
912    (347, true, true),
913    (348, true, true),
914    (349, true, true),
915    (350, true, true),
916    (351, true, true),
917    (352, true, true),
918    (353, true, true),
919    (354, true, true),
920    (355, true, true),
921    (356, true, true),
922    (357, true, true),
923    (358, true, true),
924    (359, true, true),
925    (360, true, true),
926    (361, true, true),
927    (362, true, true),
928    (363, true, true),
929    (364, true, true),
930    (365, true, true),
931    (366, true, true),
932    (367, true, true),
933    (368, true, true),
934    (369, true, true),
935    (370, true, true),
936    (371, true, true),
937    (372, true, true),
938    (373, false, false),
939    (374, true, true),
940    (375, true, true),
941    (376, true, true),
942    (377, false, false),
943    (378, false, false),
944    (379, true, true),
945    (380, false, false),
946    (381, true, true),
947    (382, true, true),
948    (383, true, true),
949    (384, false, false),
950    (385, true, true),
951    (386, true, true),
952    (387, true, true),
953    (388, true, true),
954    (389, true, true),
955    (390, true, true),
956    (391, true, true),
957    (392, true, true),
958    (393, true, true),
959    (394, true, true),
960    (395, true, true),
961    (396, true, true),
962    (397, true, true),
963    (398, true, true),
964    (399, true, true),
965    (400, true, true),
966    (401, false, false),
967    (402, true, true),
968    (403, true, true),
969    (404, true, true),
970    (405, true, true),
971    (406, true, true),
972    (407, true, true),
973    (408, true, true),
974    (409, true, true),
975    (410, true, true),
976    (411, true, true),
977    (412, true, true),
978    (413, true, true),
979    (414, true, true),
980    (415, true, true),
981    (416, true, true),
982    (417, true, true),
983    (418, false, false),
984    (419, false, false),
985    (420, false, false),
986    (421, false, false),
987    (422, false, false),
988    (423, true, true),
989    (424, true, true),
990    (425, true, true),
991    (426, true, true),
992    (427, true, true),
993    (428, true, true),
994    (429, true, true),
995    (430, true, true),
996    (431, true, true),
997    (432, false, false),
998    (433, true, true),
999    (434, true, true),
1000    (435, true, true),
1001    (436, true, true),
1002    (437, true, true),
1003    (438, true, true),
1004    (439, false, false),
1005    (440, true, true),
1006    (441, true, true),
1007    (442, true, true),
1008    (443, true, true),
1009    (444, true, true),
1010    (445, true, true),
1011    (446, true, true),
1012    (447, true, true),
1013    (448, true, true),
1014    (449, true, true),
1015    (450, true, true),
1016    (451, true, true),
1017    (452, true, true),
1018    (453, true, true),
1019    (454, true, true),
1020    (455, true, true),
1021    (456, false, false),
1022    (457, true, true),
1023    (458, true, true),
1024    (459, true, true),
1025    (460, false, false),
1026    (461, true, true),
1027    (462, true, true),
1028    (463, true, true),
1029    (464, true, true),
1030    (465, true, true),
1031    (466, true, true),
1032    (467, false, false),
1033    (468, true, true),
1034    (469, false, false),
1035    (470, false, false),
1036    (471, false, false),
1037    (472, false, false),
1038    (473, false, false),
1039    (474, false, false),
1040    (475, true, true),
1041    (476, true, true),
1042    (477, true, true),
1043    (478, true, true),
1044    (479, true, true),
1045    (480, true, true),
1046    (481, true, true),
1047    (482, true, true),
1048    (483, false, false),
1049    (484, true, true),
1050    (485, true, true),
1051    (486, true, true),
1052    (487, true, true),
1053    (488, true, true),
1054    (489, true, true),
1055    (490, true, true),
1056    (491, false, false),
1057    (492, false, false),
1058    (493, false, false),
1059    (494, false, false),
1060    (495, false, false),
1061    (496, false, false),
1062    (497, false, false),
1063    (498, false, false),
1064    (499, false, false),
1065    (500, false, false),
1066    (501, false, false),
1067    (502, false, false),
1068    (503, false, false),
1069    (504, false, false),
1070    (505, false, false),
1071    (506, false, false),
1072    (507, false, false),
1073    (508, false, false),
1074    (509, false, false),
1075    (510, false, false),
1076    (511, false, false),
1077    (512, false, false),
1078    (513, false, false),
1079    (514, false, false),
1080    (515, false, false),
1081    (516, false, false),
1082    (517, false, false),
1083    (518, false, false),
1084    (519, false, false),
1085    (520, false, false),
1086    (521, false, false),
1087    (522, false, false),
1088    (523, false, false),
1089    (524, false, false),
1090    (525, false, false),
1091    (526, false, false),
1092    (527, false, false),
1093    (528, false, false),
1094    (529, false, false),
1095    (530, false, false),
1096    (531, false, false),
1097    (532, false, false),
1098    (533, false, false),
1099    (534, false, false),
1100    (535, false, false),
1101    (536, false, false),
1102    (537, false, false),
1103    (538, true, true),
1104    (539, true, true),
1105    (540, true, true),
1106    (541, true, true),
1107    (542, true, true),
1108];
1109
1110impl From<Cpp> for &'static str {
1111    #[inline]
1112    fn from(tok: Cpp) -> Self {
1113        match tok {
1114            Cpp::End => "end",
1115            Cpp::Identifier => "identifier",
1116            Cpp::HASHinclude => "#include",
1117            Cpp::PreprocIncludeToken2 => "preproc_include_token2",
1118            Cpp::HASHdefine => "#define",
1119            Cpp::LPAREN => "(",
1120            Cpp::DOTDOTDOT => "...",
1121            Cpp::COMMA => ",",
1122            Cpp::RPAREN => ")",
1123            Cpp::HASHif => "#if",
1124            Cpp::LF => "\n",
1125            Cpp::HASHendif => "#endif",
1126            Cpp::HASHifdef => "#ifdef",
1127            Cpp::HASHifndef => "#ifndef",
1128            Cpp::HASHelse => "#else",
1129            Cpp::HASHelif => "#elif",
1130            Cpp::HASHelifdef => "#elifdef",
1131            Cpp::HASHelifndef => "#elifndef",
1132            Cpp::PreprocArg => "preproc_arg",
1133            Cpp::PreprocDirective => "preproc_directive",
1134            Cpp::LPAREN2 => "(",
1135            Cpp::Defined => "defined",
1136            Cpp::BANG => "!",
1137            Cpp::TILDE => "~",
1138            Cpp::DASH => "-",
1139            Cpp::PLUS => "+",
1140            Cpp::STAR => "*",
1141            Cpp::SLASH => "/",
1142            Cpp::PERCENT => "%",
1143            Cpp::PIPEPIPE => "||",
1144            Cpp::AMPAMP => "&&",
1145            Cpp::PIPE => "|",
1146            Cpp::CARET => "^",
1147            Cpp::AMP => "&",
1148            Cpp::EQEQ => "==",
1149            Cpp::BANGEQ => "!=",
1150            Cpp::GT => ">",
1151            Cpp::GTEQ => ">=",
1152            Cpp::LTEQ => "<=",
1153            Cpp::LT => "<",
1154            Cpp::LTLT => "<<",
1155            Cpp::GTGT => ">>",
1156            Cpp::SEMI => ";",
1157            Cpp::Extension => "__extension__",
1158            Cpp::Typedef => "typedef",
1159            Cpp::Virtual => "virtual",
1160            Cpp::Extern => "extern",
1161            Cpp::Attribute2 => "__attribute__",
1162            Cpp::Attribute3 => "__attribute",
1163            Cpp::COLONCOLON => "::",
1164            Cpp::LBRACKLBRACK => "[[",
1165            Cpp::RBRACKRBRACK => "]]",
1166            Cpp::Declspec => "__declspec",
1167            Cpp::Based => "__based",
1168            Cpp::Cdecl => "__cdecl",
1169            Cpp::Clrcall => "__clrcall",
1170            Cpp::Stdcall => "__stdcall",
1171            Cpp::Fastcall => "__fastcall",
1172            Cpp::Thiscall => "__thiscall",
1173            Cpp::Vectorcall => "__vectorcall",
1174            Cpp::MsRestrictModifier => "ms_restrict_modifier",
1175            Cpp::MsUnsignedPtrModifier => "ms_unsigned_ptr_modifier",
1176            Cpp::MsSignedPtrModifier => "ms_signed_ptr_modifier",
1177            Cpp::Unaligned => "_unaligned",
1178            Cpp::Unaligned2 => "__unaligned",
1179            Cpp::LBRACE => "{",
1180            Cpp::RBRACE => "}",
1181            Cpp::Signed => "signed",
1182            Cpp::Unsigned => "unsigned",
1183            Cpp::Long => "long",
1184            Cpp::Short => "short",
1185            Cpp::LBRACK => "[",
1186            Cpp::Static => "static",
1187            Cpp::RBRACK => "]",
1188            Cpp::EQ => "=",
1189            Cpp::Register => "register",
1190            Cpp::Inline => "inline",
1191            Cpp::Inline2 => "__inline",
1192            Cpp::Inline3 => "__inline__",
1193            Cpp::Forceinline => "__forceinline",
1194            Cpp::ThreadLocal => "thread_local",
1195            Cpp::Thread => "__thread",
1196            Cpp::Const => "const",
1197            Cpp::Constexpr => "constexpr",
1198            Cpp::Volatile => "volatile",
1199            Cpp::Restrict => "restrict",
1200            Cpp::Restrict2 => "__restrict__",
1201            Cpp::Atomic => "_Atomic",
1202            Cpp::Noreturn => "_Noreturn",
1203            Cpp::Noreturn2 => "noreturn",
1204            Cpp::Nonnull => "_Nonnull",
1205            Cpp::Mutable => "mutable",
1206            Cpp::Constinit => "constinit",
1207            Cpp::Consteval => "consteval",
1208            Cpp::Alignas => "alignas",
1209            Cpp::Alignas2 => "_Alignas",
1210            Cpp::PrimitiveType => "primitive_type",
1211            Cpp::Enum => "enum",
1212            Cpp::Class => "class",
1213            Cpp::Struct => "struct",
1214            Cpp::Union => "union",
1215            Cpp::COLON => ":",
1216            Cpp::If => "if",
1217            Cpp::Else => "else",
1218            Cpp::Switch => "switch",
1219            Cpp::Case => "case",
1220            Cpp::Default => "default",
1221            Cpp::While => "while",
1222            Cpp::Do => "do",
1223            Cpp::For => "for",
1224            Cpp::Return => "return",
1225            Cpp::Break => "break",
1226            Cpp::Continue => "continue",
1227            Cpp::Goto => "goto",
1228            Cpp::Try => "__try",
1229            Cpp::Except => "__except",
1230            Cpp::Finally => "__finally",
1231            Cpp::Leave => "__leave",
1232            Cpp::QMARK => "?",
1233            Cpp::STAREQ => "*=",
1234            Cpp::SLASHEQ => "/=",
1235            Cpp::PERCENTEQ => "%=",
1236            Cpp::PLUSEQ => "+=",
1237            Cpp::DASHEQ => "-=",
1238            Cpp::LTLTEQ => "<<=",
1239            Cpp::GTGTEQ => ">>=",
1240            Cpp::AMPEQ => "&=",
1241            Cpp::CARETEQ => "^=",
1242            Cpp::PIPEEQ => "|=",
1243            Cpp::AndEq => "and_eq",
1244            Cpp::OrEq => "or_eq",
1245            Cpp::XorEq => "xor_eq",
1246            Cpp::Not => "not",
1247            Cpp::Compl => "compl",
1248            Cpp::LTEQGT => "<=>",
1249            Cpp::Or => "or",
1250            Cpp::And => "and",
1251            Cpp::Bitor => "bitor",
1252            Cpp::Xor => "xor",
1253            Cpp::Bitand => "bitand",
1254            Cpp::NotEq => "not_eq",
1255            Cpp::DASHDASH => "--",
1256            Cpp::PLUSPLUS => "++",
1257            Cpp::Sizeof => "sizeof",
1258            Cpp::Alignof => "__alignof__",
1259            Cpp::Alignof2 => "__alignof",
1260            Cpp::Alignof3 => "_alignof",
1261            Cpp::Alignof4 => "alignof",
1262            Cpp::Alignof5 => "_Alignof",
1263            Cpp::Offsetof => "offsetof",
1264            Cpp::Generic => "_Generic",
1265            Cpp::Asm => "asm",
1266            Cpp::Asm2 => "__asm__",
1267            Cpp::Asm3 => "__asm",
1268            Cpp::Volatile2 => "__volatile__",
1269            Cpp::DOT => ".",
1270            Cpp::DOTSTAR => ".*",
1271            Cpp::DASHGT => "->",
1272            Cpp::NumberLiteral => "number_literal",
1273            Cpp::LSQUOTE => "L'",
1274            Cpp::USQUOTE => "u'",
1275            Cpp::USQUOTE2 => "U'",
1276            Cpp::U8SQUOTE => "u8'",
1277            Cpp::SQUOTE => "'",
1278            Cpp::Character => "character",
1279            Cpp::LDQUOTE => "L\"",
1280            Cpp::UDQUOTE => "u\"",
1281            Cpp::UDQUOTE2 => "U\"",
1282            Cpp::U8DQUOTE => "u8\"",
1283            Cpp::DQUOTE => "\"",
1284            Cpp::StringContent => "string_content",
1285            Cpp::EscapeSequence => "escape_sequence",
1286            Cpp::SystemLibString => "system_lib_string",
1287            Cpp::True => "true",
1288            Cpp::False => "false",
1289            Cpp::NULL => "NULL",
1290            Cpp::Nullptr => "nullptr",
1291            Cpp::Comment => "comment",
1292            Cpp::Auto => "auto",
1293            Cpp::Decltype3 => "decltype",
1294            Cpp::Final => "final",
1295            Cpp::Override => "override",
1296            Cpp::Explicit => "explicit",
1297            Cpp::Typename => "typename",
1298            Cpp::Template => "template",
1299            Cpp::GT2 => ">",
1300            Cpp::Operator => "operator",
1301            Cpp::Try2 => "try",
1302            Cpp::Delete => "delete",
1303            Cpp::PureVirtualClauseToken1 => "pure_virtual_clause_token1",
1304            Cpp::Friend => "friend",
1305            Cpp::Public => "public",
1306            Cpp::Private => "private",
1307            Cpp::Protected => "protected",
1308            Cpp::Noexcept2 => "noexcept",
1309            Cpp::Throw => "throw",
1310            Cpp::Namespace => "namespace",
1311            Cpp::Using => "using",
1312            Cpp::StaticAssert => "static_assert",
1313            Cpp::Concept => "concept",
1314            Cpp::CoReturn => "co_return",
1315            Cpp::CoYield => "co_yield",
1316            Cpp::Catch => "catch",
1317            Cpp::RDQUOTE => "R\"",
1318            Cpp::LRDQUOTE => "LR\"",
1319            Cpp::URDQUOTE => "uR\"",
1320            Cpp::URDQUOTE2 => "UR\"",
1321            Cpp::U8RDQUOTE => "u8R\"",
1322            Cpp::CoAwait => "co_await",
1323            Cpp::New => "new",
1324            Cpp::Requires => "requires",
1325            Cpp::DASHGTSTAR => "->*",
1326            Cpp::LPARENRPAREN => "()",
1327            Cpp::LBRACKRBRACK => "[]",
1328            Cpp::DQUOTEDQUOTE => "\"\"",
1329            Cpp::This => "this",
1330            Cpp::LiteralSuffix => "literal_suffix",
1331            Cpp::RawStringDelimiter => "raw_string_delimiter",
1332            Cpp::RawStringContent => "raw_string_content",
1333            Cpp::TranslationUnit => "translation_unit",
1334            Cpp::TopLevelItem => "_top_level_item",
1335            Cpp::BlockItem => "_block_item",
1336            Cpp::PreprocInclude => "preproc_include",
1337            Cpp::PreprocDef => "preproc_def",
1338            Cpp::PreprocFunctionDef => "preproc_function_def",
1339            Cpp::PreprocParams => "preproc_params",
1340            Cpp::PreprocCall => "preproc_call",
1341            Cpp::PreprocIf => "preproc_if",
1342            Cpp::PreprocIfdef => "preproc_ifdef",
1343            Cpp::PreprocElse => "preproc_else",
1344            Cpp::PreprocElif => "preproc_elif",
1345            Cpp::PreprocElifdef => "preproc_elifdef",
1346            Cpp::PreprocIf2 => "preproc_if",
1347            Cpp::PreprocIfdef2 => "preproc_ifdef",
1348            Cpp::PreprocElse2 => "preproc_else",
1349            Cpp::PreprocElif2 => "preproc_elif",
1350            Cpp::PreprocElifdef2 => "preproc_elifdef",
1351            Cpp::PreprocIf3 => "preproc_if",
1352            Cpp::PreprocIfdef3 => "preproc_ifdef",
1353            Cpp::PreprocElse3 => "preproc_else",
1354            Cpp::PreprocElif3 => "preproc_elif",
1355            Cpp::PreprocElifdef3 => "preproc_elifdef",
1356            Cpp::PreprocIf4 => "preproc_if",
1357            Cpp::PreprocIfdef4 => "preproc_ifdef",
1358            Cpp::PreprocElse4 => "preproc_else",
1359            Cpp::PreprocElif4 => "preproc_elif",
1360            Cpp::PreprocElifdef4 => "preproc_elifdef",
1361            Cpp::PreprocExpression => "_preproc_expression",
1362            Cpp::ParenthesizedExpression => "parenthesized_expression",
1363            Cpp::PreprocDefined => "preproc_defined",
1364            Cpp::UnaryExpression => "unary_expression",
1365            Cpp::CallExpression => "call_expression",
1366            Cpp::ArgumentList => "argument_list",
1367            Cpp::BinaryExpression => "binary_expression",
1368            Cpp::FunctionDefinition => "function_definition",
1369            Cpp::Declaration => "declaration",
1370            Cpp::TypeDefinition => "type_definition",
1371            Cpp::TypeDefinitionType => "_type_definition_type",
1372            Cpp::TypeDefinitionDeclarators => "_type_definition_declarators",
1373            Cpp::DeclarationModifiers => "_declaration_modifiers",
1374            Cpp::DeclarationSpecifiers => "_declaration_specifiers",
1375            Cpp::LinkageSpecification => "linkage_specification",
1376            Cpp::AttributeSpecifier => "attribute_specifier",
1377            Cpp::Attribute => "attribute",
1378            Cpp::AttributeDeclaration => "attribute_declaration",
1379            Cpp::MsDeclspecModifier => "ms_declspec_modifier",
1380            Cpp::MsBasedModifier => "ms_based_modifier",
1381            Cpp::MsCallModifier => "ms_call_modifier",
1382            Cpp::MsUnalignedPtrModifier => "ms_unaligned_ptr_modifier",
1383            Cpp::MsPointerModifier => "ms_pointer_modifier",
1384            Cpp::DeclarationList => "declaration_list",
1385            Cpp::Declarator => "_declarator",
1386            Cpp::FieldDeclarator => "_field_declarator",
1387            Cpp::TypeDeclarator => "_type_declarator",
1388            Cpp::AbstractDeclarator => "_abstract_declarator",
1389            Cpp::ParenthesizedDeclarator => "parenthesized_declarator",
1390            Cpp::ParenthesizedDeclarator2 => "parenthesized_declarator",
1391            Cpp::ParenthesizedDeclarator3 => "parenthesized_declarator",
1392            Cpp::AbstractParenthesizedDeclarator => "abstract_parenthesized_declarator",
1393            Cpp::AttributedDeclarator => "attributed_declarator",
1394            Cpp::AttributedDeclarator2 => "attributed_declarator",
1395            Cpp::AttributedDeclarator3 => "attributed_declarator",
1396            Cpp::PointerDeclarator => "pointer_declarator",
1397            Cpp::PointerDeclarator2 => "pointer_declarator",
1398            Cpp::PointerTypeDeclarator => "pointer_type_declarator",
1399            Cpp::AbstractPointerDeclarator => "abstract_pointer_declarator",
1400            Cpp::FunctionDeclarator => "function_declarator",
1401            Cpp::FunctionDeclarator2 => "function_declarator",
1402            Cpp::FunctionDeclarator3 => "function_declarator",
1403            Cpp::AbstractFunctionDeclarator => "abstract_function_declarator",
1404            Cpp::ArrayDeclarator => "array_declarator",
1405            Cpp::ArrayDeclarator2 => "array_declarator",
1406            Cpp::ArrayDeclarator3 => "array_declarator",
1407            Cpp::AbstractArrayDeclarator => "abstract_array_declarator",
1408            Cpp::InitDeclarator => "init_declarator",
1409            Cpp::CompoundStatement => "compound_statement",
1410            Cpp::StorageClassSpecifier => "storage_class_specifier",
1411            Cpp::TypeQualifier => "type_qualifier",
1412            Cpp::AlignasQualifier => "alignas_qualifier",
1413            Cpp::TypeSpecifier => "type_specifier",
1414            Cpp::SizedTypeSpecifier => "sized_type_specifier",
1415            Cpp::EnumSpecifier => "enum_specifier",
1416            Cpp::EnumeratorList => "enumerator_list",
1417            Cpp::StructSpecifier => "struct_specifier",
1418            Cpp::UnionSpecifier => "union_specifier",
1419            Cpp::FieldDeclarationList => "field_declaration_list",
1420            Cpp::FieldDeclarationListItem => "_field_declaration_list_item",
1421            Cpp::FieldDeclaration => "field_declaration",
1422            Cpp::BitfieldClause => "bitfield_clause",
1423            Cpp::Enumerator => "enumerator",
1424            Cpp::ParameterList => "parameter_list",
1425            Cpp::ParameterDeclaration => "parameter_declaration",
1426            Cpp::AttributedStatement => "attributed_statement",
1427            Cpp::Statement => "statement",
1428            Cpp::TopLevelStatement => "_top_level_statement",
1429            Cpp::LabeledStatement => "labeled_statement",
1430            Cpp::ExpressionStatement => "expression_statement",
1431            Cpp::ExpressionStatement2 => "expression_statement",
1432            Cpp::IfStatement => "if_statement",
1433            Cpp::ElseClause => "else_clause",
1434            Cpp::SwitchStatement => "switch_statement",
1435            Cpp::CaseStatement => "case_statement",
1436            Cpp::WhileStatement => "while_statement",
1437            Cpp::DoStatement => "do_statement",
1438            Cpp::ForStatement => "for_statement",
1439            Cpp::ForStatementBody => "_for_statement_body",
1440            Cpp::ReturnStatement => "return_statement",
1441            Cpp::BreakStatement => "break_statement",
1442            Cpp::ContinueStatement => "continue_statement",
1443            Cpp::GotoStatement => "goto_statement",
1444            Cpp::SehTryStatement => "seh_try_statement",
1445            Cpp::SehExceptClause => "seh_except_clause",
1446            Cpp::SehFinallyClause => "seh_finally_clause",
1447            Cpp::SehLeaveStatement => "seh_leave_statement",
1448            Cpp::Expression => "expression",
1449            Cpp::String => "_string",
1450            Cpp::CommaExpression => "comma_expression",
1451            Cpp::ConditionalExpression => "conditional_expression",
1452            Cpp::AssignmentExpression => "assignment_expression",
1453            Cpp::PointerExpression => "pointer_expression",
1454            Cpp::UnaryExpression2 => "unary_expression",
1455            Cpp::BinaryExpression2 => "binary_expression",
1456            Cpp::UpdateExpression => "update_expression",
1457            Cpp::CastExpression => "cast_expression",
1458            Cpp::TypeDescriptor => "type_descriptor",
1459            Cpp::SizeofExpression => "sizeof_expression",
1460            Cpp::AlignofExpression => "alignof_expression",
1461            Cpp::OffsetofExpression => "offsetof_expression",
1462            Cpp::GenericExpression => "generic_expression",
1463            Cpp::SubscriptExpression => "subscript_expression",
1464            Cpp::CallExpression2 => "call_expression",
1465            Cpp::GnuAsmExpression => "gnu_asm_expression",
1466            Cpp::GnuAsmQualifier => "gnu_asm_qualifier",
1467            Cpp::GnuAsmOutputOperandList => "gnu_asm_output_operand_list",
1468            Cpp::GnuAsmOutputOperand => "gnu_asm_output_operand",
1469            Cpp::GnuAsmInputOperandList => "gnu_asm_input_operand_list",
1470            Cpp::GnuAsmInputOperand => "gnu_asm_input_operand",
1471            Cpp::GnuAsmClobberList => "gnu_asm_clobber_list",
1472            Cpp::GnuAsmGotoList => "gnu_asm_goto_list",
1473            Cpp::ExtensionExpression => "extension_expression",
1474            Cpp::ArgumentList2 => "argument_list",
1475            Cpp::FieldExpression => "field_expression",
1476            Cpp::CompoundLiteralExpression => "compound_literal_expression",
1477            Cpp::ParenthesizedExpression2 => "parenthesized_expression",
1478            Cpp::InitializerList => "initializer_list",
1479            Cpp::InitializerPair => "initializer_pair",
1480            Cpp::SubscriptDesignator => "subscript_designator",
1481            Cpp::SubscriptRangeDesignator => "subscript_range_designator",
1482            Cpp::FieldDesignator => "field_designator",
1483            Cpp::CharLiteral => "char_literal",
1484            Cpp::ConcatenatedString => "concatenated_string",
1485            Cpp::StringLiteral => "string_literal",
1486            Cpp::Null => "null",
1487            Cpp::EmptyDeclaration => "_empty_declaration",
1488            Cpp::PlaceholderTypeSpecifier => "placeholder_type_specifier",
1489            Cpp::Decltype => "decltype",
1490            Cpp::Decltype2 => "decltype",
1491            Cpp::ClassDeclaration => "_class_declaration",
1492            Cpp::ClassDeclarationItem => "_class_declaration_item",
1493            Cpp::ClassSpecifier => "class_specifier",
1494            Cpp::ClassName => "_class_name",
1495            Cpp::VirtualSpecifier => "virtual_specifier",
1496            Cpp::ExplicitFunctionSpecifier => "explicit_function_specifier",
1497            Cpp::BaseClassClause => "base_class_clause",
1498            Cpp::EnumBaseClause => "_enum_base_clause",
1499            Cpp::DependentType => "dependent_type",
1500            Cpp::TemplateDeclaration => "template_declaration",
1501            Cpp::TemplateInstantiation => "template_instantiation",
1502            Cpp::TemplateParameterList => "template_parameter_list",
1503            Cpp::TypeParameterDeclaration => "type_parameter_declaration",
1504            Cpp::VariadicTypeParameterDeclaration => "variadic_type_parameter_declaration",
1505            Cpp::OptionalTypeParameterDeclaration => "optional_type_parameter_declaration",
1506            Cpp::TemplateTemplateParameterDeclaration => "template_template_parameter_declaration",
1507            Cpp::OptionalParameterDeclaration => "optional_parameter_declaration",
1508            Cpp::VariadicParameterDeclaration => "variadic_parameter_declaration",
1509            Cpp::VariadicDeclarator => "variadic_declarator",
1510            Cpp::ReferenceDeclarator => "reference_declarator",
1511            Cpp::OperatorCast => "operator_cast",
1512            Cpp::FieldInitializerList => "field_initializer_list",
1513            Cpp::FieldInitializer => "field_initializer",
1514            Cpp::FunctionDefinition2 => "function_definition",
1515            Cpp::ConstructorSpecifiers => "_constructor_specifiers",
1516            Cpp::FunctionDefinition3 => "function_definition",
1517            Cpp::Declaration2 => "declaration",
1518            Cpp::TryStatement => "try_statement",
1519            Cpp::FunctionDefinition4 => "function_definition",
1520            Cpp::Declaration3 => "declaration",
1521            Cpp::DefaultMethodClause => "default_method_clause",
1522            Cpp::DeleteMethodClause => "delete_method_clause",
1523            Cpp::PureVirtualClause => "pure_virtual_clause",
1524            Cpp::FriendDeclaration => "friend_declaration",
1525            Cpp::AccessSpecifier => "access_specifier",
1526            Cpp::ReferenceDeclarator2 => "reference_declarator",
1527            Cpp::ReferenceDeclarator3 => "reference_declarator",
1528            Cpp::ReferenceDeclarator4 => "reference_declarator",
1529            Cpp::AbstractReferenceDeclarator => "abstract_reference_declarator",
1530            Cpp::StructuredBindingDeclarator => "structured_binding_declarator",
1531            Cpp::RefQualifier => "ref_qualifier",
1532            Cpp::FunctionDeclaratorSeq => "_function_declarator_seq",
1533            Cpp::FunctionAttributesStart => "_function_attributes_start",
1534            Cpp::FunctionExceptionSpecification => "_function_exception_specification",
1535            Cpp::FunctionAttributesEnd => "_function_attributes_end",
1536            Cpp::FunctionPostfix => "_function_postfix",
1537            Cpp::TrailingReturnType => "trailing_return_type",
1538            Cpp::Noexcept => "noexcept",
1539            Cpp::ThrowSpecifier => "throw_specifier",
1540            Cpp::TemplateType => "template_type",
1541            Cpp::TemplateMethod => "template_method",
1542            Cpp::TemplateFunction => "template_function",
1543            Cpp::TemplateArgumentList => "template_argument_list",
1544            Cpp::NamespaceDefinition => "namespace_definition",
1545            Cpp::NamespaceAliasDefinition => "namespace_alias_definition",
1546            Cpp::NamespaceSpecifier => "_namespace_specifier",
1547            Cpp::NestedNamespaceSpecifier => "nested_namespace_specifier",
1548            Cpp::UsingDeclaration => "using_declaration",
1549            Cpp::AliasDeclaration => "alias_declaration",
1550            Cpp::StaticAssertDeclaration => "static_assert_declaration",
1551            Cpp::ConceptDefinition => "concept_definition",
1552            Cpp::ForRangeLoop => "for_range_loop",
1553            Cpp::ForRangeLoopBody => "_for_range_loop_body",
1554            Cpp::InitStatement => "init_statement",
1555            Cpp::ConditionClause => "condition_clause",
1556            Cpp::Declaration4 => "declaration",
1557            Cpp::CoReturnStatement => "co_return_statement",
1558            Cpp::CoYieldStatement => "co_yield_statement",
1559            Cpp::ThrowStatement => "throw_statement",
1560            Cpp::TryStatement2 => "try_statement",
1561            Cpp::CatchClause => "catch_clause",
1562            Cpp::RawStringLiteral => "raw_string_literal",
1563            Cpp::SubscriptArgumentList => "subscript_argument_list",
1564            Cpp::CoAwaitExpression => "co_await_expression",
1565            Cpp::NewExpression => "new_expression",
1566            Cpp::NewDeclarator => "new_declarator",
1567            Cpp::DeleteExpression => "delete_expression",
1568            Cpp::TypeRequirement => "type_requirement",
1569            Cpp::CompoundRequirement => "compound_requirement",
1570            Cpp::Requirement => "_requirement",
1571            Cpp::RequirementSeq => "requirement_seq",
1572            Cpp::ConstraintConjunction => "constraint_conjunction",
1573            Cpp::ConstraintDisjunction => "constraint_disjunction",
1574            Cpp::RequirementClauseConstraint => "_requirement_clause_constraint",
1575            Cpp::RequiresClause => "requires_clause",
1576            Cpp::ParameterList2 => "parameter_list",
1577            Cpp::RequiresExpression => "requires_expression",
1578            Cpp::LambdaExpression => "lambda_expression",
1579            Cpp::LambdaCaptureSpecifier => "lambda_capture_specifier",
1580            Cpp::LambdaDefaultCapture => "lambda_default_capture",
1581            Cpp::LambdaCaptureIdentifier => "_lambda_capture_identifier",
1582            Cpp::LambdaCaptureInitializer => "lambda_capture_initializer",
1583            Cpp::LambdaCapture => "_lambda_capture",
1584            Cpp::FoldOperator => "_fold_operator",
1585            Cpp::BinaryFoldOperator => "_binary_fold_operator",
1586            Cpp::UnaryLeftFold => "_unary_left_fold",
1587            Cpp::UnaryRightFold => "_unary_right_fold",
1588            Cpp::BinaryFold => "_binary_fold",
1589            Cpp::FoldExpression => "fold_expression",
1590            Cpp::ParameterPackExpansion => "parameter_pack_expansion",
1591            Cpp::ParameterPackExpansion2 => "parameter_pack_expansion",
1592            Cpp::ParameterPackExpansion3 => "parameter_pack_expansion",
1593            Cpp::DestructorName => "destructor_name",
1594            Cpp::DependentName => "dependent_name",
1595            Cpp::DependentName2 => "dependent_name",
1596            Cpp::DependentName3 => "dependent_name",
1597            Cpp::ScopeResolution => "_scope_resolution",
1598            Cpp::QualifiedIdentifier => "qualified_identifier",
1599            Cpp::QualifiedIdentifier2 => "qualified_identifier",
1600            Cpp::QualifiedIdentifier3 => "qualified_identifier",
1601            Cpp::QualifiedIdentifier4 => "qualified_identifier",
1602            Cpp::AssignmentExpression2 => "assignment_expression",
1603            Cpp::OperatorName => "operator_name",
1604            Cpp::UserDefinedLiteral => "user_defined_literal",
1605            Cpp::TranslationUnitRepeat1 => "translation_unit_repeat1",
1606            Cpp::PreprocParamsRepeat1 => "preproc_params_repeat1",
1607            Cpp::PreprocIfRepeat1 => "preproc_if_repeat1",
1608            Cpp::PreprocIfInFieldDeclarationListRepeat1 => {
1609                "preproc_if_in_field_declaration_list_repeat1"
1610            }
1611            Cpp::PreprocIfInEnumeratorListRepeat1 => "preproc_if_in_enumerator_list_repeat1",
1612            Cpp::PreprocIfInEnumeratorListNoCommaRepeat1 => {
1613                "preproc_if_in_enumerator_list_no_comma_repeat1"
1614            }
1615            Cpp::PreprocArgumentListRepeat1 => "preproc_argument_list_repeat1",
1616            Cpp::DeclarationRepeat1 => "declaration_repeat1",
1617            Cpp::TypeDefinitionRepeat1 => "type_definition_repeat1",
1618            Cpp::TypeDefinitionTypeRepeat1 => "_type_definition_type_repeat1",
1619            Cpp::TypeDefinitionDeclaratorsRepeat1 => "_type_definition_declarators_repeat1",
1620            Cpp::DeclarationSpecifiersRepeat1 => "_declaration_specifiers_repeat1",
1621            Cpp::AttributeDeclarationRepeat1 => "attribute_declaration_repeat1",
1622            Cpp::AttributedDeclaratorRepeat1 => "attributed_declarator_repeat1",
1623            Cpp::PointerDeclaratorRepeat1 => "pointer_declarator_repeat1",
1624            Cpp::ArrayDeclaratorRepeat1 => "array_declarator_repeat1",
1625            Cpp::SizedTypeSpecifierRepeat1 => "sized_type_specifier_repeat1",
1626            Cpp::EnumeratorListRepeat1 => "enumerator_list_repeat1",
1627            Cpp::FieldDeclarationRepeat1 => "field_declaration_repeat1",
1628            Cpp::ParameterListRepeat1 => "parameter_list_repeat1",
1629            Cpp::CaseStatementRepeat1 => "case_statement_repeat1",
1630            Cpp::GenericExpressionRepeat1 => "generic_expression_repeat1",
1631            Cpp::GnuAsmExpressionRepeat1 => "gnu_asm_expression_repeat1",
1632            Cpp::GnuAsmOutputOperandListRepeat1 => "gnu_asm_output_operand_list_repeat1",
1633            Cpp::GnuAsmInputOperandListRepeat1 => "gnu_asm_input_operand_list_repeat1",
1634            Cpp::GnuAsmClobberListRepeat1 => "gnu_asm_clobber_list_repeat1",
1635            Cpp::GnuAsmGotoListRepeat1 => "gnu_asm_goto_list_repeat1",
1636            Cpp::ArgumentListRepeat1 => "argument_list_repeat1",
1637            Cpp::InitializerListRepeat1 => "initializer_list_repeat1",
1638            Cpp::InitializerPairRepeat1 => "initializer_pair_repeat1",
1639            Cpp::CharLiteralRepeat1 => "char_literal_repeat1",
1640            Cpp::ConcatenatedStringRepeat1 => "concatenated_string_repeat1",
1641            Cpp::StringLiteralRepeat1 => "string_literal_repeat1",
1642            Cpp::ClassDeclarationRepeat1 => "_class_declaration_repeat1",
1643            Cpp::BaseClassClauseRepeat1 => "base_class_clause_repeat1",
1644            Cpp::TemplateParameterListRepeat1 => "template_parameter_list_repeat1",
1645            Cpp::FieldInitializerListRepeat1 => "field_initializer_list_repeat1",
1646            Cpp::OperatorCastDefinitionRepeat1 => "operator_cast_definition_repeat1",
1647            Cpp::ConstructorTryStatementRepeat1 => "constructor_try_statement_repeat1",
1648            Cpp::StructuredBindingDeclaratorRepeat1 => "structured_binding_declarator_repeat1",
1649            Cpp::FunctionPostfixRepeat1 => "_function_postfix_repeat1",
1650            Cpp::ThrowSpecifierRepeat1 => "throw_specifier_repeat1",
1651            Cpp::TemplateArgumentListRepeat1 => "template_argument_list_repeat1",
1652            Cpp::SubscriptArgumentListRepeat1 => "subscript_argument_list_repeat1",
1653            Cpp::RequirementSeqRepeat1 => "requirement_seq_repeat1",
1654            Cpp::RequiresParameterListRepeat1 => "requires_parameter_list_repeat1",
1655            Cpp::LambdaCaptureSpecifierRepeat1 => "lambda_capture_specifier_repeat1",
1656            Cpp::FieldIdentifier => "field_identifier",
1657            Cpp::NamespaceIdentifier => "namespace_identifier",
1658            Cpp::SimpleRequirement => "simple_requirement",
1659            Cpp::StatementIdentifier => "statement_identifier",
1660            Cpp::TypeIdentifier => "type_identifier",
1661            Cpp::Error => "ERROR",
1662        }
1663    }
1664}
1665
1666impl From<u16> for Cpp {
1667    #[inline]
1668    fn from(x: u16) -> Self {
1669        num_traits::FromPrimitive::from_u16(x).unwrap_or(Self::Error)
1670    }
1671}
1672
1673// Cpp == u16
1674impl PartialEq<u16> for Cpp {
1675    #[inline]
1676    fn eq(&self, x: &u16) -> bool {
1677        *self == Into::<Self>::into(*x)
1678    }
1679}
1680
1681// u16 == Cpp
1682impl PartialEq<Cpp> for u16 {
1683    #[inline]
1684    fn eq(&self, x: &Cpp) -> bool {
1685        *x == *self
1686    }
1687}