COPASI API  4.16.103
Classes | Macros | Typedefs | Functions | Variables
CChemEqParser_lex.cpp File Reference
#include <iostream>
#include <errno.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include "copasi/FlexLexer.h"
#include <vector>
#include "copasi.h"
#include "CChemEqParser.h"
#include "CChemEqParser_yacc.hpp"
#include "utilities/CCopasiMessage.h"
#include "utilities/utility.h"
Include dependency graph for CChemEqParser_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 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   13
 
#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   12
 
#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   mPosition = 0;
 
#define yyconst
 
#define YYERRCODE   256
 
#define yyFlexLexer   CChemEqParserFlexLexer
 
#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

voidCChemEqParseralloc (yy_size_t)
 
void CChemEqParserfree (void *)
 
voidCChemEqParserrealloc (void *, yy_size_t)
 

Variables

static flex_int16_t yy_accept [32]
 
static flex_int16_t yy_base [35]
 
static flex_int16_t yy_chk [83]
 
static flex_int16_t yy_def [35]
 
static flex_int32_t yy_ec [256]
 
static flex_int32_t yy_meta [19]
 
static flex_int16_t yy_nxt [83]
 
int yyleng
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *
#define COMMON_ACTION
Value:
mpData = new Data; \
mpData->name = yytext; \
mPosition += yyleng;
int yyleng
CChemEqParserBase::Data * mpData

Definition at line 476 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define ECHO   LexerOutput(yytext, yyleng)

Definition at line 520 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::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 28 of file CChemEqParser_lex.cpp.

#define FLEX_SCANNER

Definition at line 23 of file CChemEqParser_lex.cpp.

#define FLEXINT_H

Definition at line 48 of file CChemEqParser_lex.cpp.

#define INITIAL   0

Definition at line 483 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define INT16_MAX   (32767)

Definition at line 90 of file CChemEqParser_lex.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 81 of file CChemEqParser_lex.cpp.

#define INT32_MAX   (2147483647)

Definition at line 93 of file CChemEqParser_lex.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 84 of file CChemEqParser_lex.cpp.

#define INT8_MAX   (127)

Definition at line 87 of file CChemEqParser_lex.cpp.

#define INT8_MIN   (-128)

Definition at line 78 of file CChemEqParser_lex.cpp.

#define REJECT   reject_used_but_not_detected

Definition at line 453 of file CChemEqParser_lex.cpp.

#define UINT16_MAX   (65535U)

Definition at line 99 of file CChemEqParser_lex.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 102 of file CChemEqParser_lex.cpp.

#define UINT8_MAX   (255U)

Definition at line 96 of file CChemEqParser_lex.cpp.

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

Definition at line 213 of file CChemEqParser_lex.cpp.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 326 of file CChemEqParser_lex.cpp.

#define YY_BREAK   break;

Definition at line 571 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define YY_BUF_SIZE   16384
#define YY_BUFFER_EOF_PENDING   2

Definition at line 281 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yy_get_next_buffer().

#define YY_BUFFER_NEW   0

Definition at line 269 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yy_flush_buffer(), and CChemEqParser::yylex().

#define YY_BUFFER_NORMAL   1

Definition at line 270 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::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 559 of file CChemEqParser_lex.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 558 of file CChemEqParser_lex.cpp.

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

Definition at line 339 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define YY_END_OF_BUFFER   13

Definition at line 347 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define YY_END_OF_BUFFER_CHAR   0
#define YY_EXIT_FAILURE   2

Definition at line 1637 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::LexerError().

#define YY_EXTRA_TYPE   void *

Definition at line 493 of file CChemEqParser_lex.cpp.

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

Definition at line 24 of file CChemEqParser_lex.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 25 of file CChemEqParser_lex.cpp.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 26 of file CChemEqParser_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 527 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yy_get_next_buffer().

#define YY_INT_ALIGNED   short int

Definition at line 19 of file CChemEqParser_lex.cpp.

#define YY_LESS_LINENO (   n)

Definition at line 197 of file CChemEqParser_lex.cpp.

#define YY_MORE_ADJ   0
#define yy_new_buffer   yy_create_buffer

Definition at line 304 of file CChemEqParser_lex.cpp.

#define YY_NEW_FILE   yyrestart(yyin)

Definition at line 165 of file CChemEqParser_lex.cpp.

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

#define YY_NULL   0

Definition at line 139 of file CChemEqParser_lex.cpp.

#define YY_NUM_RULES   12

Definition at line 346 of file CChemEqParser_lex.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 514 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yy_get_next_buffer().

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 456 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 574 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::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_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE
if(!yymsg) yymsg
#define YY_BUF_SIZE

Definition at line 316 of file CChemEqParser_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_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE
if(!yymsg) yymsg
#define YY_BUF_SIZE

Definition at line 306 of file CChemEqParser_lex.cpp.

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

Definition at line 158 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yy_push_state(), and CChemEqParser::yylex().

#define YY_START_STACK_INCR   25

Definition at line 544 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yy_push_state().

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

Definition at line 184 of file CChemEqParser_lex.cpp.

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

Definition at line 162 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 221 of file CChemEqParser_lex.cpp.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 187 of file CChemEqParser_lex.cpp.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 216 of file CChemEqParser_lex.cpp.

#define YY_USER_ACTION

Definition at line 566 of file CChemEqParser_lex.cpp.

#define YY_USER_INIT   mPosition = 0;

Definition at line 473 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define yyconst

Definition at line 135 of file CChemEqParser_lex.cpp.

