LexerStatement Class

Definition

Line 458 of scmlg/Model.cm

Constructors & Destructor

public LexerStatement(const String<uchar>& expr_, CompoundStatementNode* stmt_, int action_, int line_)

Member Functions

public int Action() const
public CompoundStatementNode* Code() const
public const Nfa& GetNfa() const
public int Index() const
public int Line() const
public void Process(LexerContext& lexerContext)
public bool Retract() const
public void SetIndex(int index_)

Member Variables

private int action
private String<uchar> expr
private int index
private int line
private Nfa nfa
private bool retract
private UniquePtr<CompoundStatementNode> stmt

Constructor& Destructor Details

LexerStatement Constructor

public LexerStatement(const String<uchar>& expr_, CompoundStatementNode* stmt_, int action_, int line_)

Definition
Line 460 of scmlg/Model.cm


Member Function Details

Action Member Function

public int Action()

Definition
Line 484 of scmlg/Model.cm


Code Member Function

public CompoundStatementNode* Code()

Definition
Line 476 of scmlg/Model.cm


GetNfa Member Function

public const Nfa& GetNfa()

Definition
Line 472 of scmlg/Model.cm


Index Member Function

public int Index()

Definition
Line 468 of scmlg/Model.cm


Line Member Function

public int Line()

Definition
Line 488 of scmlg/Model.cm


Process Member Function

public void Process(LexerContext& lexerContext)

Definition
Line 492 of scmlg/Model.cm


Retract Member Function

public bool Retract()

Definition
Line 480 of scmlg/Model.cm


SetIndex Member Function

public void SetIndex(int index_)

Definition
Line 464 of scmlg/Model.cm