COPASI API  4.16.103
Classes | Macros | Typedefs | Functions | Variables
CEvaluationLexer_lex.cpp File Reference
#include <iostream>
#include <errno.h>
#include <cstdlib>
#include <cstring>
#include "copasi/FlexLexer.h"
#include <vector>
#include "copasi.h"
#include "CEvaluationNode.h"
#include "CEvaluationLexer.h"
#include "CEvaluationParser_yacc.hpp"
Include dependency graph for CEvaluationLexer_lex.cpp:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define BEGIN   (yy_start) = 1 + 2 *
 
#define COMMON_ACTION
 
#define ECHO   LexerOutput(yytext, yyleng)
 
#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 sOPERATOR   2
 
#define sSIGNorVALUE   1
 
#define sVALUE   3
 
#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   break;
 
#define YY_BUF_SIZE   16384
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_DECL   int yyFlexLexer::yylex()
 
#define YY_DECL_IS_OURS   1
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   79
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_EXIT_FAILURE   2
 
#define YY_EXTRA_TYPE   void *
 
#define YY_FATAL_ERROR(msg)   LexerError(msg)
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define YY_INPUT(buf, result, max_size)
 
#define YY_INT_ALIGNED   short int
 
#define YY_LESS_LINENO(n)
 
#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   78
 
#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)   ((unsigned int) (unsigned char) c)
 
#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_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define YY_USER_INIT
 
#define yyconst
 
#define YYERRCODE   256
 
#define yyFlexLexer   CEvaluationFlexLexer
 
#define yyless(n)
 
#define yyless(n)
 
#define yymore()   yymore_used_but_not_detected
 
#define YYSTATE   YY_START
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext_ptr   yytext
 

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 unsigned char YY_CHAR
 
typedef size_t yy_size_t
 

Functions

voidCEvaluationalloc (yy_size_t)
 
void CEvaluationfree (void *)
 
voidCEvaluationrealloc (void *, yy_size_t)
 

Variables

static flex_int16_t yy_accept [380]
 
static flex_int16_t yy_base [384]
 
static flex_int16_t yy_chk [879]
 
static flex_int16_t yy_def [384]
 
static flex_int32_t yy_ec [256]
 
static flex_int32_t yy_meta [70]
 
static flex_int16_t yy_nxt [879]
 
yy_size_t yyleng
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *
#define COMMON_ACTION
Value:
mPosition += yyleng;\
mpNodeList->push_back(mpNode);
CEvaluationNode * mpNode
yy_size_t yyleng

Definition at line 758 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define ECHO   LexerOutput(yytext, yyleng)

Definition at line 799 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define FLEX_BETA

Definition at line 26 of file CEvaluationLexer_lex.cpp.

#define FLEX_SCANNER

Definition at line 21 of file CEvaluationLexer_lex.cpp.

#define FLEXINT_H

Definition at line 46 of file CEvaluationLexer_lex.cpp.

#define INITIAL   0

Definition at line 764 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define INT16_MAX   (32767)

Definition at line 90 of file CEvaluationLexer_lex.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 81 of file CEvaluationLexer_lex.cpp.

#define INT32_MAX   (2147483647)

Definition at line 93 of file CEvaluationLexer_lex.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 84 of file CEvaluationLexer_lex.cpp.

#define INT8_MAX   (127)

Definition at line 87 of file CEvaluationLexer_lex.cpp.

#define INT8_MIN   (-128)

Definition at line 78 of file CEvaluationLexer_lex.cpp.

#define REJECT   reject_used_but_not_detected

Definition at line 734 of file CEvaluationLexer_lex.cpp.

#define sOPERATOR   2

Definition at line 766 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define sSIGNorVALUE   1

Definition at line 765 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define sVALUE   3

Definition at line 767 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define UINT16_MAX   (65535U)

Definition at line 99 of file CEvaluationLexer_lex.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 102 of file CEvaluationLexer_lex.cpp.

#define UINT8_MAX   (255U)

Definition at line 96 of file CEvaluationLexer_lex.cpp.

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

Definition at line 207 of file CEvaluationLexer_lex.cpp.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 315 of file CEvaluationLexer_lex.cpp.

#define YY_BREAK   break;

Definition at line 850 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define YY_BUF_SIZE   16384
#define YY_BUFFER_EOF_PENDING   2

Definition at line 270 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_get_next_buffer().

#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1

Definition at line 259 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_DECL   int yyFlexLexer::yylex()

