DynGenPar
Dynamic Generalized Parser
Public Member Functions | Public Attributes | List of all members
DynGenPar::TextPosition Struct Reference

text position More...

Public Member Functions

 TextPosition ()
 
 TextPosition (int l, int c)
 
void reset ()
 
void countCharacter (unsigned char c)
 convenience method to count a character More...
 

Public Attributes

int line
 line, zero-based More...
 
int col
 column, zero-based More...
 

Detailed Description

text position

stored in the lexer state by some text-oriented token sources to allow correct error reporting

Definition at line 929 of file dyngenpar.h.

Constructor & Destructor Documentation

◆ TextPosition() [1/2]

DynGenPar::TextPosition::TextPosition ( )
inline

Definition at line 930 of file dyngenpar.h.

◆ TextPosition() [2/2]

DynGenPar::TextPosition::TextPosition ( int  l,
int  c 
)
inline

Definition at line 931 of file dyngenpar.h.

Member Function Documentation

◆ countCharacter()

void DynGenPar::TextPosition::countCharacter ( unsigned char  c)
inline

convenience method to count a character

Definition at line 936 of file dyngenpar.h.

◆ reset()

void DynGenPar::TextPosition::reset ( )
inline

Definition at line 933 of file dyngenpar.h.

Member Data Documentation

◆ col

int DynGenPar::TextPosition::col

column, zero-based

Definition at line 947 of file dyngenpar.h.

◆ line

int DynGenPar::TextPosition::line

line, zero-based

Definition at line 946 of file dyngenpar.h.


The documentation for this struct was generated from the following file: