Eagle Legacy Modernization, LLC

CSharp Grammar

Main program: CSharp_Program

CSharp syntax:

 Count  Terminals:
91 CSharp_Character_Literal: Literal quotes:' escape:\ doubled:no multiline:no
574 CSharp_Class_Definition: An identifier
2,372 CSharp_Comment: #region or /* comment */ or // comment to end of line
  CSharp_CommentToEndOfLine: comment to end of line
411 CSharp_Current_Class_Reference: An identifier
1 CSharp_HexNumber: A hex number
5,122 CSharp_Identifier: An identifier
57,886 CSharp_Identifier_Reference: An identifier
  CSharp_Label_Reference: An identifier
6,219 CSharp_Literal: Literal quotes:" escape:\ doubled:no multiline:no
3,664 CSharp_Method_Definition: An identifier
1,923 CSharp_Number: Number exponent_chars:Ee suffix_chars:LlFfDdUuMm trailing_period:yes ignore_char:none
  CSharp_Type_Definition: An identifier
9,008 CSharp_Variable_Definition: An identifier
 Count  Statistics(*) Tokens:
229 all all none all CSharp_Annotation: '[' CSharp_AnnotationItem [CSharp_MoreAnnotations]* ']'
229 5% 44% all all 1.26 99% |   CSharp_AnnotationItem: [CSharp_AnnotionGlobal] [CSharp_AnnotionAssembly] ["global"] ["::"] CSharp_Identifier* [CSharp_AnnotationParams]
226 all all all |   CSharp_AnnotationParams: '(' [CSharp_ArgumentList] ')'
100 all all |   CSharp_AnnotionAssembly: ("assembly"|"return") ':'
12 all all |   CSharp_AnnotionGlobal: "global" "::"
    |   CSharp_MoreAnnotations: ',' CSharp_AnnotationItem
14,925 (97% | 0% | 2%) CSharp_Argument: (CSharp_ArgumentOut | CSharp_ArgumentOutType | CSharp_ArgumentRef)
14,548 all all |   CSharp_ArgumentOut: ["out"] CSharp_Expression
4 all all all |   CSharp_ArgumentOutType: "out" CSharp_Type CSharp_Expression
373 all all |   CSharp_ArgumentRef: "ref" CSharp_Expression
10,948 80% 1.66(34%) none CSharp_ArgumentList: [CSharp_Argument] [CSharp_MoreArguments]* [',']
6,214 all all 1.00(0%) |   CSharp_MoreArguments: ',' [CSharp_Argument] [CSharp_Comment]*
574 1.42(6%) 1.23(all) all all 0% 66% none all 9.62(all) all none CSharp_Class: [CSharp_AnnotationOrComment]* [CSharp_ClassModifier]* ("class"|"interface"|"struct") CSharp_Class_Definition [CSharp_GenericType] [CSharp_ExtendsOrImplements] [CSharp_Comment]* '{' [CSharp_ClassElement]* '}' [';']
47 (all | none) |   CSharp_AnnotationOrComment: (CSharp_Annotation | CSharp_Comment)
5,524 (66% | 3% | 7% | none | none | none | none | none | 23%) |   CSharp_ClassElement: (CSharp_Method | CSharp_Comment | CSharp_Constructor | CSharp_Operator | CSharp_PragmaDirective | CSharp_Property | CSharp_RegionDirective | CSharp_SubscriptOperator | CSharp_Statement)
706 all |   CSharp_ClassModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual")
377 all none 1.97 2% none 1.24(13%) |   CSharp_ExtendsOrImplements: ':' [CSharp_NamespaceQualifer] CSharp_Identifier_Reference* [CSharp_GenericType] [CSharp_GenericWhere] [CSharp_MoreImplements]*
    |   |   CSharp_GenericWhere: "where" CSharp_Identifier_Reference ':' CSharp_Type
