ScummVM
lingo-lex.cpp File Reference

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Namespaces

 Director
 

Typedefs

typedef int8_t flex_int8_t
 
typedef uint8_t flex_uint8_t
 
typedef int16_t flex_int16_t
 
typedef uint16_t flex_uint16_t
 
typedef int32_t flex_int32_t
 
typedef uint32_t flex_uint32_t
 
typedef uint64_t flex_uint64_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void yyrestart (FILE *input_file)
 Immediately switch to a different input stream. More...
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer. More...
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state. More...
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer. More...
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters. More...
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack. More...
 
void yypop_buffer_state (void)
 Removes and deletes the top of the stack, if present. More...
 
static void yyensure_buffer_stack (void)
 
static void yy_load_buffer_state (void)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
 Setup the input buffer state to scan directly from a user-specified character buffer. More...
 
YY_BUFFER_STATE yy_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string. More...
 
YY_BUFFER_STATE yy_scan_bytes (yyconst char *yybytes, yy_size_t _yybytes_len)
 Setup the input buffer state to scan the given bytes. More...
 
void * yyalloc (yy_size_t)
 
void * yyrealloc (void *, yy_size_t)
 
void yyfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yy_fatal_error (yyconst char msg[])
 
int yyparse ()
 
static void count ()
 
static int checkImmediate (int token)
 
static int yy_init_globals (void)
 
int yylex_destroy (void)
 
int yyget_debug (void)
 
void yyset_debug (int debug_flag)
 
YY_EXTRA_TYPE yyget_extra (void)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * yyget_in (void)
 Get the input stream. More...
 
void yyset_in (FILE *in_str)
 Set the input stream. More...
 
FILE * yyget_out (void)
 Get the output stream. More...
 
void yyset_out (FILE *out_str)
 
yy_size_t yyget_leng (void)
 Get the length of the current token. More...
 
char * yyget_text (void)
 Get the current token. More...
 
int yyget_lineno (void)
 Get the current line number. More...
 
void yyset_lineno (int line_number)
 Set the current line number. More...
 
int yywrap (void)
 
static void yy_flex_strncpy (char *, yyconst char *, int)
 
static int yy_flex_strlen (yyconst char *)
 
static int yyinput (void)
 
static int input (void)
 
int yylex (void)
 
 if (!(yy_init))
 
 while (1)
 
static void yy_fatal_error (yyconst char *msg)
 

Variables

yy_size_t yyleng
 
FILE * yyin = (FILE *) 0
 
FILE * yyout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 index of top of stack. More...
 
static size_t yy_buffer_stack_max = 0
 capacity of stack. More...
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 Stack as an array. More...
 
static char yy_hold_char
 
static yy_size_t yy_n_chars
 
static char * yy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int yylineno = 1
 
char * yytext
 
static yyconst flex_int16_t yy_accept [366]
 
static yyconst flex_int32_t yy_ec [256]
 
static yyconst flex_int32_t yy_meta [66]
 
static yyconst flex_int16_t yy_base [383]
 
static yyconst flex_int16_t yy_def [383]
 
static yyconst flex_int16_t yy_nxt [1047]
 
static yyconst flex_int16_t yy_chk [1047]
 
static yy_state_type yy_last_accepting_state
 
static char * yy_last_accepting_cpos
 
int yy_flex_debug = 0
 
 YY_DECL
 The main scanner function which does all the work. More...
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 
int yydebug
 

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 46 of file lingo-lex.cpp.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 48 of file lingo-lex.cpp.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 44 of file lingo-lex.cpp.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 47 of file lingo-lex.cpp.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 49 of file lingo-lex.cpp.

◆ flex_uint64_t

typedef uint64_t flex_uint64_t

Definition at line 50 of file lingo-lex.cpp.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 45 of file lingo-lex.cpp.

◆ YY_BUFFER_STATE

Definition at line 154 of file lingo-lex.cpp.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 339 of file lingo-lex.cpp.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 159 of file lingo-lex.cpp.

