Eagle Legacy Modernization, LLC

HTML Grammar

Main program: HTML_Program

 Count  Terminals:
  HTML_CData: A string enclosed in quotes
551 HTML_Comment: Comment
921 HTML_HexNumber: A hex number
1,415,564 HTML_Identifier: An identifier
306,514 HTML_Literal: A string enclosed in quotes
79,195 HTML_Number: A number
32 HTML_Pre: Preformmated string
590,892 HTML_Text: A string enclosed in quotes
 Count  Statistics(*) Tokens:
66,359 (89% | 11%) HTML_Anchor: (HTML_AnchorHref | HTML_AnchorName)
58,794 all 1.00(99%) all |   HTML_AnchorHref: HTML_StartAnchor [PHP_Entry]* HTML_EndAnchor
58,794 all all all |   |   HTML_EndAnchor: "</" "a" '>'
58,794 all all 1.07(100%) all |   |   HTML_StartAnchor: '<' "a" [HTML_Attribute]* '>'
7,565 all all all all all all |   HTML_AnchorName: '<' "a" "name" '=' HTML_Value "/>"
689,003 all 100% HTML_Attribute: HTML_IdentifierOrKeyword [HTML_AttributeValue]
687,180 all all |   HTML_AttributeValue: '=' HTML_Value
689,003 (0% | 100% | 0%) |   HTML_IdentifierOrKeyword: (HTML_Namespace | HTML_Identifier | "style")
440 all all all |   |   HTML_Namespace: HTML_Identifier ':' HTML_Identifier
698,728 (41% | 3% | 0% | 0% | 11% | 44%) |   HTML_Value: (HTML_Id_Value | HTML_Label | HTML_Strange_Number | HTML_HexNumber | HTML_Number | HTML_Literal)
289,121 all 0% |   |   HTML_Id_Value: HTML_Identifier [HTML_Id_DotValue]
1 all all |   |   |   HTML_Id_DotValue: ("."|":") HTML_Identifier
22,977 all all |   |   HTML_Label: '#' HTML_Identifier
1 all all all |   |   HTML_Strange_Number: '+' '.' HTML_Number
1 all all 2.00(all) all 5.00(all) all HTML_Caption: '<' "caption" [HTML_Attribute]* '>' [HTML_Element]* HTML_EndCaption
1 all all all |   HTML_EndCaption: "</" "caption" '>'
1,048 all all 3.80 all HTML_DocType: "<!" ("ATTLIST"|"DOCTYPE"|"ELEMENT"|"ENTITY"|"NOTATION") HTML_DocValue* '>'
3,983 (none | none | all | none | none) |   HTML_DocValue: (HTML_DocBrackets | HTML_DocParens | HTML_Value | HTML_DocType | HTML_Comment)
    |   |   HTML_DocBrackets: '[' HTML_DocValue* ']'
    |   |   HTML_DocParens: '(' HTML_DocValue [("+"|"?"|"*")] [HTML_DocMoreValues]* ')' ['+']
    |   |   |   HTML_DocMoreValues: (","|"|") HTML_DocValue [("+"|"?"|"*")]
    HTML_EndIfCondition: "<!" '[' "endif" ']' '>'
    HTML_IfCondition: "<!" '[' "if" HTML_Identifier ']' '>'
