# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

cf_lexical.cpp File Reference

#include <stdio.h>
#include <vector>
#include <string>
#include "nel/misc/debug.h"
#include "nel/misc/file.h"
#include "cf_gramatical.h"

Go to the source code of this file.

Compounds

struct  cf_value
struct  yy_buffer_state

Defines

#define yy_create_buffer   cf_create_buffer
#define yy_delete_buffer   cf_delete_buffer
#define yy_scan_buffer   cf_scan_buffer
#define yy_scan_string   cf_scan_string
#define yy_scan_bytes   cf_scan_bytes
#define yy_flex_debug   cf_flex_debug
#define yy_init_buffer   cf_init_buffer
#define yy_flush_buffer   cf_flush_buffer
#define yy_load_buffer_state   cf_load_buffer_state
#define yy_switch_to_buffer   cf_switch_to_buffer
#define yyin   cfin
#define yyleng   cfleng
#define yylex   cflex
#define yyout   cfout
#define yyrestart   cfrestart
#define yytext   cftext
#define yywrap   cfwrap
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define yyconst
#define YY_PROTO(proto)   ()
#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 EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#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   yy_current_buffer
#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
#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->yy_at_bol)
#define yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   23
#define YY_END_OF_BUFFER   24
#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 DEBUG_PRINTF
#define YY_NEVER_INTERACTIVE   1
#define YY_INPUT(buf, result, max_size)
#define YY_NO_UNPUT   1
#define YY_NO_PUSH_STATE   1
#define YY_NO_POP_STATE   1
#define YY_NO_TOP_STATE   1
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
#define YY_DECL   int yylex YY_PROTO(( void ))
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)

Typedefs

typedef yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Enumerations

enum  cf_type { T_UNKNOWN, T_INT, T_STRING, T_REAL }

Functions

void yyrestart YY_PROTO ((FILE *input_file))
void yy_switch_to_buffer YY_PROTO ((YY_BUFFER_STATE new_buffer))
void yy_load_buffer_state YY_PROTO ((void))
YY_BUFFER_STATE yy_create_buffer YY_PROTO ((FILE *file, int size))
void yy_delete_buffer YY_PROTO ((YY_BUFFER_STATE b))
void yy_init_buffer YY_PROTO ((YY_BUFFER_STATE b, FILE *file))
YY_BUFFER_STATE yy_scan_buffer YY_PROTO ((char *base, yy_size_t size))
YY_BUFFER_STATE yy_scan_string YY_PROTO ((yyconst char *yy_str))
YY_BUFFER_STATE yy_scan_bytes YY_PROTO ((yyconst char *bytes, int len))
void *yy_flex_alloc YY_PROTO ((yy_size_t))
void *yy_flex_realloc YY_PROTO ((void *, yy_size_t))
void yy_flex_free YY_PROTO ((void *))
yy_state_type yy_try_NUL_trans YY_PROTO ((yy_state_type current_state))
void yy_fatal_error YY_PROTO ((yyconst char msg[]))
void comment ()

Variables

int yyleng
FILE * yyin = (FILE *) 0
FILE * yyout = (FILE *) 0
YY_BUFFER_STATE yy_current_buffer = 0
char yy_hold_char
int yy_n_chars
char * yy_c_buf_p = (char *) 0
int yy_init = 1
int yy_start = 0
int yy_did_buffer_switch_on_eof
char * yytext
yyconst short yy_nxt [][256]
yyconst short int yy_accept [41]
yy_state_type yy_last_accepting_state
char * yy_last_accepting_cpos
yyconst yy_state_type yy_NUL_trans [41]
CIFile cf_ifile
int cf_CurrentLine
bool cf_Ignore
int size
FILE * file
int len


Define Documentation

#define BEGIN   yy_start = 1 + 2 *
 

Definition at line 103 of file cf_lexical.cpp.

#define DEBUG_PRINTF
 

Definition at line 1660 of file cf_lexical.cpp.

#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
 

Definition at line 1792 of file cf_lexical.cpp.

