/home/enzo/treballs/fib/pfc/nanocomp/src/lex.nanocomp.cpp File Reference

#include <iostream>
#include <errno.h>
#include <cstdlib>
#include <cstring>
#include <FlexLexer.h>
#include "flexDefines.hpp"
#include <unistd.h>

Include dependency graph for lex.nanocomp.cpp:

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info

Defines

#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   33
#define FLEX_BETA
#define yyFlexLexer   yyFlexLexer
#define INT8_MIN   (-128)
#define INT16_MIN   (-32767-1)
#define INT32_MIN   (-2147483647-1)
#define INT8_MAX   (127)
#define INT16_MAX   (32767)
#define INT32_MAX   (2147483647)
#define UINT8_MAX   (255U)
#define UINT16_MAX   (65535U)
#define UINT32_MAX   (4294967295U)
#define yyconst
#define YY_NULL   0
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
#define BEGIN   (yy_start) = 1 + 2 *
#define YY_START   (((yy_start) - 1) / 2)
#define YYSTATE   YY_START
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE   yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   16384
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define YY_LESS_LINENO(n)
#define yyless(n)
#define unput(c)   yyunput( c, (yytext_ptr) )
#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1
#define YY_BUFFER_EOF_PENDING   2
#define YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define yy_new_buffer   yy_create_buffer
#define yy_set_interactive(is_interactive)
#define yy_set_bol(at_bol)
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
#define yywrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   yytext
#define YY_INTERACTIVE
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   18
#define YY_END_OF_BUFFER   19
#define REJECT   reject_used_but_not_detected
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define YY_RESTORE_YY_MORE_OFFSET
#define INITIAL   0
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   LexerOutput( yytext, yyleng )
#define YY_INPUT(buf, result, max_size)
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   LexerError( msg )
#define YY_DECL_IS_OURS   1
#define YY_DECL   int yyFlexLexer::yylex()
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)
#define YYTABLES_NAME   "yytables"

Typedefs

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

Functions

void * yyalloc (yy_size_t)
void * yyrealloc (void *, yy_size_t)
void yyfree (void *)

Variables

int yyleng
static yyconst flex_int16_t yy_accept [38]
static yyconst flex_int32_t yy_ec [256]
static yyconst flex_int32_t yy_meta [12]
static yyconst flex_int16_t yy_base [42]
static yyconst flex_int16_t yy_def [42]
static yyconst flex_int16_t yy_nxt [60]
static yyconst flex_int16_t yy_chk [60]
int line = 1


Define Documentation

#define BEGIN   (yy_start) = 1 + 2 *
 

Definition at line 134 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yy_pop_state(), and yyFlexLexer::yy_push_state().

#define ECHO   LexerOutput( yytext, yyleng )
 

Definition at line 471 of file lex.nanocomp.cpp.

#define EOB_ACT_CONTINUE_SCAN   0
 

Definition at line 167 of file lex.nanocomp.cpp.

#define EOB_ACT_END_OF_FILE   1
 

Definition at line 168 of file lex.nanocomp.cpp.

#define EOB_ACT_LAST_MATCH   2
 

Definition at line 169 of file lex.nanocomp.cpp.

#define FLEX_BETA
 

Definition at line 13 of file lex.nanocomp.cpp.

#define FLEX_SCANNER
 

Definition at line 8 of file lex.nanocomp.cpp.

#define INITIAL   0
 

Definition at line 438 of file lex.nanocomp.cpp.

#define INT16_MAX   (32767)
 

Definition at line 76 of file lex.nanocomp.cpp.

#define INT16_MIN   (-32767-1)
 

Definition at line 67 of file lex.nanocomp.cpp.

#define INT32_MAX   (2147483647)
 

Definition at line 79 of file lex.nanocomp.cpp.

#define INT32_MIN   (-2147483647-1)
 

Definition at line 70 of file lex.nanocomp.cpp.

#define INT8_MAX   (127)
 

Definition at line 73 of file lex.nanocomp.cpp.

#define INT8_MIN   (-128)
 

Definition at line 64 of file lex.nanocomp.cpp.

#define REJECT   reject_used_but_not_detected
 

Definition at line 426 of file lex.nanocomp.cpp.

#define UINT16_MAX   (65535U)
 

Definition at line 85 of file lex.nanocomp.cpp.

#define UINT32_MAX   (4294967295U)
 

Definition at line 88 of file lex.nanocomp.cpp.

#define UINT8_MAX   (255U)
 

Definition at line 82 of file lex.nanocomp.cpp.

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

Definition at line 187 of file lex.nanocomp.cpp.

 
#define YY_AT_BOL  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 

Definition at line 306 of file lex.nanocomp.cpp.

#define YY_BREAK   break;
 

Definition at line 522 of file lex.nanocomp.cpp.

#define YY_BUF_SIZE   16384
 

Definition at line 153 of file lex.nanocomp.cpp.