◆ yy_state_type

typedef int yy_state_type

Definition at line 343 of file lingo-lex.cpp.

Function Documentation

◆ checkImmediate()

static int checkImmediate ( int  token)
static

Definition at line 871 of file lingo-lex.cpp.

◆ count()

static void count ( )
static

Definition at line 848 of file lingo-lex.cpp.

◆ if()

if ( yy_init)

Definition at line 1069 of file lingo-lex.cpp.

◆ input()

static int input ( void  )
static

Definition at line 1955 of file level9_main.cpp.

◆ while()

while ( )

Definition at line 1095 of file lingo-lex.cpp.

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 2270 of file lingo-lex.cpp.

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

Definition at line 2298 of file lingo-lex.cpp.

◆ yy_fatal_error() [1/2]

static void yy_fatal_error ( yyconst char *  msg)
static

Definition at line 2555 of file lingo-lex.cpp.

◆ yy_fatal_error() [2/2]

static void yy_fatal_error ( yyconst char  msg[])
static

◆ yy_flex_strlen()

static int yy_flex_strlen ( yyconst char *  s)
static

Definition at line 2722 of file lingo-lex.cpp.

◆ yy_flex_strncpy()

static void yy_flex_strncpy ( char *  s1,
yyconst char *  s2,
int  n 
)
static

Definition at line 2713 of file lingo-lex.cpp.

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 2345 of file lingo-lex.cpp.

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

Definition at line 1937 of file lingo-lex.cpp.

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 2071 of file lingo-lex.cpp.

◆ yy_init_buffer()

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 2317 of file lingo-lex.cpp.

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

Definition at line 2658 of file lingo-lex.cpp.

◆ yy_load_buffer_state()

static void yy_load_buffer_state ( void  )
static

Definition at line 2256 of file lingo-lex.cpp.

◆ yy_scan_buffer()

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 2472 of file lingo-lex.cpp.

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( yyconst char *  yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to yylex() will scan from a copy of bytes.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 2522 of file lingo-lex.cpp.

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string.

The next call to yylex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use yy_scan_bytes() instead.

Definition at line 2509 of file lingo-lex.cpp.

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 2225 of file lingo-lex.cpp.

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 2104 of file lingo-lex.cpp.

◆ yyalloc()

void * yyalloc ( yy_size_t  size)

Definition at line 2732 of file lingo-lex.cpp.

◆ yyensure_buffer_stack()

static void yyensure_buffer_stack ( void  )
static

Definition at line 2423 of file lingo-lex.cpp.

◆ yyfree()

void yyfree ( void *  ptr)

Definition at line 2749 of file lingo-lex.cpp.

◆ yyget_debug()

int yyget_debug ( void  )

Definition at line 2648 of file lingo-lex.cpp.

◆ yyget_extra()

YY_EXTRA_TYPE yyget_extra ( void  )

◆ yyget_in()

FILE * yyget_in ( void  )

Get the input stream.

Definition at line 2592 of file lingo-lex.cpp.

◆ yyget_leng()

yy_size_t yyget_leng ( void  )

Get the length of the current token.

Definition at line 2608 of file lingo-lex.cpp.

◆ yyget_lineno()

int yyget_lineno ( void  )

Get the current line number.

Definition at line 2583 of file lingo-lex.cpp.

◆ yyget_out()

FILE * yyget_out ( void  )

Get the output stream.

Definition at line 2600 of file lingo-lex.cpp.

◆ yyget_text()

char * yyget_text ( void  )

Get the current token.

Definition at line 2617 of file lingo-lex.cpp.

◆ yyinput()

static int yyinput ( void  )
static

Definition at line 2129 of file lingo-lex.cpp.

◆ yylex()

int yylex ( void  )

◆ yylex_destroy()

int yylex_destroy ( void  )

Definition at line 2687 of file lingo-lex.cpp.

◆ yyparse()

int yyparse ( )

Definition at line 1812 of file lingo-gr.cpp.

◆ yypop_buffer_state()

void yypop_buffer_state ( void  )

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Definition at line 2404 of file lingo-lex.cpp.

◆ yypush_buffer_state()

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 2374 of file lingo-lex.cpp.

◆ yyrealloc()

void * yyrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2737 of file lingo-lex.cpp.

◆ yyrestart()

void yyrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 2208 of file lingo-lex.cpp.

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

Definition at line 2653 of file lingo-lex.cpp.

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined)

