Regenerated parsers and scanners.

This commit is contained in:
Ryan C. Gordon 2016-04-01 15:17:48 -04:00
parent d02a7a41c4
commit 49b5163cc9
5 changed files with 421 additions and 421 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
#line 2 "./Ecc/Scanner.cpp" #line 2 "Ecc/Scanner.cpp"
#line 4 "./Ecc/Scanner.cpp" #line 4 "Ecc/Scanner.cpp"
#define YY_INT_ALIGNED short int #define YY_INT_ALIGNED short int
@ -716,8 +716,8 @@ int yy_flex_debug = 0;
#define YY_MORE_ADJ 0 #define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET #define YY_RESTORE_YY_MORE_OFFSET
char *yytext; char *yytext;
#line 1 "./Ecc/Scanner.l" #line 1 "Ecc/Scanner.l"
#line 2 "./Ecc/Scanner.l" #line 2 "Ecc/Scanner.l"
// rcg10042001 Changed to specify Ecc directory... // rcg10042001 Changed to specify Ecc directory...
#include "Ecc/StdH.h" #include "Ecc/StdH.h"
#include "Ecc/Main.h" #include "Ecc/Main.h"
@ -743,7 +743,7 @@ char *_strCppBlock;
#line 747 "./Ecc/Scanner.cpp" #line 747 "Ecc/Scanner.cpp"
#define INITIAL 0 #define INITIAL 0
#define COMMENT 1 #define COMMENT 1
@ -927,11 +927,11 @@ YY_DECL
register char *yy_cp, *yy_bp; register char *yy_cp, *yy_bp;
register int yy_act; register int yy_act;
#line 38 "./Ecc/Scanner.l" #line 38 "Ecc/Scanner.l"
/* standard cpp-keywords */ /* standard cpp-keywords */
#line 935 "./Ecc/Scanner.cpp" #line 935 "Ecc/Scanner.cpp"
if ( !(yy_init) ) if ( !(yy_init) )
{ {
@ -1016,374 +1016,374 @@ do_action: /* This label is used only to access EOF actions. */
case 1: case 1:
YY_RULE_SETUP YY_RULE_SETUP
#line 41 "./Ecc/Scanner.l" #line 41 "Ecc/Scanner.l"
{RETURN(k_while);} {RETURN(k_while);}
YY_BREAK YY_BREAK
case 2: case 2:
YY_RULE_SETUP YY_RULE_SETUP
#line 42 "./Ecc/Scanner.l" #line 42 "Ecc/Scanner.l"
{RETURN(k_switch);} {RETURN(k_switch);}
YY_BREAK YY_BREAK
case 3: case 3:
YY_RULE_SETUP YY_RULE_SETUP
#line 43 "./Ecc/Scanner.l" #line 43 "Ecc/Scanner.l"
{RETURN(k_case);} {RETURN(k_case);}
YY_BREAK YY_BREAK
case 4: case 4:
YY_RULE_SETUP YY_RULE_SETUP
#line 44 "./Ecc/Scanner.l" #line 44 "Ecc/Scanner.l"
{RETURN(k_for);} {RETURN(k_for);}
YY_BREAK YY_BREAK
case 5: case 5:
YY_RULE_SETUP YY_RULE_SETUP
#line 45 "./Ecc/Scanner.l" #line 45 "Ecc/Scanner.l"
{RETURN(k_if);} {RETURN(k_if);}
YY_BREAK YY_BREAK
case 6: case 6:
YY_RULE_SETUP YY_RULE_SETUP
#line 46 "./Ecc/Scanner.l" #line 46 "Ecc/Scanner.l"
{RETURN(k_else);} {RETURN(k_else);}
YY_BREAK YY_BREAK
case 7: case 7:
YY_RULE_SETUP YY_RULE_SETUP
#line 47 "./Ecc/Scanner.l" #line 47 "Ecc/Scanner.l"
{RETURN(k_enum);} {RETURN(k_enum);}
YY_BREAK YY_BREAK
case 8: case 8:
YY_RULE_SETUP YY_RULE_SETUP
#line 48 "./Ecc/Scanner.l" #line 48 "Ecc/Scanner.l"
{RETURN(k_class);} {RETURN(k_class);}
YY_BREAK YY_BREAK
case 9: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 49 "./Ecc/Scanner.l" #line 49 "Ecc/Scanner.l"
{RETURN(k_do);} {RETURN(k_do);}
YY_BREAK YY_BREAK
case 10: case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 50 "./Ecc/Scanner.l" #line 50 "Ecc/Scanner.l"
{RETURN(k_void);} {RETURN(k_void);}
YY_BREAK YY_BREAK
case 11: case 11:
YY_RULE_SETUP YY_RULE_SETUP
#line 51 "./Ecc/Scanner.l" #line 51 "Ecc/Scanner.l"
{RETURN(k_const);} {RETURN(k_const);}
YY_BREAK YY_BREAK
case 12: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 52 "./Ecc/Scanner.l" #line 52 "Ecc/Scanner.l"
{RETURN(k_inline);} {RETURN(k_inline);}
YY_BREAK YY_BREAK
case 13: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 53 "./Ecc/Scanner.l" #line 53 "Ecc/Scanner.l"
{RETURN(k_static);} {RETURN(k_static);}
YY_BREAK YY_BREAK
case 14: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 54 "./Ecc/Scanner.l" #line 54 "Ecc/Scanner.l"
{RETURN(k_virtual);} {RETURN(k_virtual);}
YY_BREAK YY_BREAK
case 15: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 55 "./Ecc/Scanner.l" #line 55 "Ecc/Scanner.l"
{RETURN(k_return);} {RETURN(k_return);}
YY_BREAK YY_BREAK
case 16: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 56 "./Ecc/Scanner.l" #line 56 "Ecc/Scanner.l"
{RETURN(k_autowait);} {RETURN(k_autowait);}
YY_BREAK YY_BREAK
case 17: case 17:
YY_RULE_SETUP YY_RULE_SETUP
#line 57 "./Ecc/Scanner.l" #line 57 "Ecc/Scanner.l"
{RETURN(k_autocall);} {RETURN(k_autocall);}
YY_BREAK YY_BREAK
case 18: case 18:
YY_RULE_SETUP YY_RULE_SETUP
#line 58 "./Ecc/Scanner.l" #line 58 "Ecc/Scanner.l"
{RETURN(k_waitevent);} {RETURN(k_waitevent);}
YY_BREAK YY_BREAK
/* aditional keywords */ /* aditional keywords */
case 19: case 19:
YY_RULE_SETUP YY_RULE_SETUP
#line 61 "./Ecc/Scanner.l" #line 61 "Ecc/Scanner.l"
{RETURN(k_event);} {RETURN(k_event);}
YY_BREAK YY_BREAK
case 20: case 20:
YY_RULE_SETUP YY_RULE_SETUP
#line 62 "./Ecc/Scanner.l" #line 62 "Ecc/Scanner.l"
{RETURN(k_name);} {RETURN(k_name);}
YY_BREAK YY_BREAK
case 21: case 21:
YY_RULE_SETUP YY_RULE_SETUP
#line 63 "./Ecc/Scanner.l" #line 63 "Ecc/Scanner.l"
{RETURN(k_thumbnail);} {RETURN(k_thumbnail);}
YY_BREAK YY_BREAK
case 22: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 64 "./Ecc/Scanner.l" #line 64 "Ecc/Scanner.l"
{RETURN(k_features);} {RETURN(k_features);}
YY_BREAK YY_BREAK
case 23: case 23:
YY_RULE_SETUP YY_RULE_SETUP
#line 65 "./Ecc/Scanner.l" #line 65 "Ecc/Scanner.l"
{RETURN(k_uses);} {RETURN(k_uses);}
YY_BREAK YY_BREAK
case 24: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 66 "./Ecc/Scanner.l" #line 66 "Ecc/Scanner.l"
{RETURN(k_export);} {RETURN(k_export);}
YY_BREAK YY_BREAK
case 25: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 68 "./Ecc/Scanner.l" #line 68 "Ecc/Scanner.l"
{RETURN(k_texture);} {RETURN(k_texture);}
YY_BREAK YY_BREAK
case 26: case 26:
YY_RULE_SETUP YY_RULE_SETUP
#line 69 "./Ecc/Scanner.l" #line 69 "Ecc/Scanner.l"
{RETURN(k_sound);} {RETURN(k_sound);}
YY_BREAK YY_BREAK
case 27: case 27:
YY_RULE_SETUP YY_RULE_SETUP
#line 70 "./Ecc/Scanner.l" #line 70 "Ecc/Scanner.l"
{RETURN(k_model);} {RETURN(k_model);}
YY_BREAK YY_BREAK
case 28: case 28:
YY_RULE_SETUP YY_RULE_SETUP
#line 72 "./Ecc/Scanner.l" #line 72 "Ecc/Scanner.l"
{RETURN(k_properties);} {RETURN(k_properties);}
YY_BREAK YY_BREAK
case 29: case 29:
YY_RULE_SETUP YY_RULE_SETUP
#line 73 "./Ecc/Scanner.l" #line 73 "Ecc/Scanner.l"
{RETURN(k_components);} {RETURN(k_components);}
YY_BREAK YY_BREAK
case 30: case 30:
YY_RULE_SETUP YY_RULE_SETUP
#line 74 "./Ecc/Scanner.l" #line 74 "Ecc/Scanner.l"
{RETURN(k_functions);} {RETURN(k_functions);}
YY_BREAK YY_BREAK
case 31: case 31:
YY_RULE_SETUP YY_RULE_SETUP
#line 75 "./Ecc/Scanner.l" #line 75 "Ecc/Scanner.l"
{RETURN(k_procedures);} {RETURN(k_procedures);}
YY_BREAK YY_BREAK
case 32: case 32:
YY_RULE_SETUP YY_RULE_SETUP
#line 77 "./Ecc/Scanner.l" #line 77 "Ecc/Scanner.l"
{RETURN(k_wait );} {RETURN(k_wait );}
YY_BREAK YY_BREAK
case 33: case 33:
YY_RULE_SETUP YY_RULE_SETUP
#line 78 "./Ecc/Scanner.l" #line 78 "Ecc/Scanner.l"
{RETURN(k_on );} {RETURN(k_on );}
YY_BREAK YY_BREAK
case 34: case 34:
YY_RULE_SETUP YY_RULE_SETUP
#line 79 "./Ecc/Scanner.l" #line 79 "Ecc/Scanner.l"
{RETURN(k_otherwise);} {RETURN(k_otherwise);}
YY_BREAK YY_BREAK
case 35: case 35:
YY_RULE_SETUP YY_RULE_SETUP
#line 81 "./Ecc/Scanner.l" #line 81 "Ecc/Scanner.l"
{RETURN(k_call );} {RETURN(k_call );}
YY_BREAK YY_BREAK
case 36: case 36:
YY_RULE_SETUP YY_RULE_SETUP
#line 82 "./Ecc/Scanner.l" #line 82 "Ecc/Scanner.l"
{RETURN(k_jump );} {RETURN(k_jump );}
YY_BREAK YY_BREAK
case 37: case 37:
YY_RULE_SETUP YY_RULE_SETUP
#line 83 "./Ecc/Scanner.l" #line 83 "Ecc/Scanner.l"
{RETURN(k_stop );} {RETURN(k_stop );}
YY_BREAK YY_BREAK
case 38: case 38:
YY_RULE_SETUP YY_RULE_SETUP
#line 84 "./Ecc/Scanner.l" #line 84 "Ecc/Scanner.l"
{RETURN(k_resume );} {RETURN(k_resume );}
YY_BREAK YY_BREAK
case 39: case 39:
YY_RULE_SETUP YY_RULE_SETUP
#line 85 "./Ecc/Scanner.l" #line 85 "Ecc/Scanner.l"
{RETURN(k_pass );} {RETURN(k_pass );}
YY_BREAK YY_BREAK
/* special data types */ /* special data types */
case 40: case 40:
YY_RULE_SETUP YY_RULE_SETUP
#line 88 "./Ecc/Scanner.l" #line 88 "Ecc/Scanner.l"
{RETURN(k_CTString);} {RETURN(k_CTString);}
YY_BREAK YY_BREAK
case 41: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 89 "./Ecc/Scanner.l" #line 89 "Ecc/Scanner.l"
{RETURN(k_CTStringTrans);} {RETURN(k_CTStringTrans);}
YY_BREAK YY_BREAK
case 42: case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 90 "./Ecc/Scanner.l" #line 90 "Ecc/Scanner.l"
{RETURN(k_CTFileName);} {RETURN(k_CTFileName);}
YY_BREAK YY_BREAK
case 43: case 43:
YY_RULE_SETUP YY_RULE_SETUP
#line 91 "./Ecc/Scanner.l" #line 91 "Ecc/Scanner.l"
{RETURN(k_CTFileNameNoDep);} {RETURN(k_CTFileNameNoDep);}
YY_BREAK YY_BREAK
case 44: case 44:
YY_RULE_SETUP YY_RULE_SETUP
#line 92 "./Ecc/Scanner.l" #line 92 "Ecc/Scanner.l"
{RETURN(k_BOOL);} {RETURN(k_BOOL);}
YY_BREAK YY_BREAK
case 45: case 45:
YY_RULE_SETUP YY_RULE_SETUP
#line 93 "./Ecc/Scanner.l" #line 93 "Ecc/Scanner.l"
{RETURN(k_COLOR);} {RETURN(k_COLOR);}
YY_BREAK YY_BREAK
case 46: case 46:
YY_RULE_SETUP YY_RULE_SETUP
#line 94 "./Ecc/Scanner.l" #line 94 "Ecc/Scanner.l"
{RETURN(k_FLOAT);} {RETURN(k_FLOAT);}
YY_BREAK YY_BREAK
case 47: case 47:
YY_RULE_SETUP YY_RULE_SETUP
#line 95 "./Ecc/Scanner.l" #line 95 "Ecc/Scanner.l"
{RETURN(k_INDEX);} {RETURN(k_INDEX);}
YY_BREAK YY_BREAK
case 48: case 48:
YY_RULE_SETUP YY_RULE_SETUP
#line 96 "./Ecc/Scanner.l" #line 96 "Ecc/Scanner.l"
{RETURN(k_RANGE);} {RETURN(k_RANGE);}
YY_BREAK YY_BREAK
case 49: case 49:
YY_RULE_SETUP YY_RULE_SETUP
#line 97 "./Ecc/Scanner.l" #line 97 "Ecc/Scanner.l"
{RETURN(k_CEntityPointer);} {RETURN(k_CEntityPointer);}
YY_BREAK YY_BREAK
case 50: case 50:
YY_RULE_SETUP YY_RULE_SETUP
#line 98 "./Ecc/Scanner.l" #line 98 "Ecc/Scanner.l"
{RETURN(k_CModelObject);} {RETURN(k_CModelObject);}
YY_BREAK YY_BREAK
case 51: case 51:
YY_RULE_SETUP YY_RULE_SETUP
#line 99 "./Ecc/Scanner.l" #line 99 "Ecc/Scanner.l"
{RETURN(k_CModelInstance);} {RETURN(k_CModelInstance);}
YY_BREAK YY_BREAK
case 52: case 52:
YY_RULE_SETUP YY_RULE_SETUP
#line 100 "./Ecc/Scanner.l" #line 100 "Ecc/Scanner.l"
{RETURN(k_CAnimObject);} {RETURN(k_CAnimObject);}
YY_BREAK YY_BREAK
case 53: case 53:
YY_RULE_SETUP YY_RULE_SETUP
#line 101 "./Ecc/Scanner.l" #line 101 "Ecc/Scanner.l"
{RETURN(k_CSoundObject);} {RETURN(k_CSoundObject);}
YY_BREAK YY_BREAK
case 54: case 54:
YY_RULE_SETUP YY_RULE_SETUP
#line 102 "./Ecc/Scanner.l" #line 102 "Ecc/Scanner.l"
{RETURN(k_CPlacement3D);} {RETURN(k_CPlacement3D);}
YY_BREAK YY_BREAK
case 55: case 55:
YY_RULE_SETUP YY_RULE_SETUP
#line 103 "./Ecc/Scanner.l" #line 103 "Ecc/Scanner.l"
{RETURN(k_FLOATaabbox3D);} {RETURN(k_FLOATaabbox3D);}
YY_BREAK YY_BREAK
case 56: case 56:
YY_RULE_SETUP YY_RULE_SETUP
#line 104 "./Ecc/Scanner.l" #line 104 "Ecc/Scanner.l"
{RETURN(k_FLOATmatrix3D);} {RETURN(k_FLOATmatrix3D);}
YY_BREAK YY_BREAK
case 57: case 57:
YY_RULE_SETUP YY_RULE_SETUP
#line 105 "./Ecc/Scanner.l" #line 105 "Ecc/Scanner.l"
{RETURN(k_FLOATquat3D);} {RETURN(k_FLOATquat3D);}
YY_BREAK YY_BREAK
case 58: case 58:
YY_RULE_SETUP YY_RULE_SETUP
#line 106 "./Ecc/Scanner.l" #line 106 "Ecc/Scanner.l"
{RETURN(k_ANGLE);}; {RETURN(k_ANGLE);};
YY_BREAK YY_BREAK
case 59: case 59:
YY_RULE_SETUP YY_RULE_SETUP
#line 107 "./Ecc/Scanner.l" #line 107 "Ecc/Scanner.l"
{RETURN(k_ANIMATION);}; {RETURN(k_ANIMATION);};
YY_BREAK YY_BREAK
case 60: case 60:
YY_RULE_SETUP YY_RULE_SETUP
#line 108 "./Ecc/Scanner.l" #line 108 "Ecc/Scanner.l"
{RETURN(k_ILLUMINATIONTYPE);}; {RETURN(k_ILLUMINATIONTYPE);};
YY_BREAK YY_BREAK
case 61: case 61:
YY_RULE_SETUP YY_RULE_SETUP
#line 109 "./Ecc/Scanner.l" #line 109 "Ecc/Scanner.l"
{RETURN(k_FLOAT3D);}; {RETURN(k_FLOAT3D);};
YY_BREAK YY_BREAK
case 62: case 62:
YY_RULE_SETUP YY_RULE_SETUP
#line 110 "./Ecc/Scanner.l" #line 110 "Ecc/Scanner.l"
{RETURN(k_ANGLE3D);}; {RETURN(k_ANGLE3D);};
YY_BREAK YY_BREAK
case 63: case 63:
YY_RULE_SETUP YY_RULE_SETUP
#line 111 "./Ecc/Scanner.l" #line 111 "Ecc/Scanner.l"
{RETURN(k_FLOATplane3D);}; {RETURN(k_FLOATplane3D);};
YY_BREAK YY_BREAK
case 64: case 64:
YY_RULE_SETUP YY_RULE_SETUP
#line 112 "./Ecc/Scanner.l" #line 112 "Ecc/Scanner.l"
{RETURN(k_FLAGS);}; {RETURN(k_FLAGS);};
YY_BREAK YY_BREAK
/* single character operators and punctuations */ /* single character operators and punctuations */
case 65: case 65:
YY_RULE_SETUP YY_RULE_SETUP
#line 115 "./Ecc/Scanner.l" #line 115 "Ecc/Scanner.l"
{ {
RETURN(yytext[0]);} RETURN(yytext[0]);}
YY_BREAK YY_BREAK
/* constants */ /* constants */
case 66: case 66:
YY_RULE_SETUP YY_RULE_SETUP
#line 119 "./Ecc/Scanner.l" #line 119 "Ecc/Scanner.l"
{ RETURN(c_int); } { RETURN(c_int); }
YY_BREAK YY_BREAK
case 67: case 67:
YY_RULE_SETUP YY_RULE_SETUP
#line 120 "./Ecc/Scanner.l" #line 120 "Ecc/Scanner.l"
{ RETURN(c_int)}; { RETURN(c_int)};
YY_BREAK YY_BREAK
case 68: case 68:
YY_RULE_SETUP YY_RULE_SETUP
#line 121 "./Ecc/Scanner.l" #line 121 "Ecc/Scanner.l"
{ RETURN(c_int); } { RETURN(c_int); }
YY_BREAK YY_BREAK
case 69: case 69:
YY_RULE_SETUP YY_RULE_SETUP
#line 122 "./Ecc/Scanner.l" #line 122 "Ecc/Scanner.l"
{ RETURN(c_int); } { RETURN(c_int); }
YY_BREAK YY_BREAK
case 70: case 70:
YY_RULE_SETUP YY_RULE_SETUP
#line 123 "./Ecc/Scanner.l" #line 123 "Ecc/Scanner.l"
{ RETURN(c_string); } { RETURN(c_string); }
YY_BREAK YY_BREAK
case 71: case 71:
YY_RULE_SETUP YY_RULE_SETUP
#line 124 "./Ecc/Scanner.l" #line 124 "Ecc/Scanner.l"
{ RETURN(c_char); } { RETURN(c_char); }
YY_BREAK YY_BREAK
/* identifier */ /* identifier */
case 72: case 72:
YY_RULE_SETUP YY_RULE_SETUP
#line 127 "./Ecc/Scanner.l" #line 127 "Ecc/Scanner.l"
{RETURN(identifier);} {RETURN(identifier);}
YY_BREAK YY_BREAK
/* specially bracketed cpp blocks */ /* specially bracketed cpp blocks */
case 73: case 73:
YY_RULE_SETUP YY_RULE_SETUP
#line 130 "./Ecc/Scanner.l" #line 130 "Ecc/Scanner.l"
{ {
char strLine[80]; char strLine[80];
sprintf(strLine, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName ); sprintf(strLine, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName );
@ -1393,7 +1393,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 74: case 74:
YY_RULE_SETUP YY_RULE_SETUP
#line 136 "./Ecc/Scanner.l" #line 136 "Ecc/Scanner.l"
{ {
BEGIN(INITIAL); BEGIN(INITIAL);
yylval = SType(_strCppBlock); yylval = SType(_strCppBlock);
@ -1403,7 +1403,7 @@ YY_RULE_SETUP
case 75: case 75:
/* rule 75 can match eol */ /* rule 75 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 141 "./Ecc/Scanner.l" #line 141 "Ecc/Scanner.l"
{ {
_iLinesCt++; _iLinesCt++;
_strCppBlock = (SType(_strCppBlock)+yytext).strString; _strCppBlock = (SType(_strCppBlock)+yytext).strString;
@ -1411,7 +1411,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 76: case 76:
YY_RULE_SETUP YY_RULE_SETUP
#line 145 "./Ecc/Scanner.l" #line 145 "Ecc/Scanner.l"
{ {
_strCppBlock = (SType(_strCppBlock)+yytext).strString; _strCppBlock = (SType(_strCppBlock)+yytext).strString;
} }
@ -1419,29 +1419,29 @@ YY_RULE_SETUP
/* eat up comments */ /* eat up comments */
case 77: case 77:
YY_RULE_SETUP YY_RULE_SETUP
#line 150 "./Ecc/Scanner.l" #line 150 "Ecc/Scanner.l"
{ BEGIN(COMMENT); } { BEGIN(COMMENT); }
YY_BREAK YY_BREAK
case 78: case 78:
YY_RULE_SETUP YY_RULE_SETUP
#line 151 "./Ecc/Scanner.l" #line 151 "Ecc/Scanner.l"
{ BEGIN(INITIAL); } { BEGIN(INITIAL); }
YY_BREAK YY_BREAK
case 79: case 79:
YY_RULE_SETUP YY_RULE_SETUP
#line 152 "./Ecc/Scanner.l" #line 152 "Ecc/Scanner.l"
{} {}
YY_BREAK YY_BREAK
case 80: case 80:
/* rule 80 can match eol */ /* rule 80 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 153 "./Ecc/Scanner.l" #line 153 "Ecc/Scanner.l"
{ _iLinesCt++; } { _iLinesCt++; }
YY_BREAK YY_BREAK
/* eat up whitespace */ /* eat up whitespace */
case 81: case 81:
YY_RULE_SETUP YY_RULE_SETUP
#line 156 "./Ecc/Scanner.l" #line 156 "Ecc/Scanner.l"
{ {
} }
YY_BREAK YY_BREAK
@ -1449,7 +1449,7 @@ YY_RULE_SETUP
case 82: case 82:
/* rule 82 can match eol */ /* rule 82 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 159 "./Ecc/Scanner.l" #line 159 "Ecc/Scanner.l"
{ {
_iLinesCt++; _iLinesCt++;
} }
@ -1457,7 +1457,7 @@ YY_RULE_SETUP
/* for all unrecognized characters */ /* for all unrecognized characters */
case 83: case 83:
YY_RULE_SETUP YY_RULE_SETUP
#line 163 "./Ecc/Scanner.l" #line 163 "Ecc/Scanner.l"
{ {
// report an error // report an error
char strError[80]; char strError[80];
@ -1468,10 +1468,10 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 84: case 84:
YY_RULE_SETUP YY_RULE_SETUP
#line 171 "./Ecc/Scanner.l" #line 171 "Ecc/Scanner.l"
ECHO; ECHO;
YY_BREAK YY_BREAK
#line 1475 "./Ecc/Scanner.cpp" #line 1475 "Ecc/Scanner.cpp"
case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(COMMENT): case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(CPPBLOCK): case YY_STATE_EOF(CPPBLOCK):
@ -2470,7 +2470,7 @@ void yyfree (void * ptr )
#define YYTABLES_NAME "yytables" #define YYTABLES_NAME "yytables"
#line 171 "./Ecc/Scanner.l" #line 171 "Ecc/Scanner.l"

View File

@ -136,7 +136,7 @@
/* Copy the first part of user declarations. */ /* Copy the first part of user declarations. */
#line 1 "./Engine/Base/Parser.y" #line 1 "Engine/Base/Parser.y"
#include <Engine/StdH.h> #include <Engine/StdH.h>
@ -147,7 +147,7 @@
#include <Engine/Templates/DynamicStackArray.cpp> #include <Engine/Templates/DynamicStackArray.cpp>
#include <Engine/Templates/AllocationArray.cpp> #include <Engine/Templates/AllocationArray.cpp>
#line 13 "./Engine/Base/Parser.y" #line 13 "Engine/Base/Parser.y"
// turn off over-helpful bit of bison... --ryan. // turn off over-helpful bit of bison... --ryan.
#ifdef __GNUC__ #ifdef __GNUC__
@ -347,7 +347,7 @@ void DoComparison(value &vRes, value &v0, value &v1, int token)
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE typedef union YYSTYPE
#line 197 "./Engine/Base/Parser.y" #line 197 "Engine/Base/Parser.y"
{ {
value val; // for constants and expressions value val; // for constants and expressions
arguments arg; // for function input arguments arguments arg; // for function input arguments
@ -359,7 +359,7 @@ typedef union YYSTYPE
void (*pPostFunc)(INDEX); // post-set function for a variable void (*pPostFunc)(INDEX); // post-set function for a variable
} }
/* Line 193 of yacc.c. */ /* Line 193 of yacc.c. */
#line 363 "./Engine/Base/Parser.cpp" #line 363 "Engine/Base/Parser.cpp"
YYSTYPE; YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
@ -369,13 +369,13 @@ typedef union YYSTYPE
/* Copy the second part of user declarations. */ /* Copy the second part of user declarations. */
#line 208 "./Engine/Base/Parser.y" #line 208 "Engine/Base/Parser.y"
extern int yylex(YYSTYPE *lvalp); extern int yylex(YYSTYPE *lvalp);
/* Line 216 of yacc.c. */ /* Line 216 of yacc.c. */
#line 379 "./Engine/Base/Parser.cpp" #line 379 "Engine/Base/Parser.cpp"
#ifdef short #ifdef short
# undef short # undef short
@ -1769,49 +1769,49 @@ yyreduce:
switch (yyn) switch (yyn)
{ {
case 8: case 8:
#line 290 "./Engine/Base/Parser.y" #line 290 "Engine/Base/Parser.y"
{ {
(yyval.ulFlags) = 0; (yyval.ulFlags) = 0;
;} ;}
break; break;
case 9: case 9:
#line 293 "./Engine/Base/Parser.y" #line 293 "Engine/Base/Parser.y"
{ {
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_CONSTANT; (yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_CONSTANT;
;} ;}
break; break;
case 10: case 10:
#line 296 "./Engine/Base/Parser.y" #line 296 "Engine/Base/Parser.y"
{ {
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_USER; (yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_USER;
;} ;}
break; break;
case 11: case 11:
#line 299 "./Engine/Base/Parser.y" #line 299 "Engine/Base/Parser.y"
{ {
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_PERSISTENT; (yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_PERSISTENT;
;} ;}
break; break;
case 12: case 12:
#line 302 "./Engine/Base/Parser.y" #line 302 "Engine/Base/Parser.y"
{ {
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_EXTERNAL; (yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_EXTERNAL;
;} ;}
break; break;
case 13: case 13:
#line 307 "./Engine/Base/Parser.y" #line 307 "Engine/Base/Parser.y"
{ {
(yyval.val).strString = ""; (yyval.val).strString = "";
;} ;}
break; break;
case 14: case 14:
#line 310 "./Engine/Base/Parser.y" #line 310 "Engine/Base/Parser.y"
{ {
// !!!! remove this option // !!!! remove this option
//_pShell->ErrorF("Warning: symbol comments are not supported"); //_pShell->ErrorF("Warning: symbol comments are not supported");
@ -1820,42 +1820,42 @@ yyreduce:
break; break;
case 15: case 15:
#line 317 "./Engine/Base/Parser.y" #line 317 "Engine/Base/Parser.y"
{ {
(yyval.istType) = ShellTypeNewFloat(); (yyval.istType) = ShellTypeNewFloat();
;} ;}
break; break;
case 16: case 16:
#line 320 "./Engine/Base/Parser.y" #line 320 "Engine/Base/Parser.y"
{ {
(yyval.istType) = ShellTypeNewIndex(); (yyval.istType) = ShellTypeNewIndex();
;} ;}
break; break;
case 17: case 17:
#line 323 "./Engine/Base/Parser.y" #line 323 "Engine/Base/Parser.y"
{ {
(yyval.istType) = ShellTypeNewString(); (yyval.istType) = ShellTypeNewString();
;} ;}
break; break;
case 18: case 18:
#line 326 "./Engine/Base/Parser.y" #line 326 "Engine/Base/Parser.y"
{ {
(yyval.istType) = ShellTypeNewVoid(); (yyval.istType) = ShellTypeNewVoid();
;} ;}
break; break;
case 19: case 19:
#line 331 "./Engine/Base/Parser.y" #line 331 "Engine/Base/Parser.y"
{ {
(yyval.pPreFunc) = NULL; (yyval.pPreFunc) = NULL;
;} ;}
break; break;
case 20: case 20:
#line 334 "./Engine/Base/Parser.y" #line 334 "Engine/Base/Parser.y"
{ {
if (_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_sttType!=STT_FUNCTION if (_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_sttType!=STT_FUNCTION
||_shell_ast[_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_istBaseType].st_sttType!=STT_INDEX ||_shell_ast[_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_istBaseType].st_sttType!=STT_INDEX
@ -1870,14 +1870,14 @@ yyreduce:
break; break;
case 21: case 21:
#line 347 "./Engine/Base/Parser.y" #line 347 "Engine/Base/Parser.y"
{ {
(yyval.pPostFunc) = NULL; (yyval.pPostFunc) = NULL;
;} ;}
break; break;
case 22: case 22:
#line 350 "./Engine/Base/Parser.y" #line 350 "Engine/Base/Parser.y"
{ {
if (_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_sttType!=STT_FUNCTION if (_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_sttType!=STT_FUNCTION
||_shell_ast[_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_istBaseType].st_sttType!=STT_VOID ||_shell_ast[_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_istBaseType].st_sttType!=STT_VOID
@ -1891,7 +1891,7 @@ yyreduce:
break; break;
case 23: case 23:
#line 363 "./Engine/Base/Parser.y" #line 363 "Engine/Base/Parser.y"
{ {
(yyval.istType) = ShellTypeNewFunction(0); (yyval.istType) = ShellTypeNewFunction(0);
ShellTypeAddFunctionArgument((yyval.istType), ShellTypeNewVoid()); ShellTypeAddFunctionArgument((yyval.istType), ShellTypeNewVoid());
@ -1899,14 +1899,14 @@ yyreduce:
break; break;
case 24: case 24:
#line 367 "./Engine/Base/Parser.y" #line 367 "Engine/Base/Parser.y"
{ {
(yyval.istType) = (yyvsp[(1) - (1)].istType); (yyval.istType) = (yyvsp[(1) - (1)].istType);
;} ;}
break; break;
case 25: case 25:
#line 373 "./Engine/Base/Parser.y" #line 373 "Engine/Base/Parser.y"
{ {
(yyval.istType) = ShellTypeNewFunction(0); (yyval.istType) = ShellTypeNewFunction(0);
ShellTypeAddFunctionArgument((yyval.istType), (yyvsp[(1) - (1)].istType)); ShellTypeAddFunctionArgument((yyval.istType), (yyvsp[(1) - (1)].istType));
@ -1914,7 +1914,7 @@ yyreduce:
break; break;
case 26: case 26:
#line 381 "./Engine/Base/Parser.y" #line 381 "Engine/Base/Parser.y"
{ {
(yyval.istType) = (yyvsp[(1) - (3)].istType); (yyval.istType) = (yyvsp[(1) - (3)].istType);
ShellTypeAddFunctionArgument((yyval.istType), (yyvsp[(3) - (3)].istType)); ShellTypeAddFunctionArgument((yyval.istType), (yyvsp[(3) - (3)].istType));
@ -1922,7 +1922,7 @@ yyreduce:
break; break;
case 27: case 27:
#line 392 "./Engine/Base/Parser.y" #line 392 "Engine/Base/Parser.y"
{ {
Declaration((yyvsp[(1) - (7)].ulFlags), (yyvsp[(2) - (7)].istType), *(yyvsp[(3) - (7)].pssSymbol), (yyvsp[(4) - (7)].pPreFunc), (yyvsp[(5) - (7)].pPostFunc)); Declaration((yyvsp[(1) - (7)].ulFlags), (yyvsp[(2) - (7)].istType), *(yyvsp[(3) - (7)].pssSymbol), (yyvsp[(4) - (7)].pPreFunc), (yyvsp[(5) - (7)].pPostFunc));
ShellTypeDelete((yyvsp[(2) - (7)].istType)); ShellTypeDelete((yyvsp[(2) - (7)].istType));
@ -1930,7 +1930,7 @@ yyreduce:
break; break;
case 28: case 28:
#line 396 "./Engine/Base/Parser.y" #line 396 "Engine/Base/Parser.y"
{ {
// take function from the parameter list and set its return type // take function from the parameter list and set its return type
_shell_ast[(yyvsp[(5) - (8)].istType)].st_istBaseType = (yyvsp[(2) - (8)].istType); _shell_ast[(yyvsp[(5) - (8)].istType)].st_istBaseType = (yyvsp[(2) - (8)].istType);
@ -1943,7 +1943,7 @@ yyreduce:
break; break;
case 29: case 29:
#line 405 "./Engine/Base/Parser.y" #line 405 "Engine/Base/Parser.y"
{ {
if ((yyvsp[(5) - (10)].val).sttType!=STT_INDEX) { if ((yyvsp[(5) - (10)].val).sttType!=STT_INDEX) {
_pShell->ErrorF("Array size is not integral"); _pShell->ErrorF("Array size is not integral");
@ -1955,21 +1955,21 @@ yyreduce:
break; break;
case 30: case 30:
#line 415 "./Engine/Base/Parser.y" #line 415 "Engine/Base/Parser.y"
{ {
// dummy // dummy
;} ;}
break; break;
case 31: case 31:
#line 418 "./Engine/Base/Parser.y" #line 418 "Engine/Base/Parser.y"
{ {
// dummy // dummy
;} ;}
break; break;
case 32: case 32:
#line 421 "./Engine/Base/Parser.y" #line 421 "Engine/Base/Parser.y"
{ {
// print its value // print its value
if ((yyvsp[(1) - (2)].val).sttType == STT_VOID) { if ((yyvsp[(1) - (2)].val).sttType == STT_VOID) {
@ -1987,7 +1987,7 @@ yyreduce:
break; break;
case 33: case 33:
#line 435 "./Engine/Base/Parser.y" #line 435 "Engine/Base/Parser.y"
{ {
// if it is constant // if it is constant
if ((yyvsp[(1) - (4)].lvLValue).lv_pssSymbol->ss_ulFlags&SSF_CONSTANT) { if ((yyvsp[(1) - (4)].lvLValue).lv_pssSymbol->ss_ulFlags&SSF_CONSTANT) {
@ -2029,7 +2029,7 @@ yyreduce:
break; break;
case 34: case 34:
#line 473 "./Engine/Base/Parser.y" #line 473 "Engine/Base/Parser.y"
{ {
Declaration((yyvsp[(1) - (6)].ulFlags), (yyvsp[(2) - (6)].istType), *(yyvsp[(3) - (6)].pssSymbol), NULL, NULL); Declaration((yyvsp[(1) - (6)].ulFlags), (yyvsp[(2) - (6)].istType), *(yyvsp[(3) - (6)].pssSymbol), NULL, NULL);
ShellTypeDelete((yyvsp[(2) - (6)].istType)); ShellTypeDelete((yyvsp[(2) - (6)].istType));
@ -2067,7 +2067,7 @@ yyreduce:
break; break;
case 35: case 35:
#line 507 "./Engine/Base/Parser.y" #line 507 "Engine/Base/Parser.y"
{ {
extern void PrintShellSymbolHelp(const CTString &strSymbol); extern void PrintShellSymbolHelp(const CTString &strSymbol);
PrintShellSymbolHelp((yyvsp[(2) - (2)].pssSymbol)->ss_strName); PrintShellSymbolHelp((yyvsp[(2) - (2)].pssSymbol)->ss_strName);
@ -2075,7 +2075,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 36: case 36:
#line 511 "./Engine/Base/Parser.y" #line 511 "Engine/Base/Parser.y"
{ {
extern void PrintShellSymbolHelp(const CTString &strSymbol); extern void PrintShellSymbolHelp(const CTString &strSymbol);
PrintShellSymbolHelp((yyvsp[(2) - (4)].pssSymbol)->ss_strName); PrintShellSymbolHelp((yyvsp[(2) - (4)].pssSymbol)->ss_strName);
@ -2083,7 +2083,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 37: case 37:
#line 515 "./Engine/Base/Parser.y" #line 515 "Engine/Base/Parser.y"
{ {
extern void PrintShellSymbolHelp(const CTString &strSymbol); extern void PrintShellSymbolHelp(const CTString &strSymbol);
PrintShellSymbolHelp((yyvsp[(2) - (4)].pssSymbol)->ss_strName); PrintShellSymbolHelp((yyvsp[(2) - (4)].pssSymbol)->ss_strName);
@ -2091,7 +2091,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 38: case 38:
#line 519 "./Engine/Base/Parser.y" #line 519 "Engine/Base/Parser.y"
{ {
_bExecNextBlock = FALSE; _bExecNextBlock = FALSE;
if ((yyvsp[(3) - (4)].val).sttType == STT_INDEX) { if ((yyvsp[(3) - (4)].val).sttType == STT_INDEX) {
@ -2106,7 +2106,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 39: case 39:
#line 529 "./Engine/Base/Parser.y" #line 529 "Engine/Base/Parser.y"
{ {
_bExecNextElse = !(yyvsp[(1) - (6)].ulFlags); _bExecNextElse = !(yyvsp[(1) - (6)].ulFlags);
_bExecNextBlock = TRUE; _bExecNextBlock = TRUE;
@ -2114,7 +2114,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 42: case 42:
#line 538 "./Engine/Base/Parser.y" #line 538 "Engine/Base/Parser.y"
{ {
if (_bExecNextElse) { if (_bExecNextElse) {
_bExecNextBlock = FALSE; _bExecNextBlock = FALSE;
@ -2135,7 +2135,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 43: case 43:
#line 554 "./Engine/Base/Parser.y" #line 554 "Engine/Base/Parser.y"
{ {
_bExecNextElse = !(yyvsp[(1) - (6)].ulFlags); _bExecNextElse = !(yyvsp[(1) - (6)].ulFlags);
_bExecNextBlock = TRUE; _bExecNextBlock = TRUE;
@ -2143,21 +2143,21 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 45: case 45:
#line 559 "./Engine/Base/Parser.y" #line 559 "Engine/Base/Parser.y"
{ {
_bExecNextBlock = _bExecNextElse; _bExecNextBlock = _bExecNextElse;
;} ;}
break; break;
case 46: case 46:
#line 561 "./Engine/Base/Parser.y" #line 561 "Engine/Base/Parser.y"
{ {
_bExecNextBlock = TRUE; _bExecNextBlock = TRUE;
;} ;}
break; break;
case 47: case 47:
#line 567 "./Engine/Base/Parser.y" #line 567 "Engine/Base/Parser.y"
{ {
CShellSymbol &ssSymbol = *(yyvsp[(1) - (1)].pssSymbol); CShellSymbol &ssSymbol = *(yyvsp[(1) - (1)].pssSymbol);
const ShellType &stType = _shell_ast[ssSymbol.ss_istType]; const ShellType &stType = _shell_ast[ssSymbol.ss_istType];
@ -2186,7 +2186,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 48: case 48:
#line 592 "./Engine/Base/Parser.y" #line 592 "Engine/Base/Parser.y"
{ {
CShellSymbol &ssSymbol = *(yyvsp[(1) - (4)].pssSymbol); CShellSymbol &ssSymbol = *(yyvsp[(1) - (4)].pssSymbol);
const ShellType &stType = _shell_ast[ssSymbol.ss_istType]; const ShellType &stType = _shell_ast[ssSymbol.ss_istType];
@ -2227,7 +2227,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 49: case 49:
#line 632 "./Engine/Base/Parser.y" #line 632 "Engine/Base/Parser.y"
{ {
(yyval.arg).istType = ShellTypeNewFunction(ShellTypeNewVoid()); (yyval.arg).istType = ShellTypeNewFunction(ShellTypeNewVoid());
ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewVoid()); ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewVoid());
@ -2236,14 +2236,14 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 50: case 50:
#line 637 "./Engine/Base/Parser.y" #line 637 "Engine/Base/Parser.y"
{ {
(yyval.arg) = (yyvsp[(1) - (1)].arg); (yyval.arg) = (yyvsp[(1) - (1)].arg);
;} ;}
break; break;
case 51: case 51:
#line 643 "./Engine/Base/Parser.y" #line 643 "Engine/Base/Parser.y"
{ {
(yyval.arg).istType = ShellTypeNewFunction(ShellTypeNewVoid()); (yyval.arg).istType = ShellTypeNewFunction(ShellTypeNewVoid());
ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewByType((yyvsp[(1) - (1)].val).sttType)); ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewByType((yyvsp[(1) - (1)].val).sttType));
@ -2252,7 +2252,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 52: case 52:
#line 648 "./Engine/Base/Parser.y" #line 648 "Engine/Base/Parser.y"
{ {
(yyval.arg) = (yyvsp[(1) - (3)].arg); (yyval.arg) = (yyvsp[(1) - (3)].arg);
ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewByType((yyvsp[(3) - (3)].val).sttType)); ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewByType((yyvsp[(3) - (3)].val).sttType));
@ -2261,7 +2261,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 53: case 53:
#line 655 "./Engine/Base/Parser.y" #line 655 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = STT_FLOAT; (yyval.val).sttType = STT_FLOAT;
(yyval.val).fFloat = (yyvsp[(1) - (1)].val).fFloat; (yyval.val).fFloat = (yyvsp[(1) - (1)].val).fFloat;
@ -2269,7 +2269,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 54: case 54:
#line 659 "./Engine/Base/Parser.y" #line 659 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = STT_INDEX; (yyval.val).sttType = STT_INDEX;
(yyval.val).iIndex = (yyvsp[(1) - (1)].val).iIndex; (yyval.val).iIndex = (yyvsp[(1) - (1)].val).iIndex;
@ -2277,7 +2277,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 55: case 55:
#line 663 "./Engine/Base/Parser.y" #line 663 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = STT_STRING; (yyval.val).sttType = STT_STRING;
(yyval.val).strString = (yyvsp[(1) - (1)].val).strString; (yyval.val).strString = (yyvsp[(1) - (1)].val).strString;
@ -2285,7 +2285,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 56: case 56:
#line 667 "./Engine/Base/Parser.y" #line 667 "Engine/Base/Parser.y"
{ {
// get its value // get its value
(yyval.val).sttType = (yyvsp[(1) - (1)].lvLValue).lv_sttType; (yyval.val).sttType = (yyvsp[(1) - (1)].lvLValue).lv_sttType;
@ -2306,7 +2306,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 57: case 57:
#line 685 "./Engine/Base/Parser.y" #line 685 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2323,7 +2323,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 58: case 58:
#line 698 "./Engine/Base/Parser.y" #line 698 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2340,7 +2340,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 59: case 59:
#line 712 "./Engine/Base/Parser.y" #line 712 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2358,7 +2358,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 60: case 60:
#line 726 "./Engine/Base/Parser.y" #line 726 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2376,7 +2376,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 61: case 61:
#line 740 "./Engine/Base/Parser.y" #line 740 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2394,7 +2394,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 62: case 62:
#line 756 "./Engine/Base/Parser.y" #line 756 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2412,7 +2412,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 63: case 63:
#line 770 "./Engine/Base/Parser.y" #line 770 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2430,7 +2430,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 64: case 64:
#line 785 "./Engine/Base/Parser.y" #line 785 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2452,7 +2452,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 65: case 65:
#line 804 "./Engine/Base/Parser.y" #line 804 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2470,7 +2470,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 66: case 66:
#line 820 "./Engine/Base/Parser.y" #line 820 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2489,7 +2489,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 67: case 67:
#line 836 "./Engine/Base/Parser.y" #line 836 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2513,7 +2513,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 68: case 68:
#line 858 "./Engine/Base/Parser.y" #line 858 "Engine/Base/Parser.y"
{ {
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
@ -2531,49 +2531,49 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 69: case 69:
#line 874 "./Engine/Base/Parser.y" #line 874 "Engine/Base/Parser.y"
{ {
DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '<'); DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '<');
;} ;}
break; break;
case 70: case 70:
#line 877 "./Engine/Base/Parser.y" #line 877 "Engine/Base/Parser.y"
{ {
DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '>'); DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '>');
;} ;}
break; break;
case 71: case 71:
#line 880 "./Engine/Base/Parser.y" #line 880 "Engine/Base/Parser.y"
{ {
DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '='); DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '=');
;} ;}
break; break;
case 72: case 72:
#line 883 "./Engine/Base/Parser.y" #line 883 "Engine/Base/Parser.y"
{ {
DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '!'); DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '!');
;} ;}
break; break;
case 73: case 73:
#line 886 "./Engine/Base/Parser.y" #line 886 "Engine/Base/Parser.y"
{ {
DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '}'); DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '}');
;} ;}
break; break;
case 74: case 74:
#line 889 "./Engine/Base/Parser.y" #line 889 "Engine/Base/Parser.y"
{ {
DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '{'); DoComparison((yyval.val), (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), '{');
;} ;}
break; break;
case 75: case 75:
#line 895 "./Engine/Base/Parser.y" #line 895 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType; (yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType;
if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) { if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) {
@ -2588,7 +2588,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 76: case 76:
#line 909 "./Engine/Base/Parser.y" #line 909 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType; (yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType;
if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) { if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) {
@ -2603,7 +2603,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 77: case 77:
#line 921 "./Engine/Base/Parser.y" #line 921 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType; (yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType;
if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) { if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) {
@ -2619,7 +2619,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 78: case 78:
#line 934 "./Engine/Base/Parser.y" #line 934 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = STT_FLOAT; (yyval.val).sttType = STT_FLOAT;
if ((yyvsp[(4) - (4)].val).sttType == STT_FLOAT) { if ((yyvsp[(4) - (4)].val).sttType == STT_FLOAT) {
@ -2636,7 +2636,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 79: case 79:
#line 948 "./Engine/Base/Parser.y" #line 948 "Engine/Base/Parser.y"
{ {
(yyval.val).sttType = STT_INDEX; (yyval.val).sttType = STT_INDEX;
if ((yyvsp[(4) - (4)].val).sttType == STT_FLOAT) { if ((yyvsp[(4) - (4)].val).sttType == STT_FLOAT) {
@ -2653,7 +2653,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 80: case 80:
#line 962 "./Engine/Base/Parser.y" #line 962 "Engine/Base/Parser.y"
{ {
CTString &strNew = _shell_astrTempStrings.Push(); CTString &strNew = _shell_astrTempStrings.Push();
(yyval.val).sttType = STT_STRING; (yyval.val).sttType = STT_STRING;
@ -2672,7 +2672,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 81: case 81:
#line 979 "./Engine/Base/Parser.y" #line 979 "Engine/Base/Parser.y"
{ {
// if the identifier is not declared // if the identifier is not declared
if (!(yyvsp[(1) - (4)].pssSymbol)->IsDeclared()) { if (!(yyvsp[(1) - (4)].pssSymbol)->IsDeclared()) {
@ -2771,7 +2771,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
break; break;
case 82: case 82:
#line 1075 "./Engine/Base/Parser.y" #line 1075 "Engine/Base/Parser.y"
{ {
(yyval.val) = (yyvsp[(2) - (3)].val); (yyval.val) = (yyvsp[(2) - (3)].val);
;} ;}
@ -2779,7 +2779,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
/* Line 1267 of yacc.c. */ /* Line 1267 of yacc.c. */
#line 2783 "./Engine/Base/Parser.cpp" #line 2783 "Engine/Base/Parser.cpp"
default: break; default: break;
} }
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@ -2993,6 +2993,6 @@ yyreturn:
} }
#line 1080 "./Engine/Base/Parser.y" #line 1080 "Engine/Base/Parser.y"

View File

@ -1,6 +1,6 @@
#line 2 "./Engine/Base/Scanner.cpp" #line 2 "Engine/Base/Scanner.cpp"
#line 4 "./Engine/Base/Scanner.cpp" #line 4 "Engine/Base/Scanner.cpp"
#define YY_INT_ALIGNED short int #define YY_INT_ALIGNED short int
@ -587,8 +587,8 @@ int yy_flex_debug = 0;
#define YY_MORE_ADJ 0 #define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET #define YY_RESTORE_YY_MORE_OFFSET
char *yytext; char *yytext;
#line 1 "./Engine/Base/Scanner.l" #line 1 "Engine/Base/Scanner.l"
#line 2 "./Engine/Base/Scanner.l" #line 2 "Engine/Base/Scanner.l"
#include "ParsingSymbols.h" #include "ParsingSymbols.h"
#include "Parser.h" #include "Parser.h"
@ -651,7 +651,7 @@ void TranscriptEsc(CTString &str)
#line 655 "./Engine/Base/Scanner.cpp" #line 655 "Engine/Base/Scanner.cpp"
#define INITIAL 0 #define INITIAL 0
#define COMMENT 1 #define COMMENT 1
@ -837,13 +837,13 @@ YY_DECL
register char *yy_cp, *yy_bp; register char *yy_cp, *yy_bp;
register int yy_act; register int yy_act;
#line 79 "./Engine/Base/Scanner.l" #line 79 "Engine/Base/Scanner.l"
/*\0 yyterminate();*/ /*\0 yyterminate();*/
/* Include file parsing. */ /* Include file parsing. */
#line 847 "./Engine/Base/Scanner.cpp" #line 847 "Engine/Base/Scanner.cpp"
if ( !(yy_init) ) if ( !(yy_init) )
{ {
@ -928,18 +928,18 @@ do_action: /* This label is used only to access EOF actions. */
case 1: case 1:
YY_RULE_SETUP YY_RULE_SETUP
#line 84 "./Engine/Base/Scanner.l" #line 84 "Engine/Base/Scanner.l"
BEGIN(INCLUDE); BEGIN(INCLUDE);
YY_BREAK YY_BREAK
case 2: case 2:
YY_RULE_SETUP YY_RULE_SETUP
#line 86 "./Engine/Base/Scanner.l" #line 86 "Engine/Base/Scanner.l"
/* eat the whitespace until first quote */ /* eat the whitespace until first quote */
YY_BREAK YY_BREAK
case 3: case 3:
/* rule 3 can match eol */ /* rule 3 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 87 "./Engine/Base/Scanner.l" #line 87 "Engine/Base/Scanner.l"
{ /* get the include file name until second quote */ { /* get the include file name until second quote */
if (ShellGetBufferStackDepth() >= SHELL_MAX_INCLUDE_LEVEL) { if (ShellGetBufferStackDepth() >= SHELL_MAX_INCLUDE_LEVEL) {
_pShell->ErrorF("Script files nested too deeply"); _pShell->ErrorF("Script files nested too deeply");
@ -961,7 +961,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 4: case 4:
YY_RULE_SETUP YY_RULE_SETUP
#line 105 "./Engine/Base/Scanner.l" #line 105 "Engine/Base/Scanner.l"
{ /* something unrecognized inside include statement */ { /* something unrecognized inside include statement */
_pShell->ErrorF("Wrong syntax for include statement"); _pShell->ErrorF("Wrong syntax for include statement");
BEGIN(INITIAL); BEGIN(INITIAL);
@ -971,7 +971,7 @@ YY_RULE_SETUP
case 5: case 5:
/* rule 5 can match eol */ /* rule 5 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 111 "./Engine/Base/Scanner.l" #line 111 "Engine/Base/Scanner.l"
{ // for each parameter { // for each parameter
_ctCmdParam++; _ctCmdParam++;
CTString strParam = yytext; CTString strParam = yytext;
@ -999,7 +999,7 @@ YY_RULE_SETUP
case 6: case 6:
/* rule 6 can match eol */ /* rule 6 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 134 "./Engine/Base/Scanner.l" #line 134 "Engine/Base/Scanner.l"
{ {
// at the end of the command // at the end of the command
@ -1013,7 +1013,7 @@ case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(DUMMYBLOCK): case YY_STATE_EOF(DUMMYBLOCK):
case YY_STATE_EOF(INCLUDE): case YY_STATE_EOF(INCLUDE):
case YY_STATE_EOF(COMMAND): case YY_STATE_EOF(COMMAND):
#line 142 "./Engine/Base/Scanner.l" #line 142 "Engine/Base/Scanner.l"
{ {
if (ShellPopBuffer()) { if (ShellPopBuffer()) {
yyterminate(); yyterminate();
@ -1023,147 +1023,147 @@ case YY_STATE_EOF(COMMAND):
/* special data types */ /* special data types */
case 7: case 7:
YY_RULE_SETUP YY_RULE_SETUP
#line 149 "./Engine/Base/Scanner.l" #line 149 "Engine/Base/Scanner.l"
{ return(k_FLOAT);} { return(k_FLOAT);}
YY_BREAK YY_BREAK
case 8: case 8:
YY_RULE_SETUP YY_RULE_SETUP
#line 150 "./Engine/Base/Scanner.l" #line 150 "Engine/Base/Scanner.l"
{ return(k_INDEX);} { return(k_INDEX);}
YY_BREAK YY_BREAK
case 9: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 151 "./Engine/Base/Scanner.l" #line 151 "Engine/Base/Scanner.l"
{ return(k_CTString);} { return(k_CTString);}
YY_BREAK YY_BREAK
/* keywords */ /* keywords */
case 10: case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 154 "./Engine/Base/Scanner.l" #line 154 "Engine/Base/Scanner.l"
{ return(k_void); } { return(k_void); }
YY_BREAK YY_BREAK
case 11: case 11:
YY_RULE_SETUP YY_RULE_SETUP
#line 155 "./Engine/Base/Scanner.l" #line 155 "Engine/Base/Scanner.l"
{ return(k_const); } { return(k_const); }
YY_BREAK YY_BREAK
case 12: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 156 "./Engine/Base/Scanner.l" #line 156 "Engine/Base/Scanner.l"
{ return(k_user); } { return(k_user); }
YY_BREAK YY_BREAK
case 13: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 157 "./Engine/Base/Scanner.l" #line 157 "Engine/Base/Scanner.l"
{ return(k_persistent); } { return(k_persistent); }
YY_BREAK YY_BREAK
case 14: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 158 "./Engine/Base/Scanner.l" #line 158 "Engine/Base/Scanner.l"
{ return(k_extern); } { return(k_extern); }
YY_BREAK YY_BREAK
case 15: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 159 "./Engine/Base/Scanner.l" #line 159 "Engine/Base/Scanner.l"
{ return(k_pre); } { return(k_pre); }
YY_BREAK YY_BREAK
case 16: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 160 "./Engine/Base/Scanner.l" #line 160 "Engine/Base/Scanner.l"
{ return(k_post); } { return(k_post); }
YY_BREAK YY_BREAK
case 17: case 17:
YY_RULE_SETUP YY_RULE_SETUP
#line 161 "./Engine/Base/Scanner.l" #line 161 "Engine/Base/Scanner.l"
{ return(k_help); } { return(k_help); }
YY_BREAK YY_BREAK
case 18: case 18:
YY_RULE_SETUP YY_RULE_SETUP
#line 162 "./Engine/Base/Scanner.l" #line 162 "Engine/Base/Scanner.l"
{ return(k_if); } { return(k_if); }
YY_BREAK YY_BREAK
case 19: case 19:
YY_RULE_SETUP YY_RULE_SETUP
#line 163 "./Engine/Base/Scanner.l" #line 163 "Engine/Base/Scanner.l"
{ return(k_else); } { return(k_else); }
YY_BREAK YY_BREAK
case 20: case 20:
YY_RULE_SETUP YY_RULE_SETUP
#line 164 "./Engine/Base/Scanner.l" #line 164 "Engine/Base/Scanner.l"
{ return(k_else_if); } { return(k_else_if); }
YY_BREAK YY_BREAK
case 21: case 21:
YY_RULE_SETUP YY_RULE_SETUP
#line 166 "./Engine/Base/Scanner.l" #line 166 "Engine/Base/Scanner.l"
{ return (LEQ); } { return (LEQ); }
YY_BREAK YY_BREAK
case 22: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 167 "./Engine/Base/Scanner.l" #line 167 "Engine/Base/Scanner.l"
{ return (GEQ); } { return (GEQ); }
YY_BREAK YY_BREAK
case 23: case 23:
YY_RULE_SETUP YY_RULE_SETUP
#line 168 "./Engine/Base/Scanner.l" #line 168 "Engine/Base/Scanner.l"
{ return (EQ); } { return (EQ); }
YY_BREAK YY_BREAK
case 24: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 169 "./Engine/Base/Scanner.l" #line 169 "Engine/Base/Scanner.l"
{ return (NEQ); } { return (NEQ); }
YY_BREAK YY_BREAK
case 25: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 171 "./Engine/Base/Scanner.l" #line 171 "Engine/Base/Scanner.l"
{ return (SHR); } { return (SHR); }
YY_BREAK YY_BREAK
case 26: case 26:
YY_RULE_SETUP YY_RULE_SETUP
#line 172 "./Engine/Base/Scanner.l" #line 172 "Engine/Base/Scanner.l"
{ return (SHL); } { return (SHL); }
YY_BREAK YY_BREAK
case 27: case 27:
YY_RULE_SETUP YY_RULE_SETUP
#line 174 "./Engine/Base/Scanner.l" #line 174 "Engine/Base/Scanner.l"
{ return (LOGAND); } { return (LOGAND); }
YY_BREAK YY_BREAK
case 28: case 28:
YY_RULE_SETUP YY_RULE_SETUP
#line 175 "./Engine/Base/Scanner.l" #line 175 "Engine/Base/Scanner.l"
{ return (LOGOR); } { return (LOGOR); }
YY_BREAK YY_BREAK
/* single character operators and punctuations */ /* single character operators and punctuations */
case 29: case 29:
YY_RULE_SETUP YY_RULE_SETUP
#line 178 "./Engine/Base/Scanner.l" #line 178 "Engine/Base/Scanner.l"
{ {
return(yytext[0]);} return(yytext[0]);}
YY_BREAK YY_BREAK
/* constants */ /* constants */
case 30: case 30:
YY_RULE_SETUP YY_RULE_SETUP
#line 182 "./Engine/Base/Scanner.l" #line 182 "Engine/Base/Scanner.l"
{ yylval.val.iIndex = atoi(yytext); return(c_int); } { yylval.val.iIndex = atoi(yytext); return(c_int); }
YY_BREAK YY_BREAK
case 31: case 31:
YY_RULE_SETUP YY_RULE_SETUP
#line 183 "./Engine/Base/Scanner.l" #line 183 "Engine/Base/Scanner.l"
{ yylval.val.iIndex = strtoul(yytext+2, NULL, 16); return(c_int); } { yylval.val.iIndex = strtoul(yytext+2, NULL, 16); return(c_int); }
YY_BREAK YY_BREAK
case 32: case 32:
YY_RULE_SETUP YY_RULE_SETUP
#line 184 "./Engine/Base/Scanner.l" #line 184 "Engine/Base/Scanner.l"
{ yylval.val.fFloat = (float) atof(yytext); return(c_float); } { yylval.val.fFloat = (float) atof(yytext); return(c_float); }
YY_BREAK YY_BREAK
case 33: case 33:
YY_RULE_SETUP YY_RULE_SETUP
#line 185 "./Engine/Base/Scanner.l" #line 185 "Engine/Base/Scanner.l"
{ yylval.val.fFloat = (float) atof(yytext); return(c_float); } { yylval.val.fFloat = (float) atof(yytext); return(c_float); }
YY_BREAK YY_BREAK
case 34: case 34:
/* rule 34 can match eol */ /* rule 34 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 186 "./Engine/Base/Scanner.l" #line 186 "Engine/Base/Scanner.l"
{ {
CTString &strNew = _shell_astrTempStrings.Push(); CTString &strNew = _shell_astrTempStrings.Push();
// remove double-quotes // remove double-quotes
@ -1177,13 +1177,13 @@ YY_RULE_SETUP
case 35: case 35:
/* rule 35 can match eol */ /* rule 35 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 195 "./Engine/Base/Scanner.l" #line 195 "Engine/Base/Scanner.l"
{ return(c_char); } { return(c_char); }
YY_BREAK YY_BREAK
/* identifier */ /* identifier */
case 36: case 36:
YY_RULE_SETUP YY_RULE_SETUP
#line 198 "./Engine/Base/Scanner.l" #line 198 "Engine/Base/Scanner.l"
{ {
// get the symbol // get the symbol
yylval.pssSymbol = _pShell->GetSymbol(yytext, FALSE); yylval.pssSymbol = _pShell->GetSymbol(yytext, FALSE);
@ -1210,7 +1210,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 37: case 37:
YY_RULE_SETUP YY_RULE_SETUP
#line 221 "./Engine/Base/Scanner.l" #line 221 "Engine/Base/Scanner.l"
{ // special case of identifier, used to bypass command parsing { // special case of identifier, used to bypass command parsing
// get the symbol // get the symbol
yylval.pssSymbol = _pShell->GetSymbol(yytext+1, FALSE); yylval.pssSymbol = _pShell->GetSymbol(yytext+1, FALSE);
@ -1220,7 +1220,7 @@ YY_RULE_SETUP
/* eat up or execute blocks */ /* eat up or execute blocks */
case 38: case 38:
YY_RULE_SETUP YY_RULE_SETUP
#line 228 "./Engine/Base/Scanner.l" #line 228 "Engine/Base/Scanner.l"
{ {
_iBlockDepth++; _iBlockDepth++;
if (!_bExecNextBlock) { if (!_bExecNextBlock) {
@ -1232,7 +1232,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 39: case 39:
YY_RULE_SETUP YY_RULE_SETUP
#line 237 "./Engine/Base/Scanner.l" #line 237 "Engine/Base/Scanner.l"
{ {
_iBlockDepth--; _iBlockDepth--;
if (_iBlockDepth<0) { if (_iBlockDepth<0) {
@ -1243,7 +1243,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 40: case 40:
YY_RULE_SETUP YY_RULE_SETUP
#line 244 "./Engine/Base/Scanner.l" #line 244 "Engine/Base/Scanner.l"
{ {
_iBlockDepth++; _iBlockDepth++;
_iDummyDepth++; _iDummyDepth++;
@ -1251,7 +1251,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 41: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 248 "./Engine/Base/Scanner.l" #line 248 "Engine/Base/Scanner.l"
{ {
_iBlockDepth--; _iBlockDepth--;
_iDummyDepth--; _iDummyDepth--;
@ -1263,35 +1263,35 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 42: case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 256 "./Engine/Base/Scanner.l" #line 256 "Engine/Base/Scanner.l"
{} {}
YY_BREAK YY_BREAK
/* eat up comments */ /* eat up comments */
case 43: case 43:
YY_RULE_SETUP YY_RULE_SETUP
#line 259 "./Engine/Base/Scanner.l" #line 259 "Engine/Base/Scanner.l"
{ BEGIN(COMMENT); } { BEGIN(COMMENT); }
YY_BREAK YY_BREAK
case 44: case 44:
YY_RULE_SETUP YY_RULE_SETUP
#line 260 "./Engine/Base/Scanner.l" #line 260 "Engine/Base/Scanner.l"
{ BEGIN(INITIAL); } { BEGIN(INITIAL); }
YY_BREAK YY_BREAK
case 45: case 45:
YY_RULE_SETUP YY_RULE_SETUP
#line 261 "./Engine/Base/Scanner.l" #line 261 "Engine/Base/Scanner.l"
{} {}
YY_BREAK YY_BREAK
case 46: case 46:
/* rule 46 can match eol */ /* rule 46 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 262 "./Engine/Base/Scanner.l" #line 262 "Engine/Base/Scanner.l"
{ ShellCountOneLine(); } { ShellCountOneLine(); }
YY_BREAK YY_BREAK
/* eat up whitespace */ /* eat up whitespace */
case 47: case 47:
YY_RULE_SETUP YY_RULE_SETUP
#line 266 "./Engine/Base/Scanner.l" #line 266 "Engine/Base/Scanner.l"
{ {
} }
YY_BREAK YY_BREAK
@ -1299,7 +1299,7 @@ YY_RULE_SETUP
case 48: case 48:
/* rule 48 can match eol */ /* rule 48 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 269 "./Engine/Base/Scanner.l" #line 269 "Engine/Base/Scanner.l"
{ {
ShellCountOneLine(); ShellCountOneLine();
} }
@ -1307,7 +1307,7 @@ YY_RULE_SETUP
/* for all unrecognized characters */ /* for all unrecognized characters */
case 49: case 49:
YY_RULE_SETUP YY_RULE_SETUP
#line 274 "./Engine/Base/Scanner.l" #line 274 "Engine/Base/Scanner.l"
{ {
// report an error // report an error
_pShell->ErrorF("Unrecognized character '%c' (ASCII 0x%02x)", yytext[0], yytext[0] ); _pShell->ErrorF("Unrecognized character '%c' (ASCII 0x%02x)", yytext[0], yytext[0] );
@ -1315,10 +1315,10 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 50: case 50:
YY_RULE_SETUP YY_RULE_SETUP
#line 279 "./Engine/Base/Scanner.l" #line 279 "Engine/Base/Scanner.l"
ECHO; ECHO;
YY_BREAK YY_BREAK
#line 1322 "./Engine/Base/Scanner.cpp" #line 1322 "Engine/Base/Scanner.cpp"
case YY_END_OF_BUFFER: case YY_END_OF_BUFFER:
{ {
@ -2313,7 +2313,7 @@ void yyfree (void * ptr )
#define YYTABLES_NAME "yytables" #define YYTABLES_NAME "yytables"
#line 279 "./Engine/Base/Scanner.l" #line 279 "Engine/Base/Scanner.l"

View File

@ -110,7 +110,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE typedef union YYSTYPE
#line 197 "./Engine/Base/Parser.y" #line 197 "Engine/Base/Parser.y"
{ {
value val; // for constants and expressions value val; // for constants and expressions
arguments arg; // for function input arguments arguments arg; // for function input arguments
@ -122,7 +122,7 @@ typedef union YYSTYPE
void (*pPostFunc)(INDEX); // post-set function for a variable void (*pPostFunc)(INDEX); // post-set function for a variable
} }
/* Line 1529 of yacc.c. */ /* Line 1529 of yacc.c. */
#line 126 "./Engine/Base/Parser.hpp" #line 126 "Engine/Base/Parser.hpp"
YYSTYPE; YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1