CodeGeneratorVisitor Class

Definition

Line 13 of scmpg/CodeGeneratorVisitor.cm

Inheritance

Constructors & Destructor

public CodeGeneratorVisitor(bool verbose_, bool debug_, bool noParserDebugSupport_)

Member Functions

public override void Visit(ActionParser& parser)
public override void Visit(AlternativeParser& parser)
public override void Visit(AnyParser& parser)
public override void Visit(CharParser& parser)
public override void Visit(CharSetParser& parser)
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(KleeneParser& parser)
public override void Visit(ListParser& parser)
public override void Visit(NonterminalParser& parser)
public override void Visit(OptionalParser& parser)
public override void Visit(ParserFile& parserFile)
public override void Visit(PositiveParser& parser)
public override void Visit(RuleParser& parser)
public override void Visit(SequenceParser& parser)
public override void Visit(StringParser& parser)
public override void Visit(TokenParser& parser)

Enumerated Types

public enum Stage

Member Variables

private Stack<CompoundStatementNode*> blockStack
private CompoundStatementNode* currentBlock
private ClassNode* currentClass
private CompileUnitNode* currentCompileUnit
private GrammarParser* currentParser
private RuleParser* currentRule
private bool debug
private Domain* domain
private String<uchar> lexerTypeName
private bool noParserDebugSupport
private List<NonterminalInfo> nonterminalInfos
private int parentMatchNumber
private int setParentMatchNumber
private int sn
private Stage stage
private SwitchStatementNode* tokenSwitch
private bool verbose

Constructor& Destructor Details

CodeGeneratorVisitor Constructor

public CodeGeneratorVisitor(bool verbose_, bool debug_, bool noParserDebugSupport_)

Definition
Line 15 of scmpg/CodeGeneratorVisitor.cm


Member Function Details

Visit Member Function

public override void Visit(ActionParser& parser)

Definition
Line 552 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(AlternativeParser& parser)

Definition
Line 396 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(AnyParser& parser)

Definition
Line 30 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(CharParser& parser)

Definition
Line 73 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(CharSetParser& parser)

Definition
Line 101 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(DifferenceParser& parser)

Definition
Line 480 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(Domain& domain)

Definition
Line 1112 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(EmptyParser& parser)

Definition
Line 24 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(ExpectationParser& parser)

Definition
Line 275 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(GrammarParser& parser)

Definition
Line 863 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(GroupingParser& parser)

Definition
Line 331 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(KleeneParser& parser)

Definition
Line 178 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(ListParser& parser)

Definition
Line 548 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(NonterminalParser& parser)

Definition
Line 682 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(OptionalParser& parser)

Definition
Line 145 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(ParserFile& parserFile)

Definition
Line 1070 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(PositiveParser& parser)

Definition
Line 217 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(RuleParser& parser)

Definition
Line 721 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(SequenceParser& parser)

Definition
Line 352 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(StringParser& parser)

Definition
Line 85 of scmpg/CodeGeneratorVisitor.cm


Visit Member Function

public override void Visit(TokenParser& parser)

Definition
Line 43 of scmpg/CodeGeneratorVisitor.cm