public class GrammarReport extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
GrammarReport.ReportData |
Modifier and Type | Field | Description |
---|---|---|
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 | Description |
---|---|
GrammarReport(Grammar grammar) |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
blockHasSynPred(GrammarAST blockAST) |
|
protected static GrammarReport.ReportData |
decodeReportData(String dataS) |
|
String |
getBacktrackingReport() |
|
protected String |
getDFALocations(Set<DFA> 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) |
public static final String Version
public static final String GRAMMAR_STATS_FILENAME
public static final String newline
public Grammar grammar
public GrammarReport(Grammar grammar)
public static GrammarReport.ReportData getReportData(Grammar g)
public String toNotifyString()
public String getBacktrackingReport()
public String toString()
protected static GrammarReport.ReportData decodeReportData(String dataS)
public static boolean blockHasSynPred(GrammarAST blockAST)
Copyright © 1992–2019 ANTLR. All rights reserved.