GrammarHtmlGeneratorVisitor Class

Definition

Line 7 of scm2html/GrammarHtmlGenerator.cm

Inheritance

Constructors & Destructor

public GrammarHtmlGeneratorVisitor(bool verbose_, HashMap<GrammarParser*, Grammar*, Hasher<GrammarParser*>, EqualTo<GrammarParser*>>& parserGrammarMap_, HashMap<RuleParser*, Rule*, Hasher<RuleParser*>, EqualTo<RuleParser*>>& parserRuleMap_, HashMap<LexerFile*, Grammar*, Hasher<LexerFile*>, EqualTo<LexerFile*>>& lexerGrammarMap_, HashMap<Expression*, Rule*, Hasher<Expression*>, EqualTo<Expression*>>& lexerRuleMap_, HashMap<String<uchar>, LexerFile*, Hasher<String<uchar>>, EqualTo<String<uchar>>>& lexerMap_, const String<uchar>& styleFilePath_)

Member Functions

public Grammar* GetGrammar(GrammarParser* parser) const
public Rule* GetRule(RuleParser* parser) const
public override void Visit(ActionParser& parser)
public override void Visit(Alt& alt)
public override void Visit(AlternativeParser& parser)
public override void Visit(Any& symbol)
public override void Visit(AnyParser& parser)
public override void Visit(Cat& cat)
public override void Visit(Char& symbol)
public override void Visit(CharParser& parser)
public override void Visit(CharSetParser& parser)
public override void Visit(Class& symbol)
public override void Visit(DifferenceParser& parser)
public override void Visit(Domain& domain)
public override void Visit(EmptyParser& parser)
public override void Visit(ExpectationParser& parser)
public override void Visit(GrammarParser& parser)
public override void Visit(GroupingParser& parser)
public override void Visit(Kleene& kleene)
public override void Visit(KleeneParser& parser)
public override void Visit(LexerFile& lexerFile)
public override void Visit(ListParser& parser)
public override void Visit(NonterminalParser& parser)
public override void Visit(Opt& opt)
public override void Visit(OptionalParser& parser)
public override void Visit(ParenExpr& parenExpr)
public override void Visit(ParserFile& parserFile)
public override void Visit(Pos& pos)
public override void Visit(PositiveParser& parser)
public override void Visit(Range& symbol)
public override void Visit(RefExpr& refExpr)
public override void Visit(RuleParser& parser)
public override void Visit(SequenceParser& parser)
public override void Visit(StringParser& parser)
public override void Visit(SymbolExpr& symbolExpr)
public override void Visit(TokenParser& parser)

Member Variables

private GrammarParser* currentGrammar
private LexerFile* lexerFile
private HashMap<LexerFile*, Grammar*, Hasher<LexerFile*>, EqualTo<LexerFile*>>& lexerGrammarMap
private HashMap<String<uchar>, LexerFile*, Hasher<String<uchar>>, EqualTo<String<uchar>>>& lexerMap
private HashMap<Expression*, Rule*, Hasher<Expression*>, EqualTo<Expression*>>& lexerRuleMap
private HashMap<GrammarParser*, Grammar*, Hasher<GrammarParser*>, EqualTo<GrammarParser*>>& parserGrammarMap
private HashMap<RuleParser*, Rule*, Hasher<RuleParser*>, EqualTo<RuleParser*>>& parserRuleMap
private Element* ruleBodyElement
private Element* ruleTable
private String<uchar> styleFilePath
private bool verbose

Constructor& Destructor Details

GrammarHtmlGeneratorVisitor Constructor

public GrammarHtmlGeneratorVisitor(bool verbose_, HashMap<GrammarParser*, Grammar*, Hasher<GrammarParser*>, EqualTo<GrammarParser*>>& parserGrammarMap_, HashMap<RuleParser*, Rule*, Hasher<RuleParser*>, EqualTo<RuleParser*>>& parserRuleMap_, HashMap<LexerFile*, Grammar*, Hasher<LexerFile*>, EqualTo<LexerFile*>>& lexerGrammarMap_, HashMap<Expression*, Rule*, Hasher<Expression*>, EqualTo<Expression*>>& lexerRuleMap_, HashMap<String<uchar>, LexerFile*, Hasher<String<uchar>>, EqualTo<String<uchar>>>& lexerMap_, const String<uchar>& styleFilePath_)

Definition
Line 9 of scm2html/GrammarHtmlGenerator.cm


Member Function Details

GetGrammar Member Function

public Grammar* GetGrammar(GrammarParser* parser)

Definition
Line 13 of scm2html/GrammarHtmlGenerator.cm


GetRule Member Function

public Rule* GetRule(RuleParser* parser)

Definition
Line 25 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(ActionParser& parser)

Definition
Line 390 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Alt& alt)

Definition
Line 99 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(AlternativeParser& parser)

Definition
Line 361 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Any& symbol)

Definition
Line 45 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(AnyParser& parser)

Definition
Line 202 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Cat& cat)

Definition
Line 108 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Char& symbol)

Definition
Line 37 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(CharParser& parser)

Definition
Line 251 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(CharSetParser& parser)

Definition
Line 267 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Class& symbol)

Definition
Line 80 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(DifferenceParser& parser)

Definition
Line 370 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Domain& domain)

Definition
Line 501 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(EmptyParser& parser)

Definition
Line 195 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(ExpectationParser& parser)

Definition
Line 312 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(GrammarParser& parser)

Definition
Line 442 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(GroupingParser& parser)

Definition
Line 316 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Kleene& kleene)

Definition
Line 121 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(KleeneParser& parser)

Definition
Line 296 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(LexerFile& lexerFile)

Definition
Line 508 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(ListParser& parser)

Definition
Line 381 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(NonterminalParser& parser)

Definition
Line 394 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Opt& opt)

Definition
Line 137 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(OptionalParser& parser)

Definition
Line 288 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(ParenExpr& parenExpr)

Definition
Line 145 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(ParserFile& parserFile)

Definition
Line 494 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Pos& pos)

Definition
Line 129 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(PositiveParser& parser)

Definition
Line 304 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(Range& symbol)

Definition
Line 52 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(RefExpr& refExpr)

Definition
Line 161 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(RuleParser& parser)

Definition
Line 418 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(SequenceParser& parser)

Definition
Line 335 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(StringParser& parser)

Definition
Line 259 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(SymbolExpr& symbolExpr)

Definition
Line 157 of scm2html/GrammarHtmlGenerator.cm


Visit Member Function

public override void Visit(TokenParser& parser)

Definition
Line 209 of scm2html/GrammarHtmlGenerator.cm