ug4
lexer.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "lua_parser_class.h"
#include "parser.hpp"
#include <unistd.h>

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define BEGIN   (yy_start) = 1 + 2 *
 
#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define FLEX_BETA
 
#define FLEX_SCANNER
 
#define FLEXINT_H
 
#define INITIAL   0
 
#define INT16_MAX   (32767)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MAX   (2147483647)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT8_MIN   (-128)
 
#define REJECT   reject_used_but_not_detected
 
#define SIZE_MAX   (~(size_t)0)
 
#define THE_PREFIX   ug4_lua_YY_
 
#define ug4_lua_YY__create_buffer_ALREADY_DEFINED
 
#define ug4_lua_YY__delete_buffer_ALREADY_DEFINED
 
#define ug4_lua_YY__flex_debug_ALREADY_DEFINED
 
#define ug4_lua_YY__flush_buffer_ALREADY_DEFINED
 
#define ug4_lua_YY__init_buffer_ALREADY_DEFINED
 
#define ug4_lua_YY__load_buffer_state_ALREADY_DEFINED
 
#define ug4_lua_YY__scan_buffer_ALREADY_DEFINED
 
#define ug4_lua_YY__scan_bytes_ALREADY_DEFINED
 
#define ug4_lua_YY__scan_string_ALREADY_DEFINED
 
#define ug4_lua_YY__switch_to_buffer_ALREADY_DEFINED
 
#define ug4_lua_YY_alloc_ALREADY_DEFINED
 
#define ug4_lua_YY_ensure_buffer_stack_ALREADY_DEFINED
 
#define ug4_lua_YY_free_ALREADY_DEFINED
 
#define ug4_lua_YY_in_ALREADY_DEFINED
 
#define ug4_lua_YY_leng_ALREADY_DEFINED
 
#define ug4_lua_YY_lex_ALREADY_DEFINED
 
#define ug4_lua_YY_lineno_ALREADY_DEFINED
 
#define ug4_lua_YY_out_ALREADY_DEFINED
 
#define ug4_lua_YY_pop_buffer_state_ALREADY_DEFINED
 
#define ug4_lua_YY_push_buffer_state_ALREADY_DEFINED
 
#define ug4_lua_YY_realloc_ALREADY_DEFINED
 
#define ug4_lua_YY_restart_ALREADY_DEFINED
 
#define ug4_lua_YY_text_ALREADY_DEFINED
 
#define ug4_lua_YY_wrap_ALREADY_DEFINED
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define UINT8_MAX   (255U)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define YY_BREAK   /*LINTED*/break;
 
#define YY_BUF_SIZE   16384
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define yy_create_buffer   ug4_lua_YY__create_buffer
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_DECL   int yylex (void)
 
#define YY_DECL_IS_OURS   1
 
#define yy_delete_buffer   ug4_lua_YY__delete_buffer
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   39
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_EXIT_FAILURE   2
 
#define YY_EXTRA_TYPE   void *
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define yy_flex_debug   ug4_lua_YY__flex_debug
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define yy_flush_buffer   ug4_lua_YY__flush_buffer
 
#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )
 
#define yy_init_buffer   ug4_lua_YY__init_buffer
 
#define YY_INPUT(buf, result, max_size)
 
#define YY_INT_ALIGNED   short int
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(ptr)
 
#define yy_load_buffer_state   ug4_lua_YY__load_buffer_state
 
#define YY_MORE_ADJ   0
 
#define yy_new_buffer   yy_create_buffer
 
#define YY_NEW_FILE   yyrestart( yyin )
 
#define YY_NULL   0
 
#define YY_NUM_RULES   38
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_RULE_SETUP    YY_USER_ACTION
 
#define YY_SC_TO_UI(c)   ((YY_CHAR) (c))
 
#define yy_scan_buffer   ug4_lua_YY__scan_buffer
 
#define yy_scan_bytes   ug4_lua_YY__scan_bytes
 
#define yy_scan_string   ug4_lua_YY__scan_string
 
#define yy_set_bol(at_bol)
 
#define yy_set_interactive(is_interactive)
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YY_START_STACK_INCR   25
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define yy_switch_to_buffer   ug4_lua_YY__switch_to_buffer
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define yyalloc   ug4_lua_YY_alloc
 
#define yyconst   const
 
#define yyensure_buffer_stack   ug4_lua_YY_ensure_buffer_stack
 
