Lexer Class

Definition

Line 332 of scm2html/LexerFile.cm

Inheritance

Constructors & Destructor

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

Member Functions

public void AddAction(Action* action)
public void AddStatement(LexerStatement* stmt)
public void AddVariable(LexerVariable* variable)
public inline nothrow LexerStatement* GetStatement(const String<uchar>& tokenId) const
public void Parse(LexerContext& lexerContext)

Member Variables

private Actions actions
private String<uchar> api
private Map<String<uchar>, LexerStatement*, Less<String<uchar>>> lexerStatementMap
private List<UniquePtr<LexerStatement>> statements
private List<UniquePtr<LexerVariable>> variables

Constructor& Destructor Details

Lexer Constructor

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

Definition
Line 334 of scm2html/LexerFile.cm


Member Function Details

AddAction Member Function

public void AddAction(Action* action)

Definition
Line 348 of scm2html/LexerFile.cm


AddStatement Member Function

public void AddStatement(LexerStatement* stmt)

Definition
Line 338 of scm2html/LexerFile.cm


AddVariable Member Function

public void AddVariable(LexerVariable* variable)

Definition
Line 344 of scm2html/LexerFile.cm


GetStatement Member Function

public inline nothrow LexerStatement* GetStatement(const String<uchar>& tokenId)

Definition
Line 352 of scm2html/LexerFile.cm


Parse Member Function

public void Parse(LexerContext& lexerContext)

Definition
Line 364 of scm2html/LexerFile.cm