Eagle Legacy Modernization, LLC

HTML Grammar

Main program: HTML_Program

 Count  Terminals:
  HTML_CData: A string enclosed in quotes
227 HTML_Comment: Comment
  HTML_HexNumber: A hex number
561,830 HTML_Identifier: An identifier
179,510 HTML_Literal: A string enclosed in quotes
58,150 HTML_Number: A number
899 HTML_Pre: Preformmated string
135,386 HTML_Text: A string enclosed in quotes
 Count  Statistics(*) Tokens:
70,415 (96% | 4%) HTML_Anchor: (HTML_AnchorHref | HTML_AnchorName)
67,794 all 1.00(100%) all |   HTML_AnchorHref: HTML_StartAnchor [PHP_Entry]* HTML_EndAnchor
67,794 all all all |   |   HTML_EndAnchor: "</" "a" '>'
67,794 all all 1.11(all) all |   |   HTML_StartAnchor: '<' "a" [HTML_Attribute]* '>'
2,621 all all all all all all |   HTML_AnchorName: '<' "a" "name" '=' HTML_Value "/>"
254,635 all 100% HTML_Attribute: HTML_IdentifierOrKeyword [HTML_AttributeValue]
254,525 all all |   HTML_AttributeValue: '=' HTML_Value
254,635 (0% | 100% | 0%) |   HTML_IdentifierOrKeyword: (HTML_Namespace | HTML_Identifier | "style")
54 all all all |   |   HTML_Namespace: HTML_Identifier ':' HTML_Identifier
260,961 (9% | 0% | none | none | 22% | 69%) |   HTML_Value: (HTML_Id_Value | HTML_Label | HTML_Strange_Number | HTML_HexNumber | HTML_Number | HTML_Literal)
23,269 all 0% |   |   HTML_Id_Value: HTML_Identifier [HTML_Id_DotValue]
2 all all |   |   |   HTML_Id_DotValue: ("."|":") HTML_Identifier
32 all all |   |   HTML_Label: '#' HTML_Identifier
    |   |   HTML_Strange_Number: '+' '.' HTML_Number
    HTML_Caption: '<' "caption" [HTML_Attribute]* '>' [HTML_Element]* HTML_EndCaption
    |   HTML_EndCaption: "</" "caption" '>'
963 all all 3.96 all HTML_DocType: "<!" ("ATTLIST"|"DOCTYPE"|"ELEMENT"|"ENTITY"|"NOTATION") HTML_DocValue* '>'
3,815 (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 ']' '>'
69,221 4.77 HTML_Program: HTML_Element*
508,084 (25% | 0% | 38% | 14% | 0% | none | none | 0% | 0% | 0% | 14% | 9% | 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)
128,933 all |   |   HTML_JustText: HTML_Text
302 (0% | 100%) HTML_Script: (HTMLScriptNoBody | HTML_ScriptWithBody)
1 all all 2.00(all) all |   HTMLScriptNoBody: '<' "script" [HTML_Attribute]* "/>"
301 all all all |   HTML_ScriptWithBody: HTML_StartScript HTML_ScriptBody HTML_EndScript
301 all all all |   |   HTML_EndScript: "</" "script" '>'
301 (none | all) |   |   HTML_ScriptBody: (Django_Control | Javascript_Program)
301 all all 1.50(85%) all |   |   HTML_StartScript: '<' "script" [HTML_Attribute]* '>'
334 all all all HTML_Style: HTML_StartStyle HTML_StyleBody HTML_EndStyle
334 all all all |   HTML_EndStyle: "</" "style" '>'
334 all all 1.04(80%) all |   HTML_StartStyle: '<' "style" [HTML_Attribute]* '>'
334 (none | all | none) |   HTML_StyleBody: (HTML_StyleInclude | CSS_Program | HTML_CData)
    |   |   HTML_StyleInclude: "{%" "include" HTML_Literal "%}"
44,403 all 1.25 all HTML_Table: HTML_StartTable HTML_TableBodyElement* HTML_EndTable
44,403 all all all |   HTML_EndTable: "</" "table" '>'
44,403 all all 1.98(2%) all |   HTML_StartTable: '<' "table" [HTML_Attribute]* '>'
55,622 (0% | 0% | 100%) |   HTML_TableBodyElement: (PHP_Section | Django_Control | HTML_TablePiece)
55,610 (0% | 0% | none | 100% | none | 0%) |   HTML_TablePiece: (HTML_TableColGroup | HTML_TableSection | HTML_Comment | HTML_TableRow | HTML_Caption | 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]* (">"|"/>")
11 all all none all all all |   |   HTML_TableSection: '<' ("thead"|"tbody"|"tfoot") [HTML_Attribute]* '>' [HTML_TableSectionBody] [HTML_EndTableSection]
11 all all all |   |   |   HTML_EndTableSection: "</" ("thead"|"tbody"|"tfoot") '>'
11 (91% | 9%) |   |   |   HTML_TableSectionBody: (HTML_Table_NormalBody | Django_Control)
10 1.00 |   |   |   |   HTML_Table_NormalBody: HTML_TableRow*
55,607 all 1.60(100%) 87% |   HTML_TableRow: HTML_StartRow [HTML_TableData]* [HTML_EndRow]
48,611 all all all |   |   HTML_EndRow: "</" "tr" '>'
55,607 all all 1.95(3%) all |   |   HTML_StartRow: '<' "tr" [HTML_Attribute]* '>'
88,843 all 2.00(100%) 70% |   |   HTML_TableData: HTML_StartData [HTML_Element]* [HTML_EndData]
61,768 all all all |   |   |   HTML_EndData: "</" ("td"|"th") '>'
88,843 all all 1.04(37%) all |   |   |   HTML_StartData: '<' ("td"|"th") [HTML_Attribute]* '>'
191,132 all none all 1.15(57%) all HTML_Tag: '<' [HTML_Tag_Namespace] HTML_Identifier [HTML_TagElement]* (">"|"/>")
70,408 all none all all |   HTML_EndTag: "</" [HTML_Tag_Namespace] HTML_Identifier '>'
139,971 (all | none | none) |   HTML_TagElement: (HTML_Attribute | Django_Control | Django_Insert)
1,055 all all |   HTML_Tag_Namespace: HTML_Identifier ':'

Terminals = 8 (instances=936,002)
Tokens = 58 (instances=3,084,727)

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