#define yyerror   ug4_lua_YY_error
 
#define yyfree   ug4_lua_YY_free
 
#define yyget_debug   ug4_lua_YY_get_debug
 
#define yyget_extra   ug4_lua_YY_get_extra
 
#define yyget_in   ug4_lua_YY_get_in
 
#define yyget_leng   ug4_lua_YY_get_leng
 
#define yyget_lineno   ug4_lua_YY_get_lineno
 
#define yyget_out   ug4_lua_YY_get_out
 
#define yyget_text   ug4_lua_YY_get_text
 
#define yyin   ug4_lua_YY_in
 
#define yyleng   ug4_lua_YY_leng
 
#define yyless(n)
 
#define yyless(n)
 
#define yylex   ug4_lua_YY_lex
 
#define yylex_destroy   ug4_lua_YY_lex_destroy
 
#define yylex_init   ug4_lua_YY_lex_init
 
#define yylex_init_extra   ug4_lua_YY_lex_init_extra
 
#define yylineno   ug4_lua_YY_lineno
 
#define yylval   ug4_lua_YY_lval
 
#define yymore()   yymore_used_but_not_detected
 
#define yynoreturn
 
#define yyout   ug4_lua_YY_out
 
#define yypop_buffer_state   ug4_lua_YY_pop_buffer_state
 
#define yypush_buffer_state   ug4_lua_YY_push_buffer_state
 
#define yyrealloc   ug4_lua_YY_realloc
 
#define yyrestart   ug4_lua_YY_restart
 
#define yyset_debug   ug4_lua_YY_set_debug
 
#define yyset_extra   ug4_lua_YY_set_extra
 
#define yyset_in   ug4_lua_YY_set_in
 
#define yyset_lineno   ug4_lua_YY_set_lineno
 
#define yyset_out   ug4_lua_YY_set_out
 
#define YYSTATE   YY_START
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext   ug4_lua_YY_text
 
#define yytext_ptr   yytext
 
#define yywrap   ug4_lua_YY_wrap
 

Typedefs

typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef signed char flex_int8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef unsigned char flex_uint8_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef flex_uint8_t YY_CHAR
 
typedef size_t yy_size_t
 
typedef int yy_state_type
 

Functions

 if (!(yy_init))
 
static int input (void)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 
static void yynoreturn yy_fatal_error (const char *msg)
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 
static int yy_get_next_buffer (void)
 
static yy_state_type yy_get_previous_state (void)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
static int yy_init_globals (void)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE yy_scan_bytes (const char *bytes, int len)
 
YY_BUFFER_STATE yy_scan_string (const char *yy_str)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
void * yyalloc (yy_size_t)
 
void yyerror (const char *)
 
void yyfree (void *)
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void * yyrealloc (void *, yy_size_t)
 
void yyrestart (FILE *input_file)
 
void yyset_debug (int debug_flag)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
void yyset_in (FILE *_in_str)
 
void yyset_lineno (int _line_number)
 
void yyset_out (FILE *_out_str)
 
static void yyunput (int c, char *buf_ptr)
 

Variables

LUAParserClassglobalP
 
static const flex_int16_t yy_accept [120]
 
int yy_act
 
static const flex_int16_t yy_base [122]
 
char * yy_bp
 
static YY_BUFFER_STATEyy_buffer_stack = nullptr
 
static size_t yy_buffer_stack_max = 0
 
static size_t yy_buffer_stack_top = 0
 
static char * yy_c_buf_p = nullptr
 
static const flex_int16_t yy_chk [196]
 
char * yy_cp
 
 YY_DECL
 
static const flex_int16_t yy_def [122]
 
static int yy_did_buffer_switch_on_eof
 
static const YY_CHAR yy_ec [256]
 
int yy_flex_debug = 0
 
static char yy_hold_char
 
static int yy_init = 0
 
static char * yy_last_accepting_cpos
 
static yy_state_type yy_last_accepting_state
 
static const YY_CHAR yy_meta [39]
 
static int yy_n_chars
 
static const flex_int16_t yy_nxt [196]
 
static int yy_start = 0
 
FILE * yyin = nullptr
 
int yyleng
 
int yylineno = 1
 
FILE * yyout = nullptr
 
char * yytext
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

◆ ECHO

#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

◆ FLEX_BETA