61,258 2.86 HTML_Program: HTML_Element*
860,251 (61% | 0% | 20% | 10% | 0% | none | none | 0% | 0% | 0% | 8% | 1% | none | 0% | 0% | 0%) |   HTML_Element: (HTML_JustText | HTML_DocType | HTML_Tag | HTML_EndTag | HTML_Comment | HTML_IfCondition | HTML_EndIfCondition | HTML_Pre | HTML_Style | HTML_Script | HTML_Anchor | HTML_Table | HTML_Caption | Django_Control | Django_Insert | XML_Header)
527,200 all |   |   HTML_JustText: HTML_Text
339 (0% | 100%) HTML_Script: (HTMLScriptNoBody | HTML_ScriptWithBody)
1 all all 2.00(all) all |   HTMLScriptNoBody: '<' "script" [HTML_Attribute]* "/>"
338 all all all |   HTML_ScriptWithBody: HTML_StartScript HTML_ScriptBody HTML_EndScript
338 all all all |   |   HTML_EndScript: "</" "script" '>'
338 (none | all) |   |   HTML_ScriptBody: (Django_Control | Javascript_Program)
338 all all 1.42(86%) all |   |   HTML_StartScript: '<' "script" [HTML_Attribute]* '>'
838 all all all HTML_Style: HTML_StartStyle HTML_StyleBody HTML_EndStyle
838 all all all |   HTML_EndStyle: "</" "style" '>'
838 all all 1.09(17%) all |   HTML_StartStyle: '<' "style" [HTML_Attribute]* '>'
838 (none | all | none) |   HTML_StyleBody: (HTML_StyleInclude | CSS_Program | HTML_CData)
    |   |   HTML_StyleInclude: "{%" "include" HTML_Literal "%}"
6,901 all 12.00 all HTML_Table: HTML_StartTable HTML_TableBodyElement* HTML_EndTable
6,901 all all all |   HTML_EndTable: "</" "table" '>'
6,901 all all 2.34(82%) all |   HTML_StartTable: '<' "table" [HTML_Attribute]* '>'
82,827 (0% | 0% | 100%) |   HTML_TableBodyElement: (PHP_Section | Django_Control | HTML_TablePiece)
82,810 (0% | 0% | 0% | 100% | 0% | none | 0%) |   HTML_TablePiece: (HTML_TableColGroup | HTML_TableSection | HTML_Comment | HTML_TableRow | HTML_Caption | HTML_TableCol | HTML_TableData)
2 all all none all 3.00(all) all all all |   |   HTML_TableColGroup: '<' "colgroup" [HTML_Attribute]* '>' [HTML_TableCol]* "</" "colgroup" '>'
6 all all 2.00(all) all |   |   |   HTML_TableCol: '<' "col" [HTML_Attribute]* (">"|"/>")
12 all all none all all all |   |   HTML_TableSection: '<' ("thead"|"tbody"|"tfoot") [HTML_Attribute]* '>' [HTML_TableSectionBody] [HTML_EndTableSection]
12 all all all |   |   |   HTML_EndTableSection: "</" ("thead"|"tbody"|"tfoot") '>'
12 (92% | 8%) |   |   |   HTML_TableSectionBody: (HTML_Table_NormalBody | Django_Control)
11 1.00 |   |   |   |   HTML_Table_NormalBody: HTML_TableRow*
82,773 all none 5.21(100%) none 73% |   HTML_TableRow: HTML_StartRow [HTML_Comment]* [HTML_TableData]* [HTML_Comment]* [HTML_EndRow]
60,033 all all all |   |   HTML_EndRow: "</" "tr" '>'
82,773 all all 1.06(28%) all |   |   HTML_StartRow: '<' "tr" [HTML_Attribute]* '>'
431,386 all 1.59(100%) 80% |   |   HTML_TableData: HTML_StartData [HTML_Element]* [HTML_EndData]
343,588 all all all |   |   |   HTML_EndData: "</" ("td"|"th") '>'
431,386 all all 1.09(90%) all |   |   |   HTML_StartData: '<' ("td"|"th") [HTML_Attribute]* '>'
172,535 all none all 1.53(22%) all HTML_Tag: '<' [HTML_Tag_Namespace] HTML_Identifier [HTML_TagElement]* (">"|"/>")
84,514 all none all all |   HTML_EndTag: "</" [HTML_Tag_Namespace] HTML_Identifier '>'
166,573 (all | none | none) |   HTML_TagElement: (HTML_Attribute | Django_Control | Django_Insert)
1,408 all all |   HTML_Tag_Namespace: HTML_Identifier ':'

Terminals = 8 (instances=2,393,669)
Tokens = 58 (instances=6,828,910)

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