#define EOB_ACT_CONTINUE_SCAN   0
 

Definition at line 128 of file cf_lexical.cpp.

#define EOB_ACT_END_OF_FILE   1
 

Definition at line 129 of file cf_lexical.cpp.

#define EOB_ACT_LAST_MATCH   2
 

Definition at line 130 of file cf_lexical.cpp.

#define FLEX_SCANNER
 

Definition at line 26 of file cf_lexical.cpp.

#define INITIAL   0
 

Definition at line 1638 of file cf_lexical.cpp.

#define REJECT   reject_used_but_not_detected
 

Definition at line 1632 of file cf_lexical.cpp.

#define unput      yyunput( c, yytext_ptr )
 

Definition at line 159 of file cf_lexical.cpp.

 
#define YY_AT_BOL      (yy_current_buffer->yy_at_bol)
 

Definition at line 286 of file cf_lexical.cpp.

#define YY_BREAK   break;
 

Definition at line 1838 of file cf_lexical.cpp.

#define YY_BUF_SIZE   16384
 

Definition at line 121 of file cf_lexical.cpp.

#define YY_BUFFER_EOF_PENDING   2
 

Definition at line 222 of file cf_lexical.cpp.

#define YY_BUFFER_NEW   0
 

Definition at line 210 of file cf_lexical.cpp.

#define YY_BUFFER_NORMAL   1
 

Definition at line 211 of file cf_lexical.cpp.

#define yy_create_buffer   cf_create_buffer
 

Definition at line 1 of file cf_lexical.cpp.

#define YY_CURRENT_BUFFER   yy_current_buffer
 

Definition at line 231 of file cf_lexical.cpp.

#define YY_DECL   int yylex YY_PROTO(( void ))
 

Definition at line 1826 of file cf_lexical.cpp.

#define yy_delete_buffer   cf_delete_buffer
 

Definition at line 2 of file cf_lexical.cpp.

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

Definition at line 1601 of file cf_lexical.cpp.

#define YY_END_OF_BUFFER   24
 

Definition at line 1609 of file cf_lexical.cpp.

#define YY_END_OF_BUFFER_CHAR   0
 

Definition at line 118 of file cf_lexical.cpp.

#define YY_EXIT_FAILURE   2
 

#define YY_FATAL_ERROR msg       yy_fatal_error( msg )
 

Definition at line 1819 of file cf_lexical.cpp.

#define yy_flex_debug   cf_flex_debug
 

Definition at line 6 of file cf_lexical.cpp.

#define YY_FLEX_MAJOR_VERSION   2
 

Definition at line 27 of file cf_lexical.cpp.

#define YY_FLEX_MINOR_VERSION   5
 

Definition at line 28 of file cf_lexical.cpp.

#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
 

Definition at line 260 of file cf_lexical.cpp.

#define yy_flush_buffer   cf_flush_buffer
 

Definition at line 8 of file cf_lexical.cpp.

#define yy_init_buffer   cf_init_buffer
 

Definition at line 7 of file cf_lexical.cpp.

#define YY_INPUT buf,
result,
max_size   
 

Value:

{ \
        if (cf_ifile.eof()) \
        { \
                DEBUG_PRINTF("YY_INPUT: eof");\
                result = YY_NULL; \
        } else { \
                uint32 nbc = std::min((uint32)max_size, (uint32)cf_ifile.getFileSize() - cf_ifile.getPos()); \
                DEBUG_PRINTF("YY_INPUT: wanted %d bytes, will read %d\n", max_size, nbc);\
                cf_ifile.serialBuffer ((uint8 *)buf, nbc); \
                result = nbc; \
        } \
}

Definition at line 1684 of file cf_lexical.cpp.

#define yy_load_buffer_state   cf_load_buffer_state
 

Definition at line 9 of file cf_lexical.cpp.

#define YY_MORE_ADJ   0
 

Definition at line 1634 of file cf_lexical.cpp.

#define YY_NEVER_INTERACTIVE   1
 

Definition at line 1663 of file cf_lexical.cpp.

