src
Public Types | Public Member Functions | Public Attributes | List of all members
re2c::ScannerState Struct Reference

#include <scanner.h>

Inheritance diagram for re2c::ScannerState:
Inheritance graph
[legend]

Public Types

enum  lexer_state_t { LEX_NORMAL, LEX_FLEX_NAME }
 

Public Member Functions

 ScannerState ()
 
 ScannerState (const ScannerState &)
 
ScannerStateoperator= (const ScannerState &)
 

Public Attributes

char * tok
 
char * ptr
 
char * cur
 
char * pos
 
char * ctx
 
char * bot
 
char * lim
 
char * top
 
char * eof
 
ptrdiff_t tchar
 
uint32_t tline
 
uint32_t cline
 
bool in_parse
 
lexer_state_t lexer_state
 

Detailed Description

Definition at line 19 of file scanner.h.

Member Enumeration Documentation

Enumerator
LEX_NORMAL 
LEX_FLEX_NAME 

Definition at line 21 of file scanner.h.

Constructor & Destructor Documentation

re2c::ScannerState::ScannerState ( )

Definition at line 24 of file scanner.cc.

25  : tok (NULL)
26  , ptr (NULL)
27  , cur (NULL)
28  , pos (NULL)
29  , ctx (NULL)
30  , bot (NULL)
31  , lim (NULL)
32  , top (NULL)
33  , eof (NULL)
34  , tchar (0)
35  , tline (0)
36  , cline (1)
37  , in_parse (false)
39 {}
uint32_t cline
Definition: scanner.h:42
uint32_t tline
Definition: scanner.h:41
lexer_state_t lexer_state
Definition: scanner.h:45
ptrdiff_t tchar
Definition: scanner.h:40
re2c::ScannerState::ScannerState ( const ScannerState s)

Definition at line 41 of file scanner.cc.

42  : tok (s.tok)
43  , ptr (s.ptr)
44  , cur (s.cur)
45  , pos (s.pos)
46  , ctx (s.ctx)
47  , bot (s.bot)
48  , lim (s.lim)
49  , top (s.top)
50  , eof (s.eof)
51  , tchar (s.tchar)
52  , tline (s.tline)
53  , cline (s.cline)
54  , in_parse (s.in_parse)
55  , lexer_state (s.lexer_state)
56 {}
uint32_t cline
Definition: scanner.h:42
uint32_t tline
Definition: scanner.h:41
lexer_state_t lexer_state
Definition: scanner.h:45
ptrdiff_t tchar
Definition: scanner.h:40

Member Function Documentation

ScannerState & re2c::ScannerState::operator= ( const ScannerState s)

Definition at line 58 of file scanner.cc.

59 {
60  this->~ScannerState ();
61  new (this) ScannerState (s);
62  return * this;
63 }

Member Data Documentation

char* re2c::ScannerState::bot

Definition at line 35 of file scanner.h.

uint32_t re2c::ScannerState::cline

Definition at line 42 of file scanner.h.

char* re2c::ScannerState::ctx

Definition at line 32 of file scanner.h.

char* re2c::ScannerState::cur

Definition at line 30 of file scanner.h.

char* re2c::ScannerState::eof

Definition at line 38 of file scanner.h.

bool re2c::ScannerState::in_parse

Definition at line 44 of file scanner.h.

lexer_state_t re2c::ScannerState::lexer_state

Definition at line 45 of file scanner.h.

char* re2c::ScannerState::lim

Definition at line 36 of file scanner.h.

char* re2c::ScannerState::pos

Definition at line 31 of file scanner.h.

char* re2c::ScannerState::ptr

Definition at line 29 of file scanner.h.

ptrdiff_t re2c::ScannerState::tchar

Definition at line 40 of file scanner.h.

uint32_t re2c::ScannerState::tline

Definition at line 41 of file scanner.h.

char* re2c::ScannerState::tok

Definition at line 28 of file scanner.h.

char* re2c::ScannerState::top

Definition at line 37 of file scanner.h.


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