Eagle Legacy Modernization, LLC

PHP Grammar

Main program: PHP_Program

 Count  Terminals:
  PHP_EndOfFile: End of file
 Count  Statistics(*) Tokens:
    PHP_IfBlock: PHP_IfCondition PHP_Entry* PHP_IfElse PHP_Entry* PHP_EndIf
    |   PHP_EndIf: PHP_StartTag '}' PHP_EndTag
    |   PHP_IfCondition: PHP_StartTag Perl_Statement* "if" '(' Perl_Expression ')' '{' PHP_EndTag
    |   PHP_IfElse: PHP_StartTag '}' "else" '{' PHP_EndTag
802 4% 2.24 PHP_Program: [HTML_DocType] PHP_Entry*
1,385 all |   PHP_EndTag: "?>"
69,578 (98% | 2% | none) |   PHP_Entry: (HTML_Program | PHP_Section | PHP_IfBlock)
1,385 all all |   PHP_Section: PHP_StartTag PHP_Body
1,385 (none | all) |   |   PHP_Body: (PHP_NoEnd | PHP_NormalEnd)
    |   |   |   PHP_NoEnd: PHP_Element* PHP_EndOfFile
1,385 4.55 all |   |   |   PHP_NormalEnd: PHP_Element* PHP_EndTag
6,295 (all) |   |   PHP_Element: (Perl_StatementOrComment)
1,385 all all |   PHP_StartTag: "<?" "php"

Terminals = 1 (instances=0)
Tokens = 13 (instances=83,600)

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