Eagle Legacy Modernization, LLC

Cpp Grammar

Main program: CPlus_Program

 Count  Terminals:
  CPlus_Class_Definition: An identifier
  CPlus_Current_Class_Reference: An identifier
 Count  Statistics(*) Tokens:
    CPlus_Class: "class" CPlus_Class_Definition [CPlus_ClassExtendList] '{' CPlus_ClassElement* '}'
    |   CPlus_ClassElement: (C_StatementOrComment)
    |   CPlus_ClassExtendList: ':' CPlus_ClassExtends*
    |   |   CPlus_ClassExtends: ["public"] ["::"] [CPlus_ExtendsNamespace]* C_Identifier_Reference
    |   |   |   CPlus_ExtendsNamespace: C_Identifier_Reference "::"
    CPlus_Generic: '<' C_Type* '>'
51 all all none all CPlus_Method: CPlus_MethodTypeAndName C_Function_ParameterDefs [C_Comment]* C_FunctionBody
51 (none | 12% | 88%) |   CPlus_MethodTypeAndName: (CPlus_MethodConstructor | CPlus_MethodNoType | CPlus_MethodWithType)
    |   |   CPlus_MethodConstructor: CPlus_NamespaceQualifier* ['~'] CPlus_Current_Class_Reference
6 1.00 all all |   |   CPlus_MethodNoType: CPlus_NamespaceQualifier* ['~'] C_Identifier_Reference
45 all 1.00 all |   |   CPlus_MethodWithType: C_Type CPlus_NamespaceQualifier* C_Identifier_Reference
51 all none all |   CPlus_NamespaceQualifier: C_Identifier_Reference [CPlus_Generic] "::"
    CPlus_Namespace: "namespace" [C_Namespace_Definition] '{' CPlus_NamespaceElement* '}'
    |   CPlus_NamespaceElement: (CPlus_Namespace | CPlus_Class | C_StatementOrComment)
11 26.45(all) none CPlus_Program: [CPlus_Element]* [C_StatementOrComment]*
291 (82% | none | none | none | 18%) |   CPlus_Element: (C_StatementOrComment | CPlus_Class | CPlus_Using | CPlus_Namespace | CPlus_Method)
    CPlus_Using: "using" ["namespace"] C_Expression ';'

Terminals = 2 (instances=0)
Tokens = 17 (instances=506)

(*) Statistics are shown in the same order as the Tokens.
Percentages are rounded; 'all' and 'none' mean 100% and 0% before rounding.
For lists, it shows the average number of occurrences, excluding empty lists.