#define FLEX_BETA

◆ FLEX_SCANNER

#define FLEX_SCANNER

◆ FLEXINT_H

#define FLEXINT_H

◆ INITIAL

#define INITIAL   0

◆ INT16_MAX

#define INT16_MAX   (32767)

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

◆ INT32_MAX

#define INT32_MAX   (2147483647)

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

◆ INT8_MAX

#define INT8_MAX   (127)

◆ INT8_MIN

#define INT8_MIN   (-128)

◆ REJECT

#define REJECT   reject_used_but_not_detected

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

◆ THE_PREFIX

#define THE_PREFIX   ug4_lua_YY_

◆ ug4_lua_YY__create_buffer_ALREADY_DEFINED

#define ug4_lua_YY__create_buffer_ALREADY_DEFINED

◆ ug4_lua_YY__delete_buffer_ALREADY_DEFINED

#define ug4_lua_YY__delete_buffer_ALREADY_DEFINED

◆ ug4_lua_YY__flex_debug_ALREADY_DEFINED

#define ug4_lua_YY__flex_debug_ALREADY_DEFINED

◆ ug4_lua_YY__flush_buffer_ALREADY_DEFINED

#define ug4_lua_YY__flush_buffer_ALREADY_DEFINED

◆ ug4_lua_YY__init_buffer_ALREADY_DEFINED

#define ug4_lua_YY__init_buffer_ALREADY_DEFINED

◆ ug4_lua_YY__load_buffer_state_ALREADY_DEFINED

#define ug4_lua_YY__load_buffer_state_ALREADY_DEFINED

◆ ug4_lua_YY__scan_buffer_ALREADY_DEFINED

#define ug4_lua_YY__scan_buffer_ALREADY_DEFINED

◆ ug4_lua_YY__scan_bytes_ALREADY_DEFINED

#define ug4_lua_YY__scan_bytes_ALREADY_DEFINED

◆ ug4_lua_YY__scan_string_ALREADY_DEFINED

#define ug4_lua_YY__scan_string_ALREADY_DEFINED

◆ ug4_lua_YY__switch_to_buffer_ALREADY_DEFINED

#define ug4_lua_YY__switch_to_buffer_ALREADY_DEFINED

◆ ug4_lua_YY_alloc_ALREADY_DEFINED

#define ug4_lua_YY_alloc_ALREADY_DEFINED

◆ ug4_lua_YY_ensure_buffer_stack_ALREADY_DEFINED

#define ug4_lua_YY_ensure_buffer_stack_ALREADY_DEFINED

◆ ug4_lua_YY_free_ALREADY_DEFINED

#define ug4_lua_YY_free_ALREADY_DEFINED

◆ ug4_lua_YY_in_ALREADY_DEFINED

#define ug4_lua_YY_in_ALREADY_DEFINED

◆ ug4_lua_YY_leng_ALREADY_DEFINED

#define ug4_lua_YY_leng_ALREADY_DEFINED

◆ ug4_lua_YY_lex_ALREADY_DEFINED

#define ug4_lua_YY_lex_ALREADY_DEFINED

◆ ug4_lua_YY_lineno_ALREADY_DEFINED

#define ug4_lua_YY_lineno_ALREADY_DEFINED

◆ ug4_lua_YY_out_ALREADY_DEFINED

#define ug4_lua_YY_out_ALREADY_DEFINED

◆ ug4_lua_YY_pop_buffer_state_ALREADY_DEFINED

#define ug4_lua_YY_pop_buffer_state_ALREADY_DEFINED

◆ ug4_lua_YY_push_buffer_state_ALREADY_DEFINED

#define ug4_lua_YY_push_buffer_state_ALREADY_DEFINED

◆ ug4_lua_YY_realloc_ALREADY_DEFINED

#define ug4_lua_YY_realloc_ALREADY_DEFINED

◆ ug4_lua_YY_restart_ALREADY_DEFINED

#define ug4_lua_YY_restart_ALREADY_DEFINED

◆ ug4_lua_YY_text_ALREADY_DEFINED

#define ug4_lua_YY_text_ALREADY_DEFINED

◆ ug4_lua_YY_wrap_ALREADY_DEFINED

#define ug4_lua_YY_wrap_ALREADY_DEFINED

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

◆ UINT8_MAX

#define UINT8_MAX   (255U)

◆ unput

