Eagle Legacy Modernization, LLC

HTML Grammar

Main program: HTML_Program

 Count  Terminals:
  HTML_CData: A string enclosed in quotes
478 HTML_Comment: Comment
921 HTML_HexNumber: A hex number
1,411,420 HTML_Identifier: An identifier
252,759 HTML_Literal: A string enclosed in quotes
84,286 HTML_Number: A number
26 HTML_Pre: Preformmated string
574,475 HTML_Text: A string enclosed in quotes
 Count  Statistics(*) Tokens:
52,992 (94% | 6%) HTML_Anchor: (HTML_AnchorHref | HTML_AnchorName)
49,561 all 1.00(100%) all |   HTML_AnchorHref: HTML_StartAnchor [PHP_Entry]* HTML_EndAnchor
49,914 all all all |   |   HTML_EndAnchor: "</" "a" '>'
49,561 all all 1.04(100%) all |   |   HTML_StartAnchor: '<' "a" [HTML_Attribute]* '>'
3,431 all all all all all all |   HTML_AnchorName: '<' "a" "name" '=' HTML_Value HTML_EndAnchorName
3,431 (15% | 85%) |   |   HTML_EndAnchorName: (HTML_EndAnchorNameOddd | "/>")
531 all 66% |   |   |   HTML_EndAnchorNameOddd: '>' [HTML_EndAnchor]
661,095 all 100% HTML_Attribute: HTML_IdentifierOrKeyword [HTML_AttributeValue]
659,269 all all |   HTML_AttributeValue: '=' HTML_Value
661,095 (0% | 100% | 0%) |   HTML_IdentifierOrKeyword: (HTML_Namespace | HTML_Identifier | "style")
44 all all all |   |   HTML_Namespace: HTML_Identifier ':' HTML_Identifier
666,463 (46% | 4% | 0% | 0% | 13% | 38%) |   HTML_Value: (HTML_Id_Value | HTML_Label | HTML_Strange_Number | HTML_HexNumber | HTML_Number | HTML_Literal)
304,652 all 0% |   |   HTML_Id_Value: HTML_Identifier [HTML_Id_DotValue]
1 all all |   |   |   HTML_Id_DotValue: ("."|":") HTML_Identifier
23,845 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" '>'
994 all all 3.79 all HTML_DocType: "<!" ("ATTLIST"|"DOCTYPE"|"ELEMENT"|"ENTITY"|"NOTATION") HTML_DocValue* '>'
3,763 (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 ']' '>'
52,403 3.30 HTML_Program: HTML_Element*
845,638 (60% | 0% | 21% | 11% | 0% | none | none | 0% | 0% | 0% | 6% | 1% | none | 0% | 0% | none) |   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)
511,181 all |   |   HTML_JustText: HTML_Text
376 (0% | 100%) HTML_Script: (HTMLScriptNoBody | HTML_ScriptWithBody)
1 all all 2.00(all) all |   HTMLScriptNoBody: '<' "script" [HTML_Attribute]* "/>"
375 all all all |   HTML_ScriptWithBody: HTML_StartScript HTML_ScriptBody HTML_EndScript
375 all all all |   |   HTML_EndScript: "</" "script" '>'
375 (none | all) |   |   HTML_ScriptBody: (Django_Control | Javascript_Program)
375 all all 1.45(87%) all |   |   HTML_StartScript: '<' "script" [HTML_Attribute]* '>'
865 all all all HTML_Style: HTML_StartStyle HTML_StyleBody HTML_EndStyle
865 all all all |   HTML_EndStyle: "</" "style" '>'
865 all all 1.09(16%) all |   HTML_StartStyle: '<' "style" [HTML_Attribute]* '>'
865 (none | all | none) |   HTML_StyleBody: (HTML_StyleInclude | CSS_Program | HTML_CData)
    |   |   HTML_StyleInclude: "{%" "include" HTML_Literal "%}"
7,277 all 10.83 all HTML_Table: HTML_StartTable HTML_TableBodyElement* HTML_EndTable
7,277 all all all |   HTML_EndTable: "</" "table" '>'
7,277 all all 2.37(82%) all |   HTML_StartTable: '<' "table" [HTML_Attribute]* '>'
78,783 (0% | 0% | 100%) |   HTML_TableBodyElement: (PHP_Section | Django_Control | HTML_TablePiece)
78,769 (none | 0% | 0% | 100% | 0% | none | 0%) |   HTML_TablePiece: (HTML_TableColGroup | HTML_TableSection | HTML_Comment | HTML_TableRow | HTML_Caption | HTML_TableCol | HTML_TableData)
    |   |   HTML_TableColGroup: '<' "colgroup" [HTML_Attribute]* '>' [HTML_TableCol]* "</" "colgroup" '>'
    |   |   |   HTML_TableCol: '<' "col" [HTML_Attribute]* (">"|"/>")
40 all all none all all all |   |   HTML_TableSection: '<' ("thead"|"tbody"|"tfoot") [HTML_Attribute]* '>' [HTML_TableSectionBody] [HTML_EndTableSection]
40 all all all |   |   |   HTML_EndTableSection: "</" ("thead"|"tbody"|"tfoot") '>'
40 (98% | 3%) |   |   |   HTML_TableSectionBody: (HTML_Table_NormalBody | Django_Control)
39 5.97 |   |   |   |   HTML_Table_NormalBody: HTML_TableRow*
78,924 all none 5.42(100%) none 71% |   HTML_TableRow: HTML_StartRow [HTML_Comment]* [HTML_TableData]* [HTML_Comment]* [HTML_EndRow]
55,702 all all all |   |   HTML_EndRow: "</" "tr" '>'
78,924 all all 1.06(30%) all |   |   HTML_StartRow: '<' "tr" [HTML_Attribute]* '>'
428,067 all 1.57(100%) 80% |   |   HTML_TableData: HTML_StartData [HTML_Element]* [HTML_EndData]
343,085 all all all |   |   |   HTML_EndData: "</" ("td"|"th") '>'
428,067 all all 1.08(89%) all |   |   |   HTML_StartData: '<' ("td"|"th") [HTML_Attribute]* '>'
180,293 all none all 1.49(23%) all HTML_Tag: '<' [HTML_Tag_Namespace] HTML_Identifier [HTML_TagElement]* (">"|"/>")
91,222 all none all all |   HTML_EndTag: "</" [HTML_Tag_Namespace] HTML_Identifier '>'
159,191 (all | none | none) |   HTML_TagElement: (HTML_Attribute | Django_Control | Django_Insert)
695 all all |   HTML_Tag_Namespace: HTML_Identifier ':'

Terminals = 8 (instances=2,324,365)
Tokens = 60 (instances=6,628,916)

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