top | up | prev | next

Expression Class

Definition at line 97 of LexerFile.hpp

Constructors

Expression(int index_, const std::u32string& id_, const std::u32string& value_, int line_)

Member Functions

const std::u32string& Id() const
int Index() const
int Line() const
void Parse(LexerContext& lexerContext)
RegExpression* RegEx() const
void SetRegEx(RegExpression* regEx_)
const std::u32string& Value() const

Member Variables

std::u32string id
int index
int line
std::unique_ptr<RegExpression> regEx
std::u32string value

Constructor Details

Expression Constructor

sng2html::sng2html::Expression::Expression(int index_, const std::u32string& id_, const std::u32string& value_, int line_)

Definition at line 96 of LexerFile.cpp :
 96 : index(index_)id(id_)value(value_)line(line_)
 97 {
 98 }


Declaration at line 100 of LexerFile.hpp


Member Function Details

Id Member Function

const std::u32string& sng2html::sng2html::Expression::Id() const

Definition at line 102 of LexerFile.hpp :
102 { return id; }

Called by: sng2html::sng2html::Expressions::Add


Index Member Function

int sng2html::sng2html::Expression::Index() const

Definition at line 101 of LexerFile.hpp :
101 { return index; }

Called by: sng2html::sng2html::Expressions::Add


Line Member Function

int sng2html::sng2html::Expression::Line() const

Definition at line 104 of LexerFile.hpp :
104 { return line; }


Parse Member Function

void sng2html::sng2html::Expression::Parse(LexerContext & lexerContext)

Definition at line 100 of LexerFile.cpp :
101 {
102     RegExLexer lexer(value""0);
103     regEx = RegExParser::Parse(lexer&lexerContext);
104 }


Declaration at line 105 of LexerFile.hpp

Calls: RegExParser::Parse


RegEx Member Function

RegExpression * sng2html::sng2html::Expression::RegEx() const

Definition at line 107 of LexerFile.hpp :
107 { return regEx.get(); }

Called by: sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit


SetRegEx Member Function

void sng2html::sng2html::Expression::SetRegEx(RegExpression * regEx_)

Definition at line 106 of LexerFile.hpp :
106 { regEx.reset(regEx_); }

Called by: sng2html::sng2html::Expressions::Parse


Value Member Function

const std::u32string& sng2html::sng2html::Expression::Value() const

Definition at line 103 of LexerFile.hpp :
103 { return value; }


top | up | prev | next