#define unput (   c)    yyunput( c, (yytext_ptr) )

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

◆ yy_create_buffer

#define yy_create_buffer   ug4_lua_YY__create_buffer

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: nullptr)
static YY_BUFFER_STATE * yy_buffer_stack
Definition: lexer.cpp:511
static size_t yy_buffer_stack_top
Definition: lexer.cpp:509

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

◆ YY_DECL

#define YY_DECL   int yylex (void)

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

◆ yy_delete_buffer

#define yy_delete_buffer   ug4_lua_YY__delete_buffer

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (int) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
static char yy_hold_char
Definition: lexer.cpp:528
char * yy_cp
Definition: lexer.cpp:994
#define yytext_ptr
Definition: lexer.cpp:598
char * yy_bp
Definition: lexer.cpp:994
static char * yy_c_buf_p
Definition: lexer.cpp:533

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   39

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

◆ yy_flex_debug

int yy_flex_debug   ug4_lua_YY__flex_debug

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

◆ yy_flush_buffer

#define yy_flush_buffer   ug4_lua_YY__flush_buffer

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

◆ yy_init_buffer

#define yy_init_buffer   ug4_lua_YY__init_buffer

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
#define YY_CURRENT_BUFFER_LVALUE
Definition: lexer.cpp:525
#define yyin
Definition: lexer.cpp:22
size_t yy_size_t
Definition: lexer.cpp:414

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

◆ yy_load_buffer_state

static void yy_load_buffer_state   ug4_lua_YY__load_buffer_state

Referenced by if().

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

◆ YY_NULL

#define YY_NULL   0

◆ YY_NUM_RULES

#define YY_NUM_RULES   38

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

◆ YY_RULE_SETUP

#define YY_RULE_SETUP    YY_USER_ACTION

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((YY_CHAR) (c))

◆ yy_scan_buffer

#define yy_scan_buffer   ug4_lua_YY__scan_buffer

◆ yy_scan_bytes

#define yy_scan_bytes   ug4_lua_YY__scan_bytes

◆ yy_scan_string

#define yy_scan_string   ug4_lua_YY__scan_string

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition: lexer.cpp:519
#define YY_BUF_SIZE
Definition: lexer.cpp:399

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}

◆ YY_START

#define YY_START   (((yy_start) - 1) / 2)

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   ug4_lua_YY__switch_to_buffer

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

◆ YY_USER_ACTION

#define YY_USER_ACTION

◆ yyalloc

#define yyalloc   ug4_lua_YY_alloc

◆ yyconst

#define yyconst   const

◆ yyensure_buffer_stack

static void yyensure_buffer_stack   ug4_lua_YY_ensure_buffer_stack

Referenced by if().

◆ yyerror

#define yyerror   ug4_lua_YY_error

◆ yyfree

#define yyfree   ug4_lua_YY_free

◆ yyget_debug

int yyget_debug   ug4_lua_YY_get_debug

◆ yyget_extra

YY_EXTRA_TYPE yyget_extra   ug4_lua_YY_get_extra

◆ yyget_in

FILE * yyget_in   ug4_lua_YY_get_in

◆ yyget_leng

int yyget_leng   ug4_lua_YY_get_leng

◆ yyget_lineno

int yyget_lineno   ug4_lua_YY_get_lineno

◆ yyget_out

FILE * yyget_out   ug4_lua_YY_get_out

◆ yyget_text

char * yyget_text   ug4_lua_YY_get_text

◆ yyin

FILE * yyin   ug4_lua_YY_in

Referenced by if().

◆ yyleng

int yyleng   ug4_lua_YY_leng

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define YY_MORE_ADJ
Definition: lexer.cpp:779

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
#define yyleng
Definition: lexer.cpp:23
#define yytext
Definition: lexer.cpp:28

◆ yylex

int yylex   ug4_lua_YY_lex

◆ yylex_destroy

int yylex_destroy   ug4_lua_YY_lex_destroy

◆ yylex_init

#define yylex_init   ug4_lua_YY_lex_init

◆ yylex_init_extra

#define yylex_init_extra   ug4_lua_YY_lex_init_extra

◆ yylineno

int yylineno   ug4_lua_YY_lineno

◆ yylval

#define yylval   ug4_lua_YY_lval

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

◆ yynoreturn

#define yynoreturn

◆ yyout