62 all 2.29 none none |   |   CSharp_MoreImplements: ',' CSharp_Identifier_Reference* [CSharp_GenericType] [CSharp_GenericWhere]
    |   |   CSharp_NamespaceQualifer: CSharp_Identifier_Reference "::"
411 none 1.00(0%) 1.00(all) all all all 3.57(87%) all 68% all CSharp_Constructor: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* ['~'] CSharp_Current_Class_Reference '(' [CSharp_MethodParameter]* ')' [CSharp_ExtendsBase] CSharp_MethodBody
281 all all all all all |   CSharp_ExtendsBase: ':' ("base"|"this") '(' [CSharp_ArgumentList] ')'
4,407 all all 1.55(3%) CSharp_Data: CSharp_DataBeforeSemicolon ';' [CSharp_Comment]*
4,455 none 1.38(24%) none all all none none 95% 1.59(1%) |   CSharp_DataBeforeSemicolon: [CSharp_Annotation]* [CSharp_DataModifier]* [CSharp_Annotation]* CSharp_Type CSharp_Variable_Definition ['['] [']'] [CSharp_DataInitialValue] [CSharp_MoreIdentifiers]*
4,222 all all |   CSharp_DataInitialValue: '=' CSharp_Expression
1,491 all |   CSharp_DataModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual")
89 all all none none 10% |   CSharp_MoreIdentifiers: ',' CSharp_Variable_Definition ['['] [']'] [CSharp_DataInitialValue]
19 none 1.00(all) all all none all 2.33(16%) all 16% 6.42(all) none all 79% CSharp_Enum: [CSharp_Annotation]* [CSharp_DataModifier]* "enum" CSharp_Variable_Definition [CSharp_Enum_Basetype] '{' [CSharp_Comment]* CSharp_Variable_Definition [CSharp_EnumInitializer] [CSharp_MoreEnums]* [','] '}' [';']
17 all all |   CSharp_EnumInitializer: '=' CSharp_Expression
    |   CSharp_Enum_Basetype: ':' CSharp_Type
122 all all 11% |   CSharp_MoreEnums: ',' CSharp_Variable_Definition [CSharp_EnumInitializer]
88,983 (0% | 2% | 7% | 0% | 0% | none | 0% | none | 1% | 0% | none | 3% | 0% | 0% | 9% | 0% | 0% | 0% | none | 0% | none | 3% | 0% | none | 44% | 0% | 0% | none | 0% | none | none | none | none | 0% | 0% | 0% | 0% | 0% | 0% | 18% | 0% | 0% | 0% | 2% | none | 2% | 0% | 0% | 0% | 0% | 0% | 0% | 0% | 5% | none | none) CSharp_Expression: (CSharp_HexNumber | CSharp_Number | CSharp_Literal | CSharp_Character_Literal | CSharp_MathFunction | CSharp_StringFunction | CSharp_PrintFunction | CSharp_DotClass | CSharp_CastExpression | CSharp_ExpressionList | CSharp_InterfaceCreationWithMethod | CSharp_ClassCreationExpression | CSharp_ClassCreationWithInitializers | CSharp_ClassCreationWithSubscript | CSharp_MethodInvocation | CSharp_PreIncrementExpression | CSharp_PostIncrementExpression | CSharp_NegativeExpression | CSharp_BitwiseNotExpression | CSharp_LogicalNotExpression | CSharp_DefaultGeneric | CSharp_BuiltIn | CSharp_ConsoleOut | CSharp_ConsoleRead | CSharp_VariableExpression | CSharp_TypeExpression | CSharp_ParenthesizedExpression | CSharp_CommentExpression | CSharp_SizeOfFunction | CSharp_Delegation | CSharp_LambdaBlock | CSharp_LambdaParameters | CSharp_IndexOfMethod | CSharp_ToUpperMethod | CSharp_TrimMethod | CSharp_ToStringMethod | CSharp_SubstringMethod | CSharp_StartsWithMethod | CSharp_LengthMethod | CSharp_SubfieldExpression | CSharp_SubscriptExpression | CSharp_NamespaceExpression | CSharp_MultiplicativeExpression | CSharp_AdditiveExpression | CSharp_ShiftExpression | CSharp_RelationalExpression | CSharp_InstanceOfExpression | CSharp_CastAsExpression | CSharp_EqualityExpression | CSharp_BitwiseExpression | CSharp_LogicalAndExpression | CSharp_LogicalOrExpression | CSharp_TrueFalseExpression | CSharp_AssignmentExpression | CSharp_LambdaFunction | CSharp_LambdaExpression)
3,664 1.55(1%) 3.08(1%) 1.35(98%) none all all all all 0% 59% none all none CSharp_Method: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* [CSharp_Comment]* CSharp_Type ["global"] ["::"] CSharp_Method_Definition [CSharp_GenericType] [CSharp_MethodParameters] [CSharp_MethodWhere]* CSharp_MethodBody [';']
4,075 (none | 29% | 71%) |   CSharp_MethodBody: (CSharp_MethodLambda | ';' | CSharp_MethodImplementation)
    |   |   CSharp_MethodLambda: "=>" ["ref"] CSharp_Expression