#define yy_new_buffer   yy_create_buffer
 

Definition at line 270 of file cf_lexical.cpp.

#define YY_NEW_FILE   yyrestart( yyin )
 

Definition at line 116 of file cf_lexical.cpp.

#define YY_NO_POP_STATE   1
 

Definition at line 1762 of file cf_lexical.cpp.

#define YY_NO_PUSH_STATE   1
 

Definition at line 1761 of file cf_lexical.cpp.

#define YY_NO_TOP_STATE   1
 

Definition at line 1763 of file cf_lexical.cpp.

#define YY_NO_UNPUT   1
 

Definition at line 1711 of file cf_lexical.cpp.

#define YY_NULL   0
 

Definition at line 90 of file cf_lexical.cpp.

#define YY_NUM_RULES   23
 

Definition at line 1608 of file cf_lexical.cpp.

#define YY_PROTO proto       ()
 

Definition at line 86 of file cf_lexical.cpp.

#define YY_READ_BUF_SIZE   8192
 

Definition at line 1783 of file cf_lexical.cpp.

#define YY_RESTORE_YY_MORE_OFFSET
 

Definition at line 1635 of file cf_lexical.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION
 

Definition at line 1841 of file cf_lexical.cpp.

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

Definition at line 97 of file cf_lexical.cpp.

#define yy_scan_buffer   cf_scan_buffer
 

Definition at line 3 of file cf_lexical.cpp.

#define yy_scan_bytes   cf_scan_bytes
 

Definition at line 5 of file cf_lexical.cpp.

#define yy_scan_string   cf_scan_string
 

Definition at line 4 of file cf_lexical.cpp.

#define yy_set_bol at_bol   
 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_at_bol = at_bol; \
        }

Definition at line 279 of file cf_lexical.cpp.

#define yy_set_interactive is_interactive   
 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_is_interactive = is_interactive; \
        }

Definition at line 272 of file cf_lexical.cpp.

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

Definition at line 109 of file cf_lexical.cpp.

#define YY_START_STACK_INCR   25
 

Definition at line 1814 of file cf_lexical.cpp.

#define YY_STATE_EOF state       (YY_END_OF_BUFFER + state + 1)
 

Definition at line 113 of file cf_lexical.cpp.

#define yy_switch_to_buffer   cf_switch_to_buffer
 

Definition at line 10 of file cf_lexical.cpp.

#define yyconst
 

Definition at line 79 of file cf_lexical.cpp.

FILE * yyin   cfin
 

Definition at line 11 of file cf_lexical.cpp.

int yyleng   cfleng
 

Definition at line 12 of file cf_lexical.cpp.

#define yyless  
 

Value:

do \
                { \
                  \
                yytext[yyleng] = yy_hold_char; \
                yy_c_buf_p = yytext + n; \
                yy_hold_char = *yy_c_buf_p; \
                *yy_c_buf_p = '\0'; \
                yyleng = n; \
                } \
        while ( 0 )

Definition at line 148 of file cf_lexical.cpp.

#define yyless  
 

Value:

do \
                { \
                  \
                *yy_cp = yy_hold_char; \
                YY_RESTORE_YY_MORE_OFFSET \
                yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION;   \
                } \
        while ( 0 )

Definition at line 148 of file cf_lexical.cpp.

#define yylex   cflex
 

Definition at line 13 of file cf_lexical.cpp.

 
#define yymore      yymore_used_but_not_detected
 

Definition at line 1633 of file cf_lexical.cpp.

FILE * yyout   cfout
 

Definition at line 14 of file cf_lexical.cpp.

#define yyrestart   cfrestart
 

Definition at line 15 of file cf_lexical.cpp.

#define YYSTATE   YY_START
 

Definition at line 110 of file cf_lexical.cpp.

 
#define yyterminate      return YY_NULL
 

Definition at line 1809 of file cf_lexical.cpp.

char * yytext   cftext
 

Definition at line 16 of file cf_lexical.cpp.

#define yytext_ptr   yytext
 

