|
Yate
|
The parsing context. More...
#include <yatescript.h>
Public Member Functions | |
| ParsePoint (const char *&expr, ExpEvaluator *eval=0, unsigned int lineNo=0, const char *fileName=0, const char *seps=0) | |
| ParsePoint & | operator= (ParsePoint &parsePoint) |
| ParsePoint & | operator= (unsigned int line) |
| operator const char *& () | |
| ParsePoint & | operator= (const char *newExpr) |
| ParsePoint & | operator++ () |
| ParsePoint & | operator++ (int unused) |
| char | firstChar () |
| unsigned | lineNumber () const |
Public Attributes | |
| const char * | m_expr |
| const char * | m_searchedSeps |
| unsigned int | m_count |
| char | m_foundSep |
| unsigned int | m_lineNo |
| ExpEvaluator * | m_eval |
| String | m_fileName |
The parsing context.
A class used to keep a parsing context
|
inlineexplicit |
Constructor
| expr | Expression to be parsed |
| eval | ExpEvaluator associated with this parsing context |
| lineNo | The line number that is currently parsed |
| fileName | File name associated with this context |
| seps | Searched separator during parsing |
References m_count, m_eval, m_expr, m_fileName, m_foundSep, m_lineNo, and m_searchedSeps.
Referenced by operator++(), operator++(), operator=(), operator=(), and operator=().
|
inline |
Get first char in the parsed expression
References m_expr.
|
inline |
Get line number of the parsed expression
References m_lineNo.
|
inline |
Cast operator to const char*&
References m_expr.
|
inline |
Prefix incrementation operator. Incrementes the internal expression
References m_expr, and ParsePoint().
|
inline |
Postfix incrementation operator. Incrementes the internal expression
References m_expr, and ParsePoint().
|
inline |
Assignement from const char*
References m_expr, and ParsePoint().
| ParsePoint & operator= | ( | ParsePoint & | parsePoint | ) |
Assignment operator
| parsePoint | Parsing context which is to be assigned to this parsing context |
References ParsePoint().
| ParsePoint & operator= | ( | unsigned int | line | ) |
| unsigned int m_count |
Number of how many times the parser must encouter a separator
Referenced by ParsePoint().
| ExpEvaluator* m_eval |
ExpEvaluator associated with this parsing context
Referenced by ParsePoint().
| const char* m_expr |
Expression to be parsed
Referenced by firstChar(), operator const char *&(), operator++(), operator++(), operator=(), and ParsePoint().
| String m_fileName |
File name associated for this context
Referenced by ParsePoint().
| char m_foundSep |
Separator that the parser encountered
Referenced by ParsePoint().
| unsigned int m_lineNo |
Line numbet at which parsing is taking place
Referenced by lineNumber(), and ParsePoint().
| const char* m_searchedSeps |
Searched instruction separators
Referenced by ParsePoint().