5,249 all |   CSharp_MethodModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual")
4,113 none all all all all none |   CSharp_MethodParameter: [CSharp_Annotation] [("ref"|"out"|"this"|"params")] CSharp_Type CSharp_Variable_Definition ["[]"] [CSharp_MethodParamDefault]
    |   |   CSharp_MethodParamDefault: '=' CSharp_Expression
2,159 all 2.74(82%) all 0% |   CSharp_MethodParameters: '(' [CSharp_MethodParameter]* ')' [CSharp_Comment]
    |   CSharp_MethodWhere: "where" CSharp_Type_Definition ':' CSharp_Type
2,887 none all 2.57(7%) none CSharp_MethodImplementation: [CSharp_Comment]* CSharp_StatementBlock [CSharp_Comment]* [';']
290 all all 1.06(42%) all 1.74(all) all CSharp_Namespace: "namespace" CSharp_Identifier [CSharp_MoreNamespaceId]* '{' [CSharp_ProgramElems]* '}'
130 all all |   CSharp_MoreNamespaceId: '.' CSharp_Identifier
506 (3% | 0% | 33% | 58% | 1% | 5% | none) |   CSharp_ProgramElems: (CSharp_Namespace | CSharp_Using | CSharp_Comment | CSharp_Class | CSharp_Enum | CSharp_Method | CSharp_Directive)
    CSharp_Operator: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* [CSharp_Comment]* CSharp_Type "operator" ("+"|"-"|"<"|">"|"<="|">="|"=="|"!=") [CSharp_MethodParameters] CSharp_MethodBody
332 2.30(58%) 7.76(all) CSharp_Program: [CSharp_Comment]* [CSharp_NamespaceOrClassEntry]*
2,576 (78% | 6% | 11% | 2% | 4% | none | 0%) |   CSharp_NamespaceOrClassEntry: (CSharp_Using | CSharp_Comment | CSharp_Namespace | CSharp_Class | CSharp_Annotation | CSharp_Directive | CMacro_StatementOrComment)
    CSharp_Property: [CSharp_Annotation]* [CSharp_PropertyModifier]* CSharp_Type CSharp_Variable_Definition [CSharp_PropertySubscript] '{' [CSharp_GetterSetter]* '}'
    |   CSharp_GetterSetter: (CSharp_GetterBody | CSharp_GetterNoBody | CSharp_SetterBody | CSharp_SetterNoBody)
    |   |   CSharp_GetterBody: "get" CSharp_Statement
    |   |   CSharp_GetterNoBody: "get" ';'
    |   |   CSharp_SetterBody: "set" CSharp_Statement
    |   |   CSharp_SetterNoBody: ["private"] "set" ';'
    |   CSharp_PropertyModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual")
    |   CSharp_PropertySubscript: '[' [CSharp_MethodParameter]* ']'