◆ yyset_in()

void yyset_in ( FILE *  in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
yy_switch_to_buffer

Definition at line 2638 of file lingo-lex.cpp.

◆ yyset_lineno()

void yyset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2626 of file lingo-lex.cpp.

◆ yyset_out()

void yyset_out ( FILE *  out_str)

Definition at line 2643 of file lingo-lex.cpp.

◆ yywrap()

int yywrap ( void  )

Variable Documentation

◆ yy_accept

yyconst flex_int16_t yy_accept[366]
static

Definition at line 376 of file lingo-lex.cpp.

◆ yy_act

register int yy_act

Definition at line 1062 of file lingo-lex.cpp.

◆ yy_base

yyconst flex_int16_t yy_base[383]
static

Definition at line 463 of file lingo-lex.cpp.

◆ yy_bp

register char * yy_bp

Definition at line 1061 of file lingo-lex.cpp.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 256 of file lingo-lex.cpp.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 255 of file lingo-lex.cpp.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 254 of file lingo-lex.cpp.

◆ yy_c_buf_p

char* yy_c_buf_p = (char *) 0
static

Definition at line 279 of file lingo-lex.cpp.

◆ yy_chk

yyconst flex_int16_t yy_chk[1047]
static

Definition at line 674 of file lingo-lex.cpp.

◆ yy_cp

register char* yy_cp

Definition at line 1061 of file lingo-lex.cpp.

◆ YY_DECL

YY_DECL
Initial value:
{
register yy_state_type yy_current_state

The main scanner function which does all the work.

Definition at line 1059 of file lingo-lex.cpp.

◆ yy_def

yyconst flex_int16_t yy_def[383]
static

Definition at line 509 of file lingo-lex.cpp.

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 286 of file lingo-lex.cpp.

◆ yy_ec

yyconst flex_int32_t yy_ec[256]
static

Definition at line 420 of file lingo-lex.cpp.

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 797 of file lingo-lex.cpp.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 274 of file lingo-lex.cpp.

◆ yy_init

int yy_init = 0
static

Definition at line 280 of file lingo-lex.cpp.

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 794 of file lingo-lex.cpp.

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 793 of file lingo-lex.cpp.

◆ yy_meta

yyconst flex_int32_t yy_meta[66]
static
Initial value:
=
{ 0,
1, 2, 3, 3, 2, 1, 1, 1, 1, 1,
1, 1, 4, 1, 1, 1, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
6, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 1
}

Definition at line 452 of file lingo-lex.cpp.

◆ yy_n_chars

yy_size_t yy_n_chars
static

Definition at line 275 of file lingo-lex.cpp.

◆ yy_nxt

yyconst flex_int16_t yy_nxt[1047]
static

Definition at line 555 of file lingo-lex.cpp.

◆ yy_start

int yy_start = 0
static

Definition at line 281 of file lingo-lex.cpp.

◆ yydebug

int yydebug

Definition at line 1444 of file lingo-gr.cpp.

◆ yyin

FILE * yyin = (FILE *) 0

Definition at line 341 of file lingo-lex.cpp.

◆ yyleng

yy_size_t yyleng

Definition at line 276 of file lingo-lex.cpp.

◆ yylineno

int yylineno = 1

Definition at line 347 of file lingo-lex.cpp.

◆ yyout

FILE * yyout = (FILE *) 0

Definition at line 341 of file lingo-lex.cpp.

◆ yytext

char * yytext

Definition at line 806 of file lingo-lex.cpp.

yy_state_type
int yy_state_type
Definition: lingo-lex.cpp:343