Definition at line 292 of file cf_lexical.cpp.

#define yywrap   cfwrap
 

Definition at line 17 of file cf_lexical.cpp.


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

Definition at line 123 of file cf_lexical.cpp.

typedef unsigned char YY_CHAR
 

Definition at line 288 of file cf_lexical.cpp.

typedef unsigned int yy_size_t
 

Definition at line 165 of file cf_lexical.cpp.

typedef int yy_state_type
 

Definition at line 290 of file cf_lexical.cpp.


Enumeration Type Documentation

enum cf_type
 

Enumeration values:
T_UNKNOWN 
T_INT 
T_STRING 
T_REAL 

Definition at line 1671 of file cf_lexical.cpp.


Function Documentation

void comment  
 

Referenced by NLAIFUZZY::CFuzzyRule::CFuzzyRule, NLAIFUZZY::CFuzzyRuleSet::CFuzzyRuleSet, and NLMISC::COXml::xmlCommentInternal.

void yy_fatal_error YY_PROTO (yyconst char msg[])    [static]
 

yy_state_type yy_try_NUL_trans YY_PROTO (yy_state_type current_state)    [static]
 

void yy_flex_free YY_PROTO (void *)    [static]
 

void* yy_flex_realloc YY_PROTO (void *, yy_size_t   [static]
 

void* yy_flex_alloc YY_PROTO (yy_size_t   [static]
 

YY_BUFFER_STATE yy_scan_bytes YY_PROTO (yyconst char *bytes, int len  
 

YY_BUFFER_STATE yy_scan_string YY_PROTO (yyconst char *yy_str)   
 

YY_BUFFER_STATE yy_scan_buffer YY_PROTO (char *base, yy_size_t size  
 

void yy_init_buffer YY_PROTO (YY_BUFFER_STATE b, FILE *file  
 

void yy_flush_buffer YY_PROTO (YY_BUFFER_STATE b)   
 

YY_BUFFER_STATE yy_create_buffer YY_PROTO (FILE *file, int size  
 

void yy_load_buffer_state YY_PROTO (void)   
 

void yy_switch_to_buffer YY_PROTO (YY_BUFFER_STATE new_buffer)   
 

void yyrestart YY_PROTO (FILE *input_file)   
 


Variable Documentation

int cf_CurrentLine
 

Definition at line 1703 of file cf_lexical.cpp.

CIFile cf_ifile
 

Definition at line 1682 of file cf_lexical.cpp.

bool cf_Ignore
 

Definition at line 1707 of file cf_lexical.cpp.

FILE* file
 

Definition at line 2654 of file cf_lexical.cpp.

Referenced by NL3D::CAnimationSetUser::addAnimation, NLMISC::CPath::addSearchFile, NL3D::CAnimationSetUser::addSkeletonWeight, NLMEMORY::CHeapAllocator::allocate, NL3D::CTextureFile::buildBitmapFromFile, NL3D::UAnimation::createAnimation, NLPACS::UGlobalRetriever::createGlobalRetriever, NLPACS::URetrieverBank::createRetrieverBank, NL3D::CDriverUser::createTextureFile, NLAISCRIPT::CScriptDebugSourceFile::CScriptDebugSourceFile, NLMISC::CHeapAllocator::debugStatisticsReport, NLMISC::EDDSBadHeader::EDDSBadHeader, NL3D::EDruOpenglDriverOldVersion::EDruOpenglDriverOldVersion, NLMISC::EFile::EFile, NLMISC::EReadError::EReadError, NLSOUND::ESoundDriverOldVersion::ESoundDriverOldVersion, NLSOUND::ESoundFileNotFound::ESoundFileNotFound, NLMISC::EWriteError::EWriteError, NLMEMORY::CHeapAllocator::getBlockSize, NL3D::CInstanceGroupUser::init, NLAISCRIPT::CCompilateur::InitFromFile, NL3D::CLandscapeIGManager::initIG, NLSOUND::CSoundAnimation::load, NL3D::CSceneUser::loadCLodShapeBank, NLPACS::CMoveContainer::loadCollisionablePrimitiveBlock, NLGEORGES::CFormLoader::loadForm, NLGEORGES::CFormLoader::loadFormDfn, NLMISC::CSheetId::loadSheetId, NLGEORGES::CFormLoader::loadType, NLSOUND::CBufferDSound::loadWavFile, NLMEMORY::CHeapAllocator::mergeNode, NLMISC::CPath::remapExtension, NL3D::CZoneLoadingTask::run, NLSOUND::CSoundAnimation::save, and NL3D::CCoarseMeshManager::setTextureFile.

int len
 

Definition at line 2767 of file cf_lexical.cpp.

yy_size_t size
 

Definition at line 2935 of file cf_lexical.cpp.

Referenced by NLMISC::CBitmap::alphaLuminanceToAlpha, NLMISC::CBitmap::alphaLuminanceToLuminance, NLMISC::CBitmap::alphaLuminanceToRGBA, NLMISC::CBitmap::alphaToAlphaLuminance, NLMISC::CBitmap::alphaToRGBA, NLAISCRIPT::COperatorClass::buildLogicTables, NL3D::CPatch::generateTileVegetable, NLAISCRIPT::COperatorClass::initialiseFactBase, NLMISC::CBitmap::luminanceToAlpha, NLMISC::CBitmap::luminanceToAlphaLuminance, NLMISC::CBitmap::luminanceToRGBA, ucstring::operator+=, NL3D::CMeshMRM::optimizeMaterialUsage, NL3D::CMesh::optimizeMaterialUsage, NLAIAGENT::COperatorScript::propagate, NL3D::CTextureFar::rebuildRectangle, NLMISC::CBufFIFO::resize, NLMISC::CBitmap::rgbaToAlpha, NLMISC::CBitmap::rgbaToAlphaLuminance, and NLMISC::CBitmap::rgbaToLuminance.

yyconst short int yy_accept[41] [static]
 

Initial value:

    {   0,
        0,    0,   24,   23,   13,   14,   23,    6,    5,    3,
        1,   12,    2,   23,    4,   21,   21,    9,    7,   19,
       11,   10,    0,   18,   17,    8,   20,   16,   15,   20,
       21,    0,   19,    0,    0,   22,    0,   20,    0,   20
    }

Definition at line 1610 of file cf_lexical.cpp.

char* yy_c_buf_p = (char *) 0 [static]
 

Definition at line 243 of file cf_lexical.cpp.

YY_BUFFER_STATE yy_current_buffer = 0 [static]
 

Definition at line 225 of file cf_lexical.cpp.

int yy_did_buffer_switch_on_eof [static]
 

Definition at line 250 of file cf_lexical.cpp.

char yy_hold_char [static]
 

Definition at line 235 of file cf_lexical.cpp.

int yy_init = 1 [static]
 

Definition at line 244 of file cf_lexical.cpp.

char* yy_last_accepting_cpos [static]
 

Definition at line 1619 of file cf_lexical.cpp.

yy_state_type yy_last_accepting_state [static]
 

Definition at line 1618 of file cf_lexical.cpp.

int yy_n_chars [static]
 

Definition at line 237 of file cf_lexical.cpp.

yyconst yy_state_type yy_NUL_trans[41] [static]
 

Initial value:

    {   0,
        4,    4,    0,    0,    0,    0,   23,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,   23,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0
    }

Definition at line 1621 of file cf_lexical.cpp.

yyconst short yy_nxt[][256] [static]
 

Definition at line 293 of file cf_lexical.cpp.

int yy_start = 0 [static]
 

Definition at line 245 of file cf_lexical.cpp.

FILE* yyin = (FILE *) 0
 

Definition at line 289 of file cf_lexical.cpp.

int yyleng
 

Definition at line 240 of file cf_lexical.cpp.

FILE * yyout = (FILE *) 0
 

Definition at line 289 of file cf_lexical.cpp.

char* yytext
 

Definition at line 1636 of file cf_lexical.cpp.