22,962 (0% | 19% | 1% | 0% | none | 12% | 1% | 0% | 0% | 0% | 0% | 1% | 1% | 2% | none | 9% | 0% | 7% | 2% | none | 0% | none | 1% | 1% | 0% | 1% | 42%) CSharp_Statement: (';' | CSharp_Data | CSharp_Class | CSharp_Enum | CSharp_PragmaDirective | CSharp_StatementBlock | CSharp_BreakStatement | CSharp_ContinueStatement | CSharp_CheckedStatement | CSharp_DoWhileStatement | CSharp_ExitStatement | CSharp_ForStatement | CSharp_ForEachStatement | CSharp_GetProperty | CSharp_GotoStatement | CSharp_IfStatement | CSharp_LockStatement | CSharp_ReturnStatement | CSharp_SetProperty | CSharp_SuperStatement | CSharp_SwitchStatement | CSharp_SynchronizedStatement | CSharp_ThrowStatement | CSharp_TryStatement | CSharp_UsingStatement | CSharp_WhileStatement | CSharp_ExpressionStatement)
18,468 (99% | 1%) CSharp_StatementOrComment: (CSharp_Statement | CSharp_Comment)
1,499 all all 1.00(0%) all CSharp_Subscript: '[' [CSharp_Expression] [CSharp_MoreSubscripts]* ']'
2 all all |   CSharp_MoreSubscripts: ',' CSharp_Expression
    CSharp_SubscriptOperator: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* CSharp_Type "this" '[' CSharp_MethodParameter ']' CSharp_MethodImplementation
    CSharp_SuperStatement: "super" '(' [CSharp_ArgumentList] ')' ';'
16,905 all 2% 1.00(2%) all CSharp_Type: CSharp_TypeName [CSharp_GenericType] [CSharp_ArrayType]* ['?']
338 all none all |   CSharp_ArrayType: '[' [','] ']'
    |   CSharp_ExtendsType: "extends" CSharp_Identifier_Reference
306 all 1.27(all) all |   CSharp_GenericType: '<' [CSharp_Type]* '>'
9,401 0% all none 1.00(3%) |   CSharp_IdList: [CSharp_NamespaceId] CSharp_Identifier_Reference [CSharp_ExtendsType] [CSharp_MoreIds]*
307 all all |   CSharp_MoreIds: '.' CSharp_TypeName
12 all all |   CSharp_NamespaceId: CSharp_Identifier_Reference "::"
17,212 (none | 45% | 55%) |   CSharp_TypeName: (CSharp_GenericTypeQuestion | ("auto"|"bool"|"boolean"|"byte"|"char"|"class"|"decimal"|"double"|"float"|"int"|"long"|"object"|"sbyte"|"short"|"string"|"String"|"ulong"|"ushort"|"void") | CSharp_IdList)
    |   |   CSharp_GenericTypeQuestion: '?' [CSharp_ExtendsType]
2,000 all all all 1.55(71%) 1% all CSharp_Using: "using" ["static"] CSharp_Identifier [CSharp_MoreUsing]* [CSharp_UsingEquals] ';'
2,192 all all |   CSharp_MoreUsing: '.' CSharp_Identifier
29 all none 8.66 |   CSharp_UsingEquals: '=' [CSharp_UsingGlobal] CSharp_Identifier*
    |   |   CSharp_UsingGlobal: "global" "::"
47,853 all 1.02(3%) CSharp_Variable: CSharp_VariableIdentifier [CSharp_Subscript]*
47,853 (0% | 0% | 100%) |   CSharp_VariableIdentifier: (CSharp_CastedVariable | ("this"|"base"|"class") | CSharp_Identifier_Reference)
129 all all all all all all |   |   CSharp_CastedVariable: '(' '(' CSharp_Type ')' CSharp_Identifier_Reference ')'
    CSharp_Directive: (CSharp_PragmaDirective | CSharp_RegionDirective)
    CSharp_PragmaDirective: '#' "pragma" "warning" ("disable"|"restore") CSharp_Expression*
    CSharp_RegionDirective: '#' "region" CSharp_CommentToEndOfLine CSharp_ClassElement* '#' "endregion"
