Method Summary |
|
static String | HTMLEncode(String s) Encode a string for printing in a HTML document..
e.g. |
public void | gen() |
public void | gen(ActionElement action) Generate code for the given grammar element. |
public void | gen(AlternativeBlock blk) Generate code for the given grammar element. |
public void | gen(BlockEndElement end) Generate code for the given grammar element.
Parameters: blk - The block-end element to generate. |
public void | gen(CharLiteralElement atom) Generate code for the given grammar element. |
public void | gen(CharRangeElement r) Generate code for the given grammar element. |
public void | gen(LexerGrammar g) |
public void | gen(OneOrMoreBlock blk) Generate code for the given grammar element. |
public void | gen(ParserGrammar g) |
public void | gen(RuleRefElement rr) Generate code for the given grammar element. |
public void | gen(StringLiteralElement atom) Generate code for the given grammar element. |
public void | gen(TokenRangeElement r) Generate code for the given grammar element. |
public void | gen(TokenRefElement atom) Generate code for the given grammar element. |
public void | gen(TreeElement t) |
public void | gen(TreeWalkerGrammar g) |
public void | gen(WildcardElement wc) |
public void | gen(ZeroOrMoreBlock blk) Generate code for the given grammar element. |
protected void | genAlt(Alternative alt) |
public void | genCommonBlock(AlternativeBlock blk) Generate common code for a block of alternatives; return a postscript
that needs to be generated at the end of the block. |
public void | genFollowSetForRuleBlock(RuleBlock blk) Generate a textual representation of the follow set
for a block. |
protected void | genGenericBlock(AlternativeBlock blk, String blkOp) |
protected void | genHeader() |
protected void | genLookaheadSetForAlt(Alternative alt) Generate the lookahead set for an alternate. |
public void | genLookaheadSetForBlock(AlternativeBlock blk) Generate a textual representation of the lookahead set
for a block. |
public void | genNextToken() Generate the nextToken rule. |
public void | genRule(RuleSymbol s) |
protected void | genSynPred(SynPredBlock blk) Generate the syntactic predicate. |
public void | genTail() |
protected void | genTokenTypes(TokenManager tm) |
public String | getASTCreateString(Vector v) Get a string for an expression to generate creation of an AST subtree. |
public String | getASTCreateString(GrammarAtom atom, String str) |
public String | mapTreeId(String id, ActionTransInfo tInfo) Map an identifier to it's corresponding tree-node variable. |
public void | printSet(int depth, int k, Lookahead lookahead) Format a lookahead or follow set. |
protected String | processActionForSpecialSymbols(String actionStr, int line, RuleBlock currentRule, ActionTransInfo tInfo) |