RuleParser Class

Definition

Line 561 of scm2html/Parser.cm

Inheritance

Constructors & Destructor

public RuleParser(const String<uchar>& name_)

Member Functions

public override void Accept(Visitor& visitor)
public void AddNonterminal(NonterminalParser* nonterminal)
public void AddParamOrVariable(Parameter* paramOrVariable)
public Parser* Definition()
public GrammarParser* GetGrammar() const
public bool HasReturn() const
public const String<uchar>& Info() const
public const List<NonterminalParser*>& Nonterminals() const
public const List<UniquePtr<Parameter>>& Parameters() const
public Node* ReturnType() const
public void SetDefinition(Parser* definition_)
public void SetHasReturn()
public void SetInfo(const String<uchar>& info_)
public void SetReturnType(Node* returnType_)
public const List<UniquePtr<Variable>>& Variables() const

Member Variables

private UniquePtr<Parser> definition
private bool hasReturn
private String<uchar> info
private List<NonterminalParser*> nonterminals
private List<UniquePtr<Parameter>> parameters
private UniquePtr<Node> returnType
private List<UniquePtr<Variable>> variables

Constructor& Destructor Details

RuleParser Constructor

public RuleParser(const String<uchar>& name_)

Definition
Line 563 of scm2html/Parser.cm


Member Function Details

Accept Member Function

public override void Accept(Visitor& visitor)

Definition
Line 644 of scm2html/Parser.cm


AddNonterminal Member Function

public void AddNonterminal(NonterminalParser* nonterminal)

Definition
Line 636 of scm2html/Parser.cm


AddParamOrVariable Member Function

public void AddParamOrVariable(Parameter* paramOrVariable)

Definition
Line 621 of scm2html/Parser.cm


Definition Member Function

public Parser* Definition()

Definition
Line 567 of scm2html/Parser.cm


GetGrammar Member Function

public GrammarParser* GetGrammar()

Definition
Line 599 of scm2html/Parser.cm


HasReturn Member Function

public bool HasReturn()

Definition
Line 595 of scm2html/Parser.cm


Info Member Function

public const String<uchar>& Info()

Definition
Line 587 of scm2html/Parser.cm


Nonterminals Member Function

public const List<NonterminalParser*>& Nonterminals()

Definition
Line 583 of scm2html/Parser.cm


Parameters Member Function

public const List<UniquePtr<Parameter>>& Parameters()

Definition
Line 571 of scm2html/Parser.cm


ReturnType Member Function

public Node* ReturnType()

Definition
Line 579 of scm2html/Parser.cm


SetDefinition Member Function

public void SetDefinition(Parser* definition_)

Definition
Line 617 of scm2html/Parser.cm


SetHasReturn Member Function

public void SetHasReturn()

Definition
Line 591 of scm2html/Parser.cm


SetInfo Member Function

public void SetInfo(const String<uchar>& info_)

Definition
Line 640 of scm2html/Parser.cm


SetReturnType Member Function

public void SetReturnType(Node* returnType_)

Definition
Line 632 of scm2html/Parser.cm


Variables Member Function

public const List<UniquePtr<Variable>>& Variables()

Definition
Line 575 of scm2html/Parser.cm