[antlr-interest] stats

Terence Parr parrt at cs.usfca.edu
Tue May 24 18:17:17 PDT 2005


Hi,

In light of just how sensitive this area is (collecting usage stats),  
we're going to have a preference you can set to "never", "remind me  
weekly", "do it now".  You will always be able to refuse sending  
info.  Here is a sample grammar report on the java.g file:

ANTLR Grammar Report; Stats Version 1
Grammar: JavaParser
Type: combined
Target language: Java
Rules: 68
Productions: 108
Decisions: 93
Cyclic DFA decisions: 3
Min fixed k: 1
Max fixed k: 2
Average fixed k: 1.1222222222222222
Standard deviation of fixed k: 0.3293772734489574
Min acyclic DFA states: 2
Max acyclic DFA states: 12
Average acyclic DFA states: 2.533333333333333
Standard deviation of acyclic DFA states: 1.5302199298492565
Total acyclic DFA states: 228
Min cyclic DFA states: 11
Max cyclic DFA states: 27
Average cyclic DFA states: 17.666666666666668
Standard deviation of cyclic DFA states: 8.32666399786453
Total cyclic DFA states: 53
Vocabulary size: 152
DFA creation time in ms: 7077

ANTLRWorks itself will have a report and so will the parser runtime.   
If you turn on -report, you'll see these numbers yourself on each run  
of antlr.  Pretty useful stuff if you ask me.

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com



More information about the antlr-interest mailing list