FILE * yyout   ug4_lua_YY_out

Referenced by if().

◆ yypop_buffer_state

void yypop_buffer_state   ug4_lua_YY_pop_buffer_state

◆ yypush_buffer_state

#define yypush_buffer_state   ug4_lua_YY_push_buffer_state

◆ yyrealloc

#define yyrealloc   ug4_lua_YY_realloc

◆ yyrestart

#define yyrestart   ug4_lua_YY_restart

◆ yyset_debug

#define yyset_debug   ug4_lua_YY_set_debug

◆ yyset_extra

#define yyset_extra   ug4_lua_YY_set_extra

◆ yyset_in

#define yyset_in   ug4_lua_YY_set_in

◆ yyset_lineno

#define yyset_lineno   ug4_lua_YY_set_lineno

◆ yyset_out

#define yyset_out   ug4_lua_YY_set_out

◆ YYSTATE

#define YYSTATE   YY_START

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

◆ yytext

char * yytext   ug4_lua_YY_text

◆ yytext_ptr

#define yytext_ptr   yytext

◆ yywrap

int yywrap   ug4_lua_YY_wrap

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

◆ flex_int32_t

typedef int flex_int32_t

◆ flex_int8_t

typedef signed char flex_int8_t

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

◆ YY_BUFFER_STATE

◆ YY_CHAR

◆ yy_size_t

typedef size_t yy_size_t

◆ yy_state_type

typedef int yy_state_type

Function Documentation

◆ if()

◆ input()

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b)

◆ yy_fatal_error()

static void yynoreturn yy_fatal_error ( const char *  msg)
static

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b)

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

◆ yy_init_buffer()

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

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

◆ yy_scan_buffer()

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size 
)

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( const char *  bytes,
int  len 
)

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char *  yy_str)

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

◆ yyalloc()

void* yyalloc ( yy_size_t  )

◆ yyerror()

void yyerror ( const char *  s)

References ug::LUAParserClass::err, globalP, and s.

◆ yyfree()

void yyfree ( void *  )

◆ yypush_buffer_state()

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

◆ yyrealloc()

void* yyrealloc ( void *  ,
yy_size_t   
)

◆ yyrestart()

void yyrestart ( FILE *  input_file)

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined)

◆ yyset_in()

void yyset_in ( FILE *  _in_str)

◆ yyset_lineno()

void yyset_lineno ( int  _line_number)

◆ yyset_out()

void yyset_out ( FILE *  _out_str)

◆ yyunput()

static void yyunput ( int  c,
char *  buf_ptr 
)
static

Variable Documentation

◆ globalP

LUAParserClass* globalP
extern

Referenced by yaccparse(), and yyerror().

◆ yy_accept

const flex_int16_t yy_accept[120]
static
Initial value:
=
{ 0,
0, 0, 39, 37, 36, 36, 4, 4, 2, 3,
4, 4, 4, 35, 35, 35, 35, 35, 35, 35,
35, 35, 35, 35, 35, 37, 36, 1, 0, 3,
0, 6, 7, 5, 35, 35, 35, 18, 35, 35,
35, 35, 13, 35, 35, 21, 35, 35, 8, 1,
3, 0, 3, 20, 35, 35, 9, 17, 35, 35,
35, 35, 35, 35, 15, 35, 35, 35, 35, 14,
19, 35, 35, 10, 0, 35, 16, 35, 0, 0,
0, 0, 0, 0, 0, 0, 12, 35, 0, 0,
0, 0, 0, 0, 0, 0, 34, 0, 0, 0,
11, 25, 0, 22, 24, 0, 26, 32, 33, 31,
23, 0, 30, 0, 0, 28, 29, 27, 0
}

◆ yy_act

int yy_act

◆ yy_base

const flex_int16_t yy_base[122]
static
Initial value:
=
{ 0,
0, 0, 156, 157, 37, 39, 157, 149, 36, 0,
142, 141, 140, 0, 123, 118, 120, 21, 19, 127,
118, 130, 113, 124, 120, 130, 50, 0, 49, 0,
55, 157, 157, 157, 0, 122, 120, 0, 106, 119,
105, 108, 0, 117, 100, 0, 99, 112, 157, 0,
58, 61, 66, 0, 115, 110, 0, 0, 111, 112,
104, 91, 97, 99, 99, 88, 95, 113, 87, 0,
0, 97, 93, 0, 63, 88, 0, 86, 97, 57,
76, 86, 82, 56, 26, 61, 0, 82, 76, 84,
74, 76, 76, 82, 66, 74, 157, 65, 72, 66,
0, 157, 69, 157, 157, 65, 82, 157, 157, 157,
157, 54, 157, 55, 74, 157, 157, 157, 157, 59,
96
}

