org.antlr.tool
Class GrammarReport

java.lang.Object
  extended by org.antlr.tool.GrammarReport

public class GrammarReport
extends Object


Nested Class Summary
static class GrammarReport.ReportData
           
 
Field Summary
 Grammar grammar
           
static String GRAMMAR_STATS_FILENAME
           
static String newline
           
static String Version
          Because I may change the stats, I need to track version for later computations to be consistent.
 
Constructor Summary
GrammarReport(Grammar grammar)
           
 
Method Summary
static boolean blockHasSynPred(GrammarAST blockAST)
           
protected static GrammarReport.ReportData decodeReportData(String dataS)
           
 String getBacktrackingReport()
           
protected  String getDFALocations(Set dfas)
           
static GrammarReport.ReportData getReportData(Grammar g)
           
 String toNotifyString()
          Create a single-line stats report about this grammar suitable to send to the notify page at antlr.org
 String toString()
          Given a stats line suitable for sending to the antlr.org site, return a human-readable version.
static String toString(String notifyDataLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Version

public static final String Version
Because I may change the stats, I need to track version for later computations to be consistent.

See Also:
Constant Field Values

GRAMMAR_STATS_FILENAME

public static final String GRAMMAR_STATS_FILENAME
See Also:
Constant Field Values

newline

public static final String newline

grammar

public Grammar grammar
Constructor Detail

GrammarReport

public GrammarReport(Grammar grammar)
Method Detail

getReportData

public static GrammarReport.ReportData getReportData(Grammar g)

toNotifyString

public String toNotifyString()
Create a single-line stats report about this grammar suitable to send to the notify page at antlr.org


getBacktrackingReport

public String getBacktrackingReport()

getDFALocations

protected String getDFALocations(Set dfas)

toString

public String toString()
Given a stats line suitable for sending to the antlr.org site, return a human-readable version. Return null if there is a problem with the data.

Overrides:
toString in class Object

decodeReportData

protected static GrammarReport.ReportData decodeReportData(String dataS)

toString

public static String toString(String notifyDataLine)

blockHasSynPred

public static boolean blockHasSynPred(GrammarAST blockAST)


Copyright © 2011. All Rights Reserved.