2,192 all all all CSharp_AdditiveExpression: CSharp_Expression ("+"|"-") CSharp_Expression
4,744 all all all CSharp_AssignmentExpression: CSharp_Expression ("="|"*="|"/="|"%="|"+="|"-="|"<<="|">>="|">>>="|"&="|"^="|"|=") CSharp_Expression
9 all all all CSharp_BitwiseExpression: CSharp_Expression ("&"|"|"|"^") CSharp_Expression
    CSharp_BitwiseNotExpression: '~' CSharp_Expression
2,271 all CSharp_BuiltIn: ("default"|"false"|"true"|"null"|"this"|"super")
3 all all all CSharp_CastAsExpression: CSharp_Expression "as" CSharp_Type
694 all all all all CSharp_CastExpression: '(' CSharp_Type ')' CSharp_Expression
2,439 all 100% all none all all CSharp_ClassCreationExpression: "new" [CSharp_Type] '(' [CSharp_Comment]* [CSharp_ArgumentList] ')'
22 all all all all all CSharp_ClassCreationWithInitializers: "new" CSharp_Type '{' [CSharp_ArgumentList] '}'
138 all all 1.00 none CSharp_ClassCreationWithSubscript: "new" [CSharp_Type] CSharp_Subscript* [CSharp_ExpressionList]
    CSharp_CommentExpression: CSharp_Comment CSharp_Expression
19 all none all all all CSharp_ConsoleOut: ["System"] ['.'] "Console" '.' ("Error"|"In"|"Out"|"Title")
    CSharp_ConsoleRead: ["System"] ['.'] "Console" '.' ("OpenStandardInput"|"OpenStandardOutput"|"ReadKey"|"ReadLine") '(' [CSharp_Expression]* ')'
    CSharp_DefaultGeneric: ("default"|"Default") '(' CSharp_Type ')'
    CSharp_Delegation: "delegate" CSharp_MethodParameters CSharp_MethodBody
    CSharp_DotClass: CSharp_Type '.' "class"
2 all all all CSharp_EqualityExpression: CSharp_Expression ("as"|"is") CSharp_Expression
11 all none all all CSharp_ExpressionList: '{' [CSharp_Comment]* CSharp_ArgumentList '}'
161 all all all CSharp_InstanceOfExpression: CSharp_Expression "is" CSharp_Type
    CSharp_InterfaceCreationWithMethod: "new" ("Runnable"|"ActionListener"|"WindowAdapter") '(' ')' '{' CSharp_Method '}'
    CSharp_LambdaBlock: '(' [CSharp_Variable]* ')' "=>" CSharp_StatementBlock
    CSharp_LambdaExpression: CSharp_Expression "=>" CSharp_Expression
    CSharp_LambdaFunction: CSharp_Expression "=>" CSharp_StatementBlock
    CSharp_LambdaParameters: '(' [CSharp_Variable]* ')' "=>" CSharp_Expression
279 all all all CSharp_LogicalAndExpression: CSharp_Expression "&&" CSharp_Expression
292 all all CSharp_LogicalNotExpression: '!' CSharp_Expression
103 all all all CSharp_LogicalOrExpression: CSharp_Expression ("||"|"^") CSharp_Expression
7,969 all none all all all CSharp_MethodInvocation: CSharp_Variable [CSharp_GenericType] '(' [CSharp_ArgumentList] ')'
109 all all all CSharp_MultiplicativeExpression: CSharp_Expression ("*"|"/"|"%") CSharp_Expression
4 all all all CSharp_NamespaceExpression: CSharp_Expression "::" CSharp_Expression
32 all all CSharp_NegativeExpression: ("-"|"+") CSharp_Expression
361 all all all CSharp_ParenthesizedExpression: '(' CSharp_Expression ')'
355 all all CSharp_PostIncrementExpression: CSharp_Variable ("++"|"--")
4 all all CSharp_PreIncrementExpression: ("++"|"--") CSharp_Variable
1,788 all all all CSharp_RelationalExpression: CSharp_Expression ("=="|"!="|"<"|">"|"<="|">=") CSharp_Expression
    CSharp_ShiftExpression: CSharp_Expression ("<<"|">>"|">>>") CSharp_Expression