#define YY_BUFFER_EOF_PENDING   2
 

Definition at line 260 of file lex.nanocomp.cpp.

#define YY_BUFFER_NEW   0
 

Definition at line 248 of file lex.nanocomp.cpp.

#define YY_BUFFER_NORMAL   1
 

Definition at line 249 of file lex.nanocomp.cpp.

#define YY_CURRENT_BUFFER
 

Value:

( (yy_buffer_stack) \
                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
                          : NULL)

Definition at line 271 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yypop_buffer_state().

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 

Definition at line 278 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yypop_buffer_state().

#define YY_DECL   int yyFlexLexer::yylex()
 

Definition at line 510 of file lex.nanocomp.cpp.

#define YY_DECL_IS_OURS   1
 

Definition at line 509 of file lex.nanocomp.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;

Definition at line 323 of file lex.nanocomp.cpp.

#define YY_END_OF_BUFFER   19
 

Definition at line 331 of file lex.nanocomp.cpp.

#define YY_END_OF_BUFFER_CHAR   0
 

Definition at line 149 of file lex.nanocomp.cpp.

#define YY_EXIT_FAILURE   2
 

Definition at line 1540 of file lex.nanocomp.cpp.

#define YY_EXTRA_TYPE   void *
 

Definition at line 449 of file lex.nanocomp.cpp.

#define YY_FATAL_ERROR msg   )     LexerError( msg )
 

Definition at line 500 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yy_pop_state(), and yyFlexLexer::yy_push_state().

#define YY_FLEX_MAJOR_VERSION   2
 

Definition at line 9 of file lex.nanocomp.cpp.

#define YY_FLEX_MINOR_VERSION   5
 

Definition at line 10 of file lex.nanocomp.cpp.

#define YY_FLEX_SUBMINOR_VERSION   33
 

Definition at line 11 of file lex.nanocomp.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" );

Definition at line 478 of file lex.nanocomp.cpp.

#define YY_INT_ALIGNED   short int
 

Definition at line 4 of file lex.nanocomp.cpp.

#define YY_INTERACTIVE
 

Definition at line 316 of file lex.nanocomp.cpp.

#define YY_LESS_LINENO  ) 
 

Definition at line 171 of file lex.nanocomp.cpp.

#define YY_MORE_ADJ   0
 

Definition at line 428 of file lex.nanocomp.cpp.

#define yy_new_buffer   yy_create_buffer
 

Definition at line 284 of file lex.nanocomp.cpp.

#define YY_NEW_FILE   yyrestart( yyin )
 

Definition at line 147 of file lex.nanocomp.cpp.

#define YY_NULL   0
 

Definition at line 121 of file lex.nanocomp.cpp.

#define YY_NUM_RULES   18
 

Definition at line 330 of file lex.nanocomp.cpp.

#define YY_READ_BUF_SIZE   8192
 

Definition at line 466 of file lex.nanocomp.cpp.

#define YY_RESTORE_YY_MORE_OFFSET
 

Definition at line 429 of file lex.nanocomp.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION
 

Definition at line 525 of file lex.nanocomp.cpp.

#define YY_SC_TO_UI  )     ((unsigned int) (unsigned char) c)
 

Definition at line 128 of file lex.nanocomp.cpp.

#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; \
        }

Definition at line 296 of file lex.nanocomp.cpp.

#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; \
        }

Definition at line 286 of file lex.nanocomp.cpp.

#define YY_SKIP_YYWRAP
 

Definition at line 311 of file lex.nanocomp.cpp.

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

Definition at line 140 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yy_push_state().

#define YY_START_STACK_INCR   25
 

Definition at line 495 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yy_push_state().

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

Definition at line 158 of file lex.nanocomp.cpp.

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

Definition at line 144 of file lex.nanocomp.cpp.

#define yyconst
 

Definition at line 117 of file lex.nanocomp.cpp.

#define yyFlexLexer   yyFlexLexer
 

Definition at line 22 of file lex.nanocomp.cpp.

Referenced by ForbiddenPatternDiskManager::openFPs(), LayoutDiskManager::openLayout(), RuleDiskManager::openRules(), and TruthTableDiskManager::openTables().

#define yyless  ) 
 

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 )

Definition at line 1552 of file lex.nanocomp.cpp.

#define yyless  ) 
 

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 )

Definition at line 1552 of file lex.nanocomp.cpp.

 
#define yymore  )     yymore_used_but_not_detected
 

Definition at line 427 of file lex.nanocomp.cpp.

#define YYSTATE   YY_START
 

Definition at line 141 of file lex.nanocomp.cpp.

#define YYTABLES_NAME   "yytables"
 

Definition at line 1614 of file lex.nanocomp.cpp.

 
#define yyterminate  )     return YY_NULL
 

Definition at line 490 of file lex.nanocomp.cpp.

#define yytext_ptr   yytext
 

