Eagle Legacy Modernization, LLC

PHP Grammar

Main program: PHP_Program

 Count  Terminals:
12 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
1,159 13% 2.36 PHP_Program: [HTML_DocType] PHP_Entry*
2,058 all |   PHP_EndTag: "?>"
52,284 (96% | 4% | none) |   PHP_Entry: (HTML_Program | PHP_Section | PHP_IfBlock)
2,070 all all |   PHP_Section: PHP_StartTag PHP_Body
2,070 (1% | 99%) |   |   PHP_Body: (PHP_NoEnd | PHP_NormalEnd)
12 4.25 all |   |   |   PHP_NoEnd: PHP_Element* PHP_EndOfFile
2,058 3.63 all |   |   |   PHP_NormalEnd: PHP_Element* PHP_EndTag
7,525 (all) |   |   PHP_Element: (Perl_StatementOrComment)
2,070 all all |   PHP_StartTag: "<?" "php"

Terminals = 1 (instances=12)
Tokens = 13 (instances=71,306)

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