Motr  M0
ff2c_context Struct Reference

#include <lex.h>

Collaboration diagram for ff2c_context:
Collaboration graph

Data Fields

const char * fc_origin
 
size_t fc_size
 
const char * fc_pt
 
size_t fc_remain
 
struct ff2c_token fc_stack [FF2C_CTX_STACK_MAX]
 
int fc_depth
 
int fc_line
 
int fc_col
 

Detailed Description

Lexer context.

Definition at line 123 of file lex.h.

Field Documentation

◆ fc_col

int fc_col

Current column, defined as the number of characters between the point and previous
or beginning of the input buffer, whichever is less.

Definition at line 142 of file lex.h.

◆ fc_depth

int fc_depth

Current stack depth. 0 means the stack is empty.

Definition at line 135 of file lex.h.

◆ fc_line

int fc_line

Current line, defined as the number of
symbols before the point.

Definition at line 138 of file lex.h.

◆ fc_origin

const char* fc_origin

Input buffer.

Definition at line 125 of file lex.h.

◆ fc_pt

const char* fc_pt

Current position in the input buffer ("point").

Definition at line 129 of file lex.h.

◆ fc_remain

size_t fc_remain

Number of characters remaining in the input buffer.

Definition at line 131 of file lex.h.

◆ fc_size

size_t fc_size

Size of input buffer.

Definition at line 127 of file lex.h.

◆ fc_stack

struct ff2c_token fc_stack[FF2C_CTX_STACK_MAX]

Stack of returned tokens.

Definition at line 133 of file lex.h.


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