Logo Search packages:      
Sourcecode: antlr version File versions

antlr::HTMLCodeGenerator Class Reference

Inheritance diagram for antlr::HTMLCodeGenerator:

antlr::CodeGenerator

List of all members.


Detailed Description

Generate P.html, a cross-linked representation of P with or without actions

Definition at line 20 of file HTMLCodeGenerator.java.


Public Member Functions

void gen (ZeroOrMoreBlock blk)
void gen (WildcardElement wc)
void gen (TreeWalkerGrammar g) throws IOException
void gen (TreeElement t)
void gen (TokenRefElement atom)
void gen (TokenRangeElement r)
void gen (StringLiteralElement atom)
void gen (RuleRefElement rr)
void gen (ParserGrammar g) throws IOException
void gen (OneOrMoreBlock blk)
void gen (LexerGrammar g) throws IOException
void gen (CharRangeElement r)
void gen (CharLiteralElement atom)
void gen (BlockEndElement end)
void gen (AlternativeBlock blk)
void gen (ActionElement action)
void gen ()
void genCommonBlock (AlternativeBlock blk)
void genFollowSetForRuleBlock (RuleBlock blk)
void genLookaheadSetForBlock (AlternativeBlock blk)
void genNextToken ()
void genRule (RuleSymbol s)
void genTail ()
String getASTCreateString (GrammarAtom atom, String str)
String getASTCreateString (Vector v)
String getFIRSTBitSet (String ruleName, int k)
String getFOLLOWBitSet (String ruleName, int k)
 HTMLCodeGenerator ()
String mapTreeId (String id, ActionTransInfo tInfo)
void printSet (int depth, int k, Lookahead lookahead)
String processStringForASTConstructor (String str)
void setAnalyzer (LLkGrammarAnalyzer analyzer_)
void setBehavior (DefineGrammarSymbols behavior_)
void setTool (Tool tool)

Static Public Member Functions

static String decodeLexerRuleName (String id)
static boolean elementsAreRange (int[] elems)
static String encodeLexerRuleName (String id)
static String reverseLexerRuleName (String id)

Static Public Attributes

static String TokenTypesFileExt = ".txt"
static String TokenTypesFileSuffix = "TokenTypes"

Protected Member Functions

void _print (String s)
void _printAction (String s)
void _println (String s)
String extractIdOfAction (String s, int line, int column)
String extractIdOfAction (Token t)
String extractTypeOfAction (String s, int line, int column)
String extractTypeOfAction (Token t)
void genAlt (Alternative alt)
void genGenericBlock (AlternativeBlock blk, String blkOp)
void genHeader ()
void genLookaheadSetForAlt (Alternative alt)
void genSynPred (SynPredBlock blk)
void genTokenInterchange (TokenManager tm) throws IOException
void genTokenTypes (TokenManager tm) throws IOException
String getBitsetName (int index)
int markBitsetForGen (BitSet p)
void print (String s)
void printAction (String s)
void println (String s)
void printTabs ()
String processActionForSpecialSymbols (String actionStr, int line, RuleBlock currentRule, ActionTransInfo tInfo)
 unused.
String removeAssignmentFromDeclaration (String d)
void setGrammar (Grammar g)

Protected Attributes

LLkGrammarAnalyzer analyzer
antlr.Tool antlrTool
DefineGrammarSymbols behavior
Vector bitsetsUsed
int bitsetTestThreshold = DEFAULT_BITSET_TEST_THRESHOLD
CharFormatter charFormatter
transient PrintWriter currentOutput
boolean DEBUG_CODE_GENERATOR = false
boolean doingLexRules = false
boolean firstElementInAlt
Grammar grammar = null
int makeSwitchThreshold = DEFAULT_MAKE_SWITCH_THRESHOLD
AlternativeElement prevAltElem = null
int syntacticPredLevel = 0
int tabs = 0

Static Protected Attributes

static final int BITSET_OPTIMIZE_INIT_THRESHOLD = 8
static final int DEFAULT_BITSET_TEST_THRESHOLD = 4
static final int DEFAULT_MAKE_SWITCH_THRESHOLD = 2

Static Package Functions

static String HTMLEncode (String s)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index