Definition at line 315 of file lex.nanocomp.cpp.

#define yywrap  )     1
 

Definition at line 310 of file lex.nanocomp.cpp.


Typedef Documentation

typedef short int flex_int16_t
 

Definition at line 55 of file lex.nanocomp.cpp.

typedef int flex_int32_t
 

Definition at line 56 of file lex.nanocomp.cpp.

typedef signed char flex_int8_t
 

Definition at line 54 of file lex.nanocomp.cpp.

typedef unsigned short int flex_uint16_t
 

Definition at line 58 of file lex.nanocomp.cpp.

typedef unsigned int flex_uint32_t
 

Definition at line 59 of file lex.nanocomp.cpp.

typedef unsigned char flex_uint8_t
 

Definition at line 57 of file lex.nanocomp.cpp.

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

Definition at line 162 of file lex.nanocomp.cpp.

typedef unsigned char YY_CHAR
 

Definition at line 313 of file lex.nanocomp.cpp.

typedef unsigned int yy_size_t
 

Definition at line 196 of file lex.nanocomp.cpp.


Function Documentation

void * yyalloc yy_size_t   ) 
 

Definition at line 1592 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yy_push_state(), and yyFlexLexer::yyensure_buffer_stack().

void yyfree void *   ) 
 

Definition at line 1609 of file lex.nanocomp.cpp.

void * yyrealloc void *  ,
yy_size_t 
 

Definition at line 1597 of file lex.nanocomp.cpp.

Referenced by yyFlexLexer::yy_push_state(), and yyFlexLexer::yyensure_buffer_stack().


Variable Documentation

int line = 1
 

Definition at line 435 of file lex.nanocomp.cpp.

Referenced by MainController::openFile(), RuleDiskManager::saveGrid(), LayoutDiskManager::saveGrid(), and ForbiddenPatternDiskManager::saveGrid().

yyconst flex_int16_t yy_accept[38] [static]
 

Initial value:

    {   0,
        0,    0,   19,   17,    1,   16,   17,   17,   17,   17,
       17,   15,   15,    1,    8,    7,    0,    2,    6,    5,
        4,    3,   10,    9,    0,   14,   13,   15,   12,   11,
        0,    0,    0,    0,    0,    0,    0
    }

Definition at line 339 of file lex.nanocomp.cpp.

yyconst flex_int16_t yy_base[42] [static]
 

Initial value:

    {   0,
        0,    0,   47,   48,    0,   48,    9,   43,   11,   13,
       15,   22,   24,    0,   48,   32,   20,   48,   48,   18,
       48,   17,   48,   26,    0,   48,   28,    0,   48,   30,
        0,    0,    0,    0,    0,    0,   48,   33,   37,   40,
       15
    }

Definition at line 385 of file lex.nanocomp.cpp.

yyconst flex_int16_t yy_chk[60] [static]
 

Initial value:

    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    7,    7,    9,    9,   10,   10,   11,   11,   41,
       22,   20,   17,   11,   12,   12,   13,   13,   24,   24,
       27,   27,   30,   30,   38,   16,   38,   39,   39,   39,
       39,   39,   40,   40,   40,    8,    3,   37,   37,   37,
       37,   37,   37,   37,   37,   37,   37,   37,   37
    }

Definition at line 413 of file lex.nanocomp.cpp.

yyconst flex_int16_t yy_def[42] [static]
 

Initial value:

    {   0,
       37,    1,   37,   37,   38,   37,   37,   39,   37,   37,
       37,   40,   40,   38,   37,    7,   39,   37,   37,    9,
       37,   10,   37,   37,   11,   37,   37,   41,   37,   37,
       16,   20,   22,   24,   27,   30,    0,   37,   37,   37,
       37
    }

Definition at line 394 of file lex.nanocomp.cpp.

yyconst flex_int32_t yy_ec[256] [static]
 

Definition at line 347 of file lex.nanocomp.cpp.

yyconst flex_int32_t yy_meta[12] [static]
 

Initial value:

    {   0,
        1,    2,    3,    4,    1,    1,    1,    1,    5,    5,
        5
    }

Definition at line 379 of file lex.nanocomp.cpp.

yyconst flex_int16_t yy_nxt[60] [static]
 

Initial value:

    {   0,
        4,    5,    6,    5,    7,    8,    9,   10,   11,   12,
       13,   15,   16,   19,   20,   21,   22,   23,   24,   28,
       33,   32,   18,   25,   26,   27,   29,   30,   23,   34,
       26,   35,   29,   36,   14,   31,   14,   17,   17,   17,
       17,   17,   28,   28,   28,   18,   37,    3,   37,   37,
       37,   37,   37,   37,   37,   37,   37,   37,   37
    }

Definition at line 403 of file lex.nanocomp.cpp.

int yyleng
 


Generated on Fri Sep 1 23:55:48 2006 for NanoComp by  doxygen 1.4.6