#define YYERRCODE   256

Definition at line 470 of file CChemEqParser_lex.cpp.

Referenced by CChemEqParser::yylex().

#define yyFlexLexer   CChemEqParserFlexLexer

Definition at line 37 of file CChemEqParser_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_DO_BEFORE_ACTION
#define YY_RESTORE_YY_MORE_OFFSET
#define YY_MORE_ADJ
#define YY_LESS_LINENO(n)

Definition at line 1649 of file CChemEqParser_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)
int yyleng
#define YY_LESS_LINENO(n)

Definition at line 1649 of file CChemEqParser_lex.cpp.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 454 of file CChemEqParser_lex.cpp.

#define YYSTATE   YY_START

Definition at line 159 of file CChemEqParser_lex.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 1713 of file CChemEqParser_lex.cpp.

#define yyterminate ( )    return YY_NULL

Definition at line 539 of file CChemEqParser_lex.cpp.

#define yytext_ptr   yytext

Typedef Documentation

typedef short int flex_int16_t

Definition at line 70 of file CChemEqParser_lex.cpp.

typedef int flex_int32_t

Definition at line 71 of file CChemEqParser_lex.cpp.

typedef signed char flex_int8_t

Definition at line 69 of file CChemEqParser_lex.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 73 of file CChemEqParser_lex.cpp.

typedef unsigned int flex_uint32_t

Definition at line 74 of file CChemEqParser_lex.cpp.

typedef unsigned char flex_uint8_t

Definition at line 72 of file CChemEqParser_lex.cpp.

Definition at line 188 of file CChemEqParser_lex.cpp.

typedef unsigned char YY_CHAR

Definition at line 330 of file CChemEqParser_lex.cpp.

typedef size_t yy_size_t

Definition at line 217 of file CChemEqParser_lex.cpp.

Function Documentation

void * CChemEqParseralloc ( yy_size_t  size)

Definition at line 1691 of file CChemEqParser_lex.cpp.

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

1692 {
1693  return (void *) malloc(size);
1694 }
void CChemEqParserfree ( void ptr)

Definition at line 1708 of file CChemEqParser_lex.cpp.

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

1709 {
1710  free((char *) ptr); /* see CChemEqParserrealloc() for (char *) cast */
1711 }
void * CChemEqParserrealloc ( void ptr,
yy_size_t  size 
)

Definition at line 1696 of file CChemEqParser_lex.cpp.

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

1697 {
1698  /* The cast to (char *) in the following accommodates both
1699  * implementations that use char* generic pointers, and those
1700  * that use void* generic pointers. It works with the latter
1701  * because both ANSI C and C++ allow castless assignment from
1702  * any pointer type to void*, and deal with argument conversions
1703  * as though doing an assignment.
1704  */
1705  return (void *) realloc((char *) ptr, size);
1706 }

Variable Documentation

flex_int16_t yy_accept[32]
static
Initial value:
=
{
0,
0, 0, 13, 9, 9, 9, 10, 11, 3, 2,
9, 1, 6, 7, 4, 5, 9, 0, 9, 10,
0, 8, 0, 7, 1, 1, 9, 1, 9, 1,
0
}

Definition at line 355 of file CChemEqParser_lex.cpp.

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

flex_int16_t yy_base[35]
static
Initial value:
=
{
0,
0, 0, 63, 51, 17, 0, 0, 17, 50, 49,
12, 24, 32, 28, 64, 64, 26, 20, 0, 0,
21, 64, 24, 13, 20, 0, 34, 37, 38, 40,
64, 51, 52, 55
}

Definition at line 404 of file CChemEqParser_lex.cpp.

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

flex_int16_t yy_chk[83]
static
Initial value:
=
{
0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 5, 5,
5, 8, 11, 24, 11, 21, 23, 5, 25, 25,
18, 8, 12, 12, 12, 21, 17, 12, 14, 12,
27, 27, 13, 27, 27, 28, 28, 29, 29, 30,
30, 32, 32, 33, 33, 34, 34, 34, 34, 10,
9, 4, 3, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
31, 31
}

Definition at line 436 of file CChemEqParser_lex.cpp.

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

flex_int16_t yy_def[35]
static
Initial value:
=
{
0,
31, 1, 31, 32, 32, 5, 33, 34, 32, 32,
32, 32, 32, 32, 31, 31, 32, 32, 5, 33,
34, 31, 34, 32, 12, 12, 32, 12, 32, 32,
0, 31, 31, 31
}

Definition at line 413 of file CChemEqParser_lex.cpp.

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

flex_int32_t yy_ec[256]
static
flex_int32_t yy_meta[19]
static
Initial value:
=
{
0,
1, 2, 2, 3, 4, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 4, 4
}

Definition at line 397 of file CChemEqParser_lex.cpp.

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

flex_int16_t yy_nxt[83]
static
Initial value:
=
{
0,
4, 5, 6, 7, 8, 9, 10, 11, 4, 12,
13, 14, 4, 4, 4, 4, 15, 16, 19, 19,
20, 22, 18, 18, 24, 22, 31, 18, 17, 28,
18, 23, 25, 26, 18, 23, 18, 27, 18, 27,
29, 29, 18, 30, 18, 17, 28, 30, 18, 30,
18, 17, 17, 20, 20, 21, 21, 21, 21, 18,
18, 18, 31, 3, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
31, 31
}

Definition at line 422 of file CChemEqParser_lex.cpp.

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

int yyleng

Referenced by CChemEqParser::yylex().