Definition at line 838 of file CEvaluationLexer_lex.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 837 of file CEvaluationLexer_lex.cpp.

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
yyleng = (yy_size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
size_t yy_size_t
#define yytext_ptr
yy_size_t yyleng

Definition at line 328 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define YY_END_OF_BUFFER   79

Definition at line 336 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define YY_END_OF_BUFFER_CHAR   0
#define YY_EXIT_FAILURE   2

Definition at line 2755 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::LexerError().

#define YY_EXTRA_TYPE   void *

Definition at line 777 of file CEvaluationLexer_lex.cpp.

#define YY_FATAL_ERROR (   msg)    LexerError(msg)
#define YY_FLEX_MAJOR_VERSION   2

Definition at line 22 of file CEvaluationLexer_lex.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 23 of file CEvaluationLexer_lex.cpp.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 24 of file CEvaluationLexer_lex.cpp.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ((result = LexerInput((char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR("input in flex scanner failed" );
#define YY_FATAL_ERROR(msg)
if(!yymsg) yymsg

Definition at line 806 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_get_next_buffer().

#define YY_INT_ALIGNED   short int

Definition at line 17 of file CEvaluationLexer_lex.cpp.

#define YY_LESS_LINENO (   n)

Definition at line 191 of file CEvaluationLexer_lex.cpp.

#define YY_MORE_ADJ   0
#define yy_new_buffer   yy_create_buffer

Definition at line 293 of file CEvaluationLexer_lex.cpp.

#define YY_NEW_FILE   yyrestart(yyin)

Definition at line 162 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yyinput(), and CEvaluationLexer::yylex().

#define YY_NULL   0

Definition at line 136 of file CEvaluationLexer_lex.cpp.

#define YY_NUM_RULES   78

Definition at line 335 of file CEvaluationLexer_lex.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 794 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_get_next_buffer().

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 737 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 853 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)
#define yy_set_bol (   at_bol)
Value:
{\
yyensure_buffer_stack (); \
yy_create_buffer(yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_BUF_SIZE
#define YY_CURRENT_BUFFER_LVALUE
#define YY_CURRENT_BUFFER
if(!yymsg) yymsg

Definition at line 305 of file CEvaluationLexer_lex.cpp.

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

Definition at line 295 of file CEvaluationLexer_lex.cpp.

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

Definition at line 823 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_push_state().

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

Definition at line 173 of file CEvaluationLexer_lex.cpp.

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

Definition at line 159 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 210 of file CEvaluationLexer_lex.cpp.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 176 of file CEvaluationLexer_lex.cpp.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 181 of file CEvaluationLexer_lex.cpp.

#define YY_USER_ACTION

Definition at line 845 of file CEvaluationLexer_lex.cpp.

#define YY_USER_INIT
Value:
mpNode = NULL;\
mPosition = 0;\
mpNodeList = new std::vector< CEvaluationNode * >;
CEvaluationNode * mpNode

Definition at line 753 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define yyconst

Definition at line 132 of file CEvaluationLexer_lex.cpp.

#define YYERRCODE   256

Definition at line 750 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yylex().

#define yyFlexLexer   CEvaluationFlexLexer

Definition at line 35 of file CEvaluationLexer_lex.cpp.

#define yyless (   n)
Value:
do \
{\
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
(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_RESTORE_YY_MORE_OFFSET
#define YY_MORE_ADJ
#define YY_LESS_LINENO(n)
#define YY_DO_BEFORE_ACTION

Definition at line 2767 of file CEvaluationLexer_lex.cpp.

#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_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while (0)
#define YY_LESS_LINENO(n)
yy_size_t yyleng

Definition at line 2767 of file CEvaluationLexer_lex.cpp.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 735 of file CEvaluationLexer_lex.cpp.

#define YYSTATE   YY_START

Definition at line 156 of file CEvaluationLexer_lex.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 2831 of file CEvaluationLexer_lex.cpp.

#define yyterminate ( )    return YY_NULL

Definition at line 818 of file CEvaluationLexer_lex.cpp.

#define yytext_ptr   yytext

Typedef Documentation

typedef short int flex_int16_t

Definition at line 69 of file CEvaluationLexer_lex.cpp.

typedef int flex_int32_t

Definition at line 70 of file CEvaluationLexer_lex.cpp.

typedef signed char flex_int8_t

Definition at line 68 of file CEvaluationLexer_lex.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 72 of file CEvaluationLexer_lex.cpp.

typedef unsigned int flex_uint32_t

Definition at line 73 of file CEvaluationLexer_lex.cpp.

typedef unsigned char flex_uint8_t

Definition at line 71 of file CEvaluationLexer_lex.cpp.

Definition at line 177 of file CEvaluationLexer_lex.cpp.

typedef unsigned char YY_CHAR

Definition at line 319 of file CEvaluationLexer_lex.cpp.

typedef size_t yy_size_t

Definition at line 182 of file CEvaluationLexer_lex.cpp.

Function Documentation

void * CEvaluationalloc ( yy_size_t  size)

Definition at line 2809 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_create_buffer(), CEvaluationLexer::yy_push_state(), and CEvaluationLexer::yyensure_buffer_stack().

2810 {
2811  return (void *) malloc(size);
2812 }
void CEvaluationfree ( void ptr)

Definition at line 2826 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_delete_buffer(), and CEvaluationLexer::~CEvaluationLexer().

2827 {
2828  free((char *) ptr); /* see CEvaluationrealloc() for (char *) cast */
2829 }
void * CEvaluationrealloc ( void ptr,
yy_size_t  size 
)

Definition at line 2814 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_get_next_buffer(), CEvaluationLexer::yy_push_state(), and CEvaluationLexer::yyensure_buffer_stack().

2815 {
2816  /* The cast to (char *) in the following accommodates both
2817  * implementations that use char* generic pointers, and those
2818  * that use void* generic pointers. It works with the latter
2819  * because both ANSI C and C++ allow castless assignment from
2820  * any pointer type to void*, and deal with argument conversions
2821  * as though doing an assignment.
2822  */
2823  return (void *) realloc((char *) ptr, size);
2824 }

Variable Documentation

flex_int16_t yy_accept[380]
static
flex_int16_t yy_base[384]
static
flex_int16_t yy_chk[879]
static
flex_int16_t yy_def[384]
static
flex_int32_t yy_ec[256]
static
flex_int32_t yy_meta[70]
static
Initial value:
=
{
0,
1, 1, 1, 1, 1, 1, 1, 2, 1, 1,
1, 1, 1, 1, 1, 3, 3, 3, 1, 1,
1, 3, 3, 3, 3, 3, 3, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 1, 1, 3, 3, 3, 3, 3,
3, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 1, 1
}

Definition at line 423 of file CEvaluationLexer_lex.cpp.

Referenced by CEvaluationLexer::yy_get_previous_state(), CEvaluationLexer::yy_try_NUL_trans(), and CEvaluationLexer::yylex().

flex_int16_t yy_nxt[879]
static
yy_size_t yyleng

Referenced by CEvaluationLexer::yylex().