Grammar Class

Definition

Line 38 of scm2html/Grammar.cm

Constructors & Destructor

public Grammar(const String<uchar>& name_, const String<uchar>& title_, const String<char>& htmlFilePath_, GrammarParser* parser_)
public Grammar(const String<uchar>& name_, const String<uchar>& title_, const String<char>& htmlFilePath_, LexerFile* lexerFile_)

Member Functions

public void AddRule(Rule* rule)
public Kind GetKind() const
public const String<uchar>& HtmlFileName() const
public const String<char>& HtmlFilePath() const
public const String<uchar>& Name() const
public GrammarParser* Parser() const
public const List<UniquePtr<Rule>>& Rules() const
public const String<uchar>& Title() const

Enumerated Types

public enum Kind

Member Variables

private String<char> htmfFilePath
private String<uchar> htmlFileName
private String<char> htmlFilePath
private Kind kind
private LexerFile* lexerFile
private String<uchar> name
private GrammarParser* parser
private List<UniquePtr<Rule>> rules
private String<uchar> title

Constructor& Destructor Details

Grammar Constructor

public Grammar(const String<uchar>& name_, const String<uchar>& title_, const String<char>& htmlFilePath_, GrammarParser* parser_)

Definition
Line 44 of scm2html/Grammar.cm


Grammar Constructor

public Grammar(const String<uchar>& name_, const String<uchar>& title_, const String<char>& htmlFilePath_, LexerFile* lexerFile_)

Definition
Line 40 of scm2html/Grammar.cm


Member Function Details

AddRule Member Function

public void AddRule(Rule* rule)

Definition
Line 80 of scm2html/Grammar.cm


GetKind Member Function

public Kind GetKind()

Definition
Line 52 of scm2html/Grammar.cm


HtmlFileName Member Function

public const String<uchar>& HtmlFileName()

Definition
Line 72 of scm2html/Grammar.cm


HtmlFilePath Member Function

public const String<char>& HtmlFilePath()

Definition
Line 64 of scm2html/Grammar.cm


Name Member Function

public const String<uchar>& Name()

Definition
Line 56 of scm2html/Grammar.cm


Parser Member Function

public GrammarParser* Parser()

Definition
Line 68 of scm2html/Grammar.cm


Rules Member Function

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

Definition
Line 76 of scm2html/Grammar.cm


Title Member Function

public const String<uchar>& Title()

Definition
Line 60 of scm2html/Grammar.cm