16,014 all all all all CSharp_SubfieldExpression: CSharp_Expression ['?'] '.' CSharp_Expression
5 all all all all CSharp_SubscriptExpression: CSharp_Expression '[' CSharp_Expression ']'
114 all all all all all CSharp_TrueFalseExpression: CSharp_Expression '?' CSharp_Expression ':' CSharp_Expression
77 all CSharp_TypeExpression: CSharp_Type
39,306 all CSharp_VariableExpression: CSharp_Variable
2 all all all all CSharp_MathAbsFunc: "Abs" '(' CSharp_Expression ')'
5 all none all all all CSharp_MathFunction: ["System"] ['.'] "Math" '.' CSharp_MathChoice
5 (40% | 60% | none) |   CSharp_MathChoice: (CSharp_MathAbsFunc | CSharp_MathPowFunc | CSharp_MathMinMaxFunc)
    CSharp_MathMinMaxFunc: ("Min"|"Max") '(' CSharp_Expression* ')'
3 all all all all all all CSharp_MathPowFunc: "Pow" '(' CSharp_Expression ',' CSharp_Expression ')'
206 all none all all all 92% all all CSharp_PrintFunction: ["System"] ['.'] "Console" '.' [("Error"|"Out")] ['.'] ("Flush"|"ReadLine"|"SetOut"|"Write"|"WriteLine") [CSharp_ConsoleWriteArgs]
206 all 1.35(90%) all |   CSharp_ConsoleWriteArgs: '(' [CSharp_Expression]* ')'
136 all all all all CSharp_SizeOfFunction: ("sizeof"|"typeof") '(' CSharp_Type ')'
    CSharp_StringFormatFunc: "Format" '(' CSharp_Expression ',' CSharp_Expression ')'
    CSharp_StringFunction: "string" '.' CSharp_StringChoice
    |   CSharp_StringChoice: (CSharp_StringFormatFunc)
    CSharp_IndexOfMethod: CSharp_Variable '.' "IndexOf" '(' CSharp_Expression [CSharp_Index_SC] ')'
    |   CSharp_Index_SC: ',' CSharp_Expression
303 all all all CSharp_LengthMethod: CSharp_Expression '.' "Length"
3 all all all all all none none all CSharp_StartsWithMethod: CSharp_Expression '.' "StartsWith" '(' CSharp_Expression [','] [CSharp_Expression] ')'
58 all all all all all 60% 60% all CSharp_SubstringMethod: CSharp_Expression '.' "Substring" '(' CSharp_Expression [','] [CSharp_Expression] ')'
353 all all all all all CSharp_ToStringMethod: CSharp_Expression '.' "ToString" '(' ')'
99 all all all all 1% all CSharp_ToUpperMethod: CSharp_Expression '.' ("ToLower"|"ToUpper") '(' [CSharp_Expression] ')'
69 all all all all all CSharp_TrimMethod: CSharp_Expression '.' "Trim" '(' ')'
219 all all all CSharp_BreakStatement: ["yield"] "break" ';'
8 all all CSharp_CheckedStatement: "checked" CSharp_Statement
18 all all CSharp_ContinueStatement: "continue" ';'
1 all all all all all all all CSharp_DoWhileStatement: "do" CSharp_Statement "while" '(' CSharp_Expression ')' ';'
3 all all all all all all all all all CSharp_ExitStatement: "System" '.' "Environment" '.' "Exit" '(' [CSharp_Expression] ')' ';'
9,650 all all 4% CSharp_ExpressionStatement: CSharp_Expression ';' [CSharp_Comment]
219 all all all all all all all 0% all CSharp_ForEachStatement: "foreach" '(' CSharp_Type CSharp_Variable "in" CSharp_Expression ')' [CSharp_Comment] CSharp_Statement
191 all all 1.00(all) all all all 1.00 all all CSharp_ForStatement: "for" '(' [CSharp_ForWhat]* ';' CSharp_Expression ';' CSharp_Expression* ')' CSharp_Statement
191 all all |   CSharp_ForTypeInit: '=' CSharp_Expression
191 (70% | 30% | none) |   CSharp_ForWhat: (CSharp_ForWithType | CSharp_ForWithoutType | CSharp_Expression)
134 all all all |   CSharp_ForWithType: CSharp_Type CSharp_Variable_Definition [CSharp_ForTypeInit]
57 all all |   CSharp_ForWithoutType: CSharp_Variable_Definition CSharp_ForTypeInit
443 all all all CSharp_GetProperty: ["private"] "get" [CSharp_StatementBlock]
    CSharp_GotoStatement: "goto" CSharp_GoWhere
    |   CSharp_GoWhere: ("default" | CSharp_Label_Reference)
