|
|
|
|
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_state * | YY_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 EOB_ACT_CONTINUE_SCAN 0
|
|
#define EOB_ACT_END_OF_FILE 1
|
|
#define EOB_ACT_LAST_MATCH 2
|
|
#define REJECT reject_used_but_not_detected
|
|
#define unput |
( |
c |
|
) |
yyunput( c, yytext_ptr )
|
|
#define YY_BUF_SIZE 16384
|
|
#define YY_BUFFER_EOF_PENDING 2
|
|
#define YY_BUFFER_NORMAL 1
|
|
#define yy_create_buffer cf_create_buffer
|
|
#define YY_DECL int yylex YY_PROTO(( void ))
|
|
#define yy_delete_buffer cf_delete_buffer
|
|
#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
|
|
#define YY_END_OF_BUFFER_CHAR 0
|
|
#define YY_EXIT_FAILURE 2
|
|
#define YY_FATAL_ERROR |
( |
msg |
|
) |
yy_fatal_error( msg )
|
|
#define yy_flex_debug cf_flex_debug
|
|
#define YY_FLEX_MAJOR_VERSION 2
|
|
#define YY_FLEX_MINOR_VERSION 5
|
|
#define yy_flush_buffer cf_flush_buffer
|
|
#define yy_init_buffer cf_init_buffer
|
|
#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
|
|
#define YY_NEVER_INTERACTIVE 1
|
|
#define yy_new_buffer yy_create_buffer
|
|
#define YY_NEW_FILE yyrestart( yyin )
|
|
#define YY_NO_POP_STATE 1
|
|
#define YY_NO_PUSH_STATE 1
|
|
#define YY_NO_TOP_STATE 1
|
|
#define YY_PROTO |
( |
proto |
|
) |
()
|
|
#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_scan_buffer cf_scan_buffer
|
|
#define yy_scan_bytes cf_scan_bytes
|
|
#define yy_scan_string cf_scan_string
|
|
#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_STACK_INCR 25
|
|
#define YY_STATE_EOF |
( |
state |
|
) |
(YY_END_OF_BUFFER + state + 1)
|
|
#define yy_switch_to_buffer cf_switch_to_buffer
|
|
|
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 yymore |
( |
|
) |
yymore_used_but_not_detected
|
|
#define yyrestart cfrestart
|
|
#define yyterminate |
( |
|
) |
return YY_NULL
|
|
Typedef Documentation
typedef unsigned char YY_CHAR
|
|
typedef unsigned int yy_size_t
|
|
typedef int yy_state_type
|
|
Enumeration Type Documentation
|
-
Enumeration values:
-
T_UNKNOWN |
|
T_INT |
|
T_STRING |
|
T_REAL |
|
Definition at line 1671 of file cf_lexical.cpp. |
Function Documentation
void yy_fatal_error YY_PROTO |
( |
(yyconst char msg[]) |
|
) |
[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] |
|
void yy_load_buffer_state YY_PROTO |
( |
(void) |
|
) |
|
|
void yyrestart YY_PROTO |
( |
(FILE *input_file) |
|
) |
|
|
Variable Documentation
|
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. |
|
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]
|
|
int yy_did_buffer_switch_on_eof [static]
|
|
char yy_hold_char [static]
|
|
char* yy_last_accepting_cpos [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]
|
|
int yy_start = 0 [static]
|
|
FILE * yyout = (FILE *) 0
|
|
|
|