GrammarParser Class

Definition

Line 657 of scm2html/Parser.cm

Inheritance

Constructors & Destructor

public GrammarParser(const String<uchar>& name_, const String<uchar>& api_)

Member Functions

public override void Accept(Visitor& visitor)
public void AddRule(RuleParser* rule)
public void AddRuleInfo(const String<uchar>& ruleName, const String<uchar>& ruleInfo)
public void AddUsing(const String<uchar>& using_)
public const String<uchar>& Api() const
public RuleParser* GetRule(const String<uchar>& ruleName) const
public override bool IsGrammar() const
public const String<uchar>& Lexer() const
public bool Main() const
public void MapRule(RuleParser* rule)
public const List<Pair<String<uchar>, String<uchar>>>& RuleInfos() const
public const List<UniquePtr<RuleParser>>& Rules() const
public void SetLexer(const String<uchar>& lexer_)
public void SetMain()
public const List<String<uchar>>& Usings() const

Member Variables

private String<uchar> api
private String<uchar> lexer
private bool main
private List<Pair<String<uchar>, String<uchar>>> ruleInfos
private Map<String<uchar>, RuleParser*, Less<String<uchar>>> ruleMap
private List<UniquePtr<RuleParser>> rules
private List<String<uchar>> usings

Constructor& Destructor Details

GrammarParser Constructor

public GrammarParser(const String<uchar>& name_, const String<uchar>& api_)

Definition
Line 659 of scm2html/Parser.cm


Member Function Details

Accept Member Function

public override void Accept(Visitor& visitor)

Definition
Line 729 of scm2html/Parser.cm


AddRule Member Function

public void AddRule(RuleParser* rule)

Definition
Line 699 of scm2html/Parser.cm


AddRuleInfo Member Function

public void AddRuleInfo(const String<uchar>& ruleName, const String<uchar>& ruleInfo)

Definition
Line 721 of scm2html/Parser.cm


AddUsing Member Function

public void AddUsing(const String<uchar>& using_)

Definition
Line 695 of scm2html/Parser.cm


Api Member Function

public const String<uchar>& Api()

Definition
Line 663 of scm2html/Parser.cm


GetRule Member Function

public RuleParser* GetRule(const String<uchar>& ruleName)

Definition
Line 709 of scm2html/Parser.cm


IsGrammar Member Function

public override bool IsGrammar()

Definition
Line 725 of scm2html/Parser.cm


Lexer Member Function

public const String<uchar>& Lexer()

Definition
Line 683 of scm2html/Parser.cm


Main Member Function

public bool Main()

Definition
Line 671 of scm2html/Parser.cm


MapRule Member Function

public void MapRule(RuleParser* rule)

Definition
Line 705 of scm2html/Parser.cm


RuleInfos Member Function

public const List<Pair<String<uchar>, String<uchar>>>& RuleInfos()

Definition
Line 691 of scm2html/Parser.cm


Rules Member Function

public const List<UniquePtr<RuleParser>>& Rules()

Definition
Line 687 of scm2html/Parser.cm


SetLexer Member Function

public void SetLexer(const String<uchar>& lexer_)

Definition
Line 679 of scm2html/Parser.cm


SetMain Member Function

public void SetMain()

Definition
Line 667 of scm2html/Parser.cm


Usings Member Function

public const List<String<uchar>>& Usings()

Definition
Line 675 of scm2html/Parser.cm