1,999 all all all all 1.00(1%) all 26% CSharp_IfStatement: "if" '(' CSharp_Expression ')' [CSharp_Comment]* CSharp_Statement [CSharp_IfElseClause]
512 1.00(2%) all 1.00(1%) all |   CSharp_IfElseClause: [CSharp_Comment]* "else" [CSharp_Comment]* CSharp_Statement
9 all all all all all CSharp_LockStatement: "lock" '(' CSharp_Expression ')' CSharp_Statement
1,667 all all 97% all CSharp_ReturnStatement: ["yield"] "return" [CSharp_Expression] ';'
440 all all all CSharp_SetProperty: ["private"] "set" [CSharp_StatementBlock]
6,548 all 2.67(97%) all CSharp_StatementBlock: '{' [CSharp_StatementOrComment]* '}'
38 all all all all all 5.82 all CSharp_SwitchStatement: "switch" '(' CSharp_Expression ')' '{' CSharp_SwitchCase* '}'
235 all 1.00 all |   CSharp_CaseClause: "case" CSharp_Expression* ':'
209 1.12 2.03(all) |   CSharp_CaseClauses: CSharp_CaseClause* [CSharp_StatementOrComment]*
12 all all 1.00(92%) |   CSharp_DefaultClause: "default" ':' [CSharp_StatementOrComment]*
221 (none | 95% | 5%) |   CSharp_SwitchCase: (CSharp_Comment | CSharp_CaseClauses | CSharp_DefaultClause)
    CSharp_SynchronizedStatement: "synchronized" '(' CSharp_Expression ')' CSharp_Statement
263 all 98% all CSharp_ThrowStatement: "throw" [CSharp_Expression] ';'
184 all all 6.23 all 1.00(1%) 1.00(97%) 20% CSharp_TryStatement: "try" '{' CSharp_StatementOrComment* '}' [CSharp_Comment]* [CSharp_CatchBlock]* [CSharp_FinallyBlock]
179 all 97% all |   CSharp_CatchBlock: "catch" [CSharp_CatchWhat] CSharp_Statement
173 all all 64% all |   |   CSharp_CatchWhat: '(' CSharp_Type [CSharp_Identifier] ')'
37 all all |   CSharp_FinallyBlock: "finally" CSharp_Statement
48 all all all all all all CSharp_UsingStatement: "using" ["static"] '(' CSharp_DataBeforeSemicolon ')' CSharp_Statement
128 all all all all 9% all CSharp_WhileStatement: "while" '(' CSharp_Expression ')' [CSharp_Comment] CSharp_Statement

Terminals = 14 (instances=87,271)
Tokens = 174 (instances=478,236)

(*) 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.