◆ yy_bp

char * yy_bp

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = nullptr
static

Stack as an array.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

◆ yy_c_buf_p

char* yy_c_buf_p = nullptr
static

◆ yy_chk

const flex_int16_t yy_chk[196]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 5, 5,
6, 6, 9, 9, 9, 9, 18, 19, 18, 85,
9, 27, 27, 19, 85, 9, 29, 29, 29, 31,
31, 120, 31, 31, 31, 51, 51, 51, 52, 52,
52, 84, 51, 53, 53, 53, 80, 51, 75, 84,
75, 115, 75, 75, 86, 80, 114, 112, 75, 75,
107, 86, 75, 106, 103, 75, 121, 100, 121, 99,
98, 96, 95, 94, 93, 92, 91, 90, 89, 88,
83, 82, 81, 79, 78, 76, 73, 72, 69, 68,
67, 66, 65, 64, 63, 62, 61, 60, 59, 56,
55, 48, 47, 45, 44, 42, 41, 40, 39, 37,
36, 26, 25, 24, 23, 22, 21, 20, 17, 16,
15, 13, 12, 11, 8, 3, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119
}

◆ yy_cp

char* yy_cp

◆ YY_DECL

YY_DECL
Initial value:
{
yy_state_type yy_current_state
int yy_state_type
Definition: lexer.cpp:589

The main scanner function which does all the work.

◆ yy_def

const flex_int16_t yy_def[122]
static
Initial value:
=
{ 0,
119, 1, 119, 119, 119, 119, 119, 119, 119, 9,
119, 119, 119, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 119, 119, 121, 119, 9,
119, 119, 119, 119, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120, 119, 121,
119, 119, 119, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 119, 120, 120, 120, 119, 119,
119, 119, 119, 119, 119, 119, 120, 120, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
120, 119, 119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 0, 119,
119
}

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

◆ yy_ec

const YY_CHAR yy_ec[256]
static

◆ yy_flex_debug

int yy_flex_debug = 0

◆ yy_hold_char

char yy_hold_char
static

◆ yy_init

int yy_init = 0
static

Referenced by if().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

◆ yy_meta

const YY_CHAR yy_meta[39]
static
Initial value:
=
{ 0,
1, 1, 2, 1, 1, 1, 1, 3, 3, 3,
1, 1, 1, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 1
}

◆ yy_n_chars

int yy_n_chars
static

◆ yy_nxt

const flex_int16_t yy_nxt[196]
static
Initial value:
=
{ 0,
4, 5, 6, 7, 7, 8, 4, 9, 10, 10,
11, 12, 13, 14, 14, 15, 16, 14, 17, 18,
19, 14, 14, 20, 14, 21, 22, 14, 23, 14,
14, 24, 14, 25, 14, 14, 14, 26, 27, 27,
27, 27, 29, 30, 30, 30, 39, 41, 40, 97,
31, 27, 27, 42, 98, 31, 51, 51, 51, 52,
52, 35, 53, 53, 53, 51, 51, 51, 53, 53,
53, 95, 31, 53, 53, 53, 90, 31, 79, 96,
80, 118, 81, 82, 99, 91, 117, 116, 83, 84,
115, 100, 85, 114, 113, 86, 50, 112, 50, 111,
110, 109, 108, 107, 106, 105, 104, 103, 102, 101,
94, 93, 92, 89, 88, 87, 78, 77, 76, 75,
74, 73, 72, 71, 70, 69, 68, 67, 66, 65,
64, 63, 62, 61, 60, 59, 58, 57, 56, 55,
54, 49, 48, 47, 46, 45, 44, 43, 38, 37,
36, 34, 33, 32, 28, 119, 3, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119
}

◆ yy_start

int yy_start = 0
static

Referenced by if().

◆ yyin

FILE* yyin = nullptr

◆ yyleng

int yyleng

◆ yylineno

int yylineno = 1

◆ yyout

FILE * yyout = nullptr

◆ yytext

char* yytext