RuleParser Class

Definition

Line 507 of scmpg/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 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 509 of scmpg/Parser.cm


Member Function Details

Accept Member Function

public override void Accept(Visitor& visitor)

Definition
Line 572 of scmpg/Parser.cm


AddNonterminal Member Function

public void AddNonterminal(NonterminalParser* nonterminal)

Definition
Line 564 of scmpg/Parser.cm


AddParamOrVariable Member Function

public void AddParamOrVariable(Parameter* paramOrVariable)

Definition
Line 549 of scmpg/Parser.cm


Definition Member Function

public Parser* Definition()

Definition
Line 513 of scmpg/Parser.cm


HasReturn Member Function

public bool HasReturn()

Definition
Line 541 of scmpg/Parser.cm


Info Member Function

public const String<uchar>& Info()

Definition
Line 533 of scmpg/Parser.cm


Nonterminals Member Function

public const List<NonterminalParser*>& Nonterminals()

Definition
Line 529 of scmpg/Parser.cm


Parameters Member Function

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

Definition
Line 517 of scmpg/Parser.cm


ReturnType Member Function

public Node* ReturnType()

Definition
Line 525 of scmpg/Parser.cm


SetDefinition Member Function

public void SetDefinition(Parser* definition_)

Definition
Line 545 of scmpg/Parser.cm


SetHasReturn Member Function

public void SetHasReturn()

Definition
Line 537 of scmpg/Parser.cm


SetInfo Member Function

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

Definition
Line 568 of scmpg/Parser.cm


SetReturnType Member Function

public void SetReturnType(Node* returnType_)

Definition
Line 560 of scmpg/Parser.cm


Variables Member Function

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

Definition
Line 521 of scmpg/Parser.cm