COPASI API  4.40.278
CChemEqParser_lex.cpp File Reference
#include <iostream>
#include <errno.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include "copasi/FlexLexer.h"
#include <vector>
#include "copasi/copasi.h"
#include "copasi/model/CChemEqParser.h"
#include "copasi/model/CChemEqParser_yacc.hpp"
#include "copasi/utilities/CCopasiMessage.h"
#include "copasi/utilities/utility.h"

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 SIZE_MAX   (~(size_t)0)
 
#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_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   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#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_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)   ((YY_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 yyalloc   CChemEqParseralloc
 
#define yyconst   const
 
#define YYERRCODE   256
 
#define yyFlexLexer   CChemEqParserFlexLexer
 
#define yyfree   CChemEqParserfree
 
#define yyless(n)
 
#define yyless(n)
 
#define yymore()   yymore_used_but_not_detected
 
#define yynoreturn
 
#define yyrealloc   CChemEqParserrealloc
 
#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 flex_uint8_t YY_CHAR
 
typedef size_t yy_size_t
 

Functions

void * CChemEqParseralloc (yy_size_t)
 
void CChemEqParserfree (void *)
 
void * CChemEqParserrealloc (void *, yy_size_t)
 

Variables

int yyleng
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

◆ COMMON_ACTION

#define COMMON_ACTION
Value:
mpData = new Data; \
mpData->name = yytext; \
mPosition += yyleng;
int yyleng
CChemEqParserBase::Data * mpData
Definition: CChemEqParser_yacc.cpp:1109
std::string name
Definition: CChemEqParser.h:87

◆ ECHO

#define ECHO   LexerOutput(yytext, yyleng)

◆ 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)

◆ 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_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
((yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

◆ YY_DECL

#define YY_DECL   int yyFlexLexer::yylex()

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define yytext_ptr
Definition: CChemEqParser_lex.cpp:341

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   13

◆ 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)    LexerError(msg)

◆ 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_INPUT

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

◆ 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_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   12

◆ 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_set_bol

#define yy_set_bol (   at_bol)
Value:
{\
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: CChemEqParser_lex.cpp:305
#define YY_BUF_SIZE
Definition: CChemEqParser_lex.cpp:192

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{\
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_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

◆ YY_USER_INIT

#define YY_USER_INIT    mPosition = 0;

◆ yyalloc

◆ yyconst

#define yyconst   const

◆ YYERRCODE

#define YYERRCODE   256

◆ yyFlexLexer

#define yyFlexLexer   CChemEqParserFlexLexer

◆ yyfree

#define yyfree   CChemEqParserfree

◆ 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_cp = (yy_hold_char); \
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: CChemEqParser_lex.cpp:463

◆ 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_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while (0)

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

◆ yynoreturn

#define yynoreturn

◆ yyrealloc

#define yyrealloc   CChemEqParserrealloc

◆ YYSTATE

#define YYSTATE   YY_START

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

◆ yytext_ptr

#define yytext_ptr   yytext

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

Function Documentation

◆ CChemEqParseralloc()

void * CChemEqParseralloc ( yy_size_t  size)

References malloc().

◆ CChemEqParserfree()

void CChemEqParserfree ( void *  ptr)

References free().

◆ CChemEqParserrealloc()

void * CChemEqParserrealloc ( void *  ptr,
yy_size_t  size 
)

Variable Documentation

◆ yyleng

int yyleng
extern