mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 15:14:51 +01:00
Regenerated parsers and scanners.
This commit is contained in:
parent
d02a7a41c4
commit
49b5163cc9
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||
|
||||
|
@ -716,8 +716,8 @@ int yy_flex_debug = 0;
|
|||
#define YY_MORE_ADJ 0
|
||||
#define YY_RESTORE_YY_MORE_OFFSET
|
||||
char *yytext;
|
||||
#line 1 "./Ecc/Scanner.l"
|
||||
#line 2 "./Ecc/Scanner.l"
|
||||
#line 1 "Ecc/Scanner.l"
|
||||
#line 2 "Ecc/Scanner.l"
|
||||
// rcg10042001 Changed to specify Ecc directory...
|
||||
#include "Ecc/StdH.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 COMMENT 1
|
||||
|
@ -927,11 +927,11 @@ YY_DECL
|
|||
register char *yy_cp, *yy_bp;
|
||||
register int yy_act;
|
||||
|
||||
#line 38 "./Ecc/Scanner.l"
|
||||
#line 38 "Ecc/Scanner.l"
|
||||
|
||||
|
||||
/* standard cpp-keywords */
|
||||
#line 935 "./Ecc/Scanner.cpp"
|
||||
#line 935 "Ecc/Scanner.cpp"
|
||||
|
||||
if ( !(yy_init) )
|
||||
{
|
||||
|
@ -1016,374 +1016,374 @@ do_action: /* This label is used only to access EOF actions. */
|
|||
|
||||
case 1:
|
||||
YY_RULE_SETUP
|
||||
#line 41 "./Ecc/Scanner.l"
|
||||
#line 41 "Ecc/Scanner.l"
|
||||
{RETURN(k_while);}
|
||||
YY_BREAK
|
||||
case 2:
|
||||
YY_RULE_SETUP
|
||||
#line 42 "./Ecc/Scanner.l"
|
||||
#line 42 "Ecc/Scanner.l"
|
||||
{RETURN(k_switch);}
|
||||
YY_BREAK
|
||||
case 3:
|
||||
YY_RULE_SETUP
|
||||
#line 43 "./Ecc/Scanner.l"
|
||||
#line 43 "Ecc/Scanner.l"
|
||||
{RETURN(k_case);}
|
||||
YY_BREAK
|
||||
case 4:
|
||||
YY_RULE_SETUP
|
||||
#line 44 "./Ecc/Scanner.l"
|
||||
#line 44 "Ecc/Scanner.l"
|
||||
{RETURN(k_for);}
|
||||
YY_BREAK
|
||||
case 5:
|
||||
YY_RULE_SETUP
|
||||
#line 45 "./Ecc/Scanner.l"
|
||||
#line 45 "Ecc/Scanner.l"
|
||||
{RETURN(k_if);}
|
||||
YY_BREAK
|
||||
case 6:
|
||||
YY_RULE_SETUP
|
||||
#line 46 "./Ecc/Scanner.l"
|
||||
#line 46 "Ecc/Scanner.l"
|
||||
{RETURN(k_else);}
|
||||
YY_BREAK
|
||||
case 7:
|
||||
YY_RULE_SETUP
|
||||
#line 47 "./Ecc/Scanner.l"
|
||||
#line 47 "Ecc/Scanner.l"
|
||||
{RETURN(k_enum);}
|
||||
YY_BREAK
|
||||
case 8:
|
||||
YY_RULE_SETUP
|
||||
#line 48 "./Ecc/Scanner.l"
|
||||
#line 48 "Ecc/Scanner.l"
|
||||
{RETURN(k_class);}
|
||||
YY_BREAK
|
||||
case 9:
|
||||
YY_RULE_SETUP
|
||||
#line 49 "./Ecc/Scanner.l"
|
||||
#line 49 "Ecc/Scanner.l"
|
||||
{RETURN(k_do);}
|
||||
YY_BREAK
|
||||
case 10:
|
||||
YY_RULE_SETUP
|
||||
#line 50 "./Ecc/Scanner.l"
|
||||
#line 50 "Ecc/Scanner.l"
|
||||
{RETURN(k_void);}
|
||||
YY_BREAK
|
||||
case 11:
|
||||
YY_RULE_SETUP
|
||||
#line 51 "./Ecc/Scanner.l"
|
||||
#line 51 "Ecc/Scanner.l"
|
||||
{RETURN(k_const);}
|
||||
YY_BREAK
|
||||
case 12:
|
||||
YY_RULE_SETUP
|
||||
#line 52 "./Ecc/Scanner.l"
|
||||
#line 52 "Ecc/Scanner.l"
|
||||
{RETURN(k_inline);}
|
||||
YY_BREAK
|
||||
case 13:
|
||||
YY_RULE_SETUP
|
||||
#line 53 "./Ecc/Scanner.l"
|
||||
#line 53 "Ecc/Scanner.l"
|
||||
{RETURN(k_static);}
|
||||
YY_BREAK
|
||||
case 14:
|
||||
YY_RULE_SETUP
|
||||
#line 54 "./Ecc/Scanner.l"
|
||||
#line 54 "Ecc/Scanner.l"
|
||||
{RETURN(k_virtual);}
|
||||
YY_BREAK
|
||||
case 15:
|
||||
YY_RULE_SETUP
|
||||
#line 55 "./Ecc/Scanner.l"
|
||||
#line 55 "Ecc/Scanner.l"
|
||||
{RETURN(k_return);}
|
||||
YY_BREAK
|
||||
case 16:
|
||||
YY_RULE_SETUP
|
||||
#line 56 "./Ecc/Scanner.l"
|
||||
#line 56 "Ecc/Scanner.l"
|
||||
{RETURN(k_autowait);}
|
||||
YY_BREAK
|
||||
case 17:
|
||||
YY_RULE_SETUP
|
||||
#line 57 "./Ecc/Scanner.l"
|
||||
#line 57 "Ecc/Scanner.l"
|
||||
{RETURN(k_autocall);}
|
||||
YY_BREAK
|
||||
case 18:
|
||||
YY_RULE_SETUP
|
||||
#line 58 "./Ecc/Scanner.l"
|
||||
#line 58 "Ecc/Scanner.l"
|
||||
{RETURN(k_waitevent);}
|
||||
YY_BREAK
|
||||
/* aditional keywords */
|
||||
case 19:
|
||||
YY_RULE_SETUP
|
||||
#line 61 "./Ecc/Scanner.l"
|
||||
#line 61 "Ecc/Scanner.l"
|
||||
{RETURN(k_event);}
|
||||
YY_BREAK
|
||||
case 20:
|
||||
YY_RULE_SETUP
|
||||
#line 62 "./Ecc/Scanner.l"
|
||||
#line 62 "Ecc/Scanner.l"
|
||||
{RETURN(k_name);}
|
||||
YY_BREAK
|
||||
case 21:
|
||||
YY_RULE_SETUP
|
||||
#line 63 "./Ecc/Scanner.l"
|
||||
#line 63 "Ecc/Scanner.l"
|
||||
{RETURN(k_thumbnail);}
|
||||
YY_BREAK
|
||||
case 22:
|
||||
YY_RULE_SETUP
|
||||
#line 64 "./Ecc/Scanner.l"
|
||||
#line 64 "Ecc/Scanner.l"
|
||||
{RETURN(k_features);}
|
||||
YY_BREAK
|
||||
case 23:
|
||||
YY_RULE_SETUP
|
||||
#line 65 "./Ecc/Scanner.l"
|
||||
#line 65 "Ecc/Scanner.l"
|
||||
{RETURN(k_uses);}
|
||||
YY_BREAK
|
||||
case 24:
|
||||
YY_RULE_SETUP
|
||||
#line 66 "./Ecc/Scanner.l"
|
||||
#line 66 "Ecc/Scanner.l"
|
||||
{RETURN(k_export);}
|
||||
YY_BREAK
|
||||
case 25:
|
||||
YY_RULE_SETUP
|
||||
#line 68 "./Ecc/Scanner.l"
|
||||
#line 68 "Ecc/Scanner.l"
|
||||
{RETURN(k_texture);}
|
||||
YY_BREAK
|
||||
case 26:
|
||||
YY_RULE_SETUP
|
||||
#line 69 "./Ecc/Scanner.l"
|
||||
#line 69 "Ecc/Scanner.l"
|
||||
{RETURN(k_sound);}
|
||||
YY_BREAK
|
||||
case 27:
|
||||
YY_RULE_SETUP
|
||||
#line 70 "./Ecc/Scanner.l"
|
||||
#line 70 "Ecc/Scanner.l"
|
||||
{RETURN(k_model);}
|
||||
YY_BREAK
|
||||
case 28:
|
||||
YY_RULE_SETUP
|
||||
#line 72 "./Ecc/Scanner.l"
|
||||
#line 72 "Ecc/Scanner.l"
|
||||
{RETURN(k_properties);}
|
||||
YY_BREAK
|
||||
case 29:
|
||||
YY_RULE_SETUP
|
||||
#line 73 "./Ecc/Scanner.l"
|
||||
#line 73 "Ecc/Scanner.l"
|
||||
{RETURN(k_components);}
|
||||
YY_BREAK
|
||||
case 30:
|
||||
YY_RULE_SETUP
|
||||
#line 74 "./Ecc/Scanner.l"
|
||||
#line 74 "Ecc/Scanner.l"
|
||||
{RETURN(k_functions);}
|
||||
YY_BREAK
|
||||
case 31:
|
||||
YY_RULE_SETUP
|
||||
#line 75 "./Ecc/Scanner.l"
|
||||
#line 75 "Ecc/Scanner.l"
|
||||
{RETURN(k_procedures);}
|
||||
YY_BREAK
|
||||
case 32:
|
||||
YY_RULE_SETUP
|
||||
#line 77 "./Ecc/Scanner.l"
|
||||
#line 77 "Ecc/Scanner.l"
|
||||
{RETURN(k_wait );}
|
||||
YY_BREAK
|
||||
case 33:
|
||||
YY_RULE_SETUP
|
||||
#line 78 "./Ecc/Scanner.l"
|
||||
#line 78 "Ecc/Scanner.l"
|
||||
{RETURN(k_on );}
|
||||
YY_BREAK
|
||||
case 34:
|
||||
YY_RULE_SETUP
|
||||
#line 79 "./Ecc/Scanner.l"
|
||||
#line 79 "Ecc/Scanner.l"
|
||||
{RETURN(k_otherwise);}
|
||||
YY_BREAK
|
||||
case 35:
|
||||
YY_RULE_SETUP
|
||||
#line 81 "./Ecc/Scanner.l"
|
||||
#line 81 "Ecc/Scanner.l"
|
||||
{RETURN(k_call );}
|
||||
YY_BREAK
|
||||
case 36:
|
||||
YY_RULE_SETUP
|
||||
#line 82 "./Ecc/Scanner.l"
|
||||
#line 82 "Ecc/Scanner.l"
|
||||
{RETURN(k_jump );}
|
||||
YY_BREAK
|
||||
case 37:
|
||||
YY_RULE_SETUP
|
||||
#line 83 "./Ecc/Scanner.l"
|
||||
#line 83 "Ecc/Scanner.l"
|
||||
{RETURN(k_stop );}
|
||||
YY_BREAK
|
||||
case 38:
|
||||
YY_RULE_SETUP
|
||||
#line 84 "./Ecc/Scanner.l"
|
||||
#line 84 "Ecc/Scanner.l"
|
||||
{RETURN(k_resume );}
|
||||
YY_BREAK
|
||||
case 39:
|
||||
YY_RULE_SETUP
|
||||
#line 85 "./Ecc/Scanner.l"
|
||||
#line 85 "Ecc/Scanner.l"
|
||||
{RETURN(k_pass );}
|
||||
YY_BREAK
|
||||
/* special data types */
|
||||
case 40:
|
||||
YY_RULE_SETUP
|
||||
#line 88 "./Ecc/Scanner.l"
|
||||
#line 88 "Ecc/Scanner.l"
|
||||
{RETURN(k_CTString);}
|
||||
YY_BREAK
|
||||
case 41:
|
||||
YY_RULE_SETUP
|
||||
#line 89 "./Ecc/Scanner.l"
|
||||
#line 89 "Ecc/Scanner.l"
|
||||
{RETURN(k_CTStringTrans);}
|
||||
YY_BREAK
|
||||
case 42:
|
||||
YY_RULE_SETUP
|
||||
#line 90 "./Ecc/Scanner.l"
|
||||
#line 90 "Ecc/Scanner.l"
|
||||
{RETURN(k_CTFileName);}
|
||||
YY_BREAK
|
||||
case 43:
|
||||
YY_RULE_SETUP
|
||||
#line 91 "./Ecc/Scanner.l"
|
||||
#line 91 "Ecc/Scanner.l"
|
||||
{RETURN(k_CTFileNameNoDep);}
|
||||
YY_BREAK
|
||||
case 44:
|
||||
YY_RULE_SETUP
|
||||
#line 92 "./Ecc/Scanner.l"
|
||||
#line 92 "Ecc/Scanner.l"
|
||||
{RETURN(k_BOOL);}
|
||||
YY_BREAK
|
||||
case 45:
|
||||
YY_RULE_SETUP
|
||||
#line 93 "./Ecc/Scanner.l"
|
||||
#line 93 "Ecc/Scanner.l"
|
||||
{RETURN(k_COLOR);}
|
||||
YY_BREAK
|
||||
case 46:
|
||||
YY_RULE_SETUP
|
||||
#line 94 "./Ecc/Scanner.l"
|
||||
#line 94 "Ecc/Scanner.l"
|
||||
{RETURN(k_FLOAT);}
|
||||
YY_BREAK
|
||||
case 47:
|
||||
YY_RULE_SETUP
|
||||
#line 95 "./Ecc/Scanner.l"
|
||||
#line 95 "Ecc/Scanner.l"
|
||||
{RETURN(k_INDEX);}
|
||||
YY_BREAK
|
||||
case 48:
|
||||
YY_RULE_SETUP
|
||||
#line 96 "./Ecc/Scanner.l"
|
||||
#line 96 "Ecc/Scanner.l"
|
||||
{RETURN(k_RANGE);}
|
||||
YY_BREAK
|
||||
case 49:
|
||||
YY_RULE_SETUP
|
||||
#line 97 "./Ecc/Scanner.l"
|
||||
#line 97 "Ecc/Scanner.l"
|
||||
{RETURN(k_CEntityPointer);}
|
||||
YY_BREAK
|
||||
case 50:
|
||||
YY_RULE_SETUP
|
||||
#line 98 "./Ecc/Scanner.l"
|
||||
#line 98 "Ecc/Scanner.l"
|
||||
{RETURN(k_CModelObject);}
|
||||
YY_BREAK
|
||||
case 51:
|
||||
YY_RULE_SETUP
|
||||
#line 99 "./Ecc/Scanner.l"
|
||||
#line 99 "Ecc/Scanner.l"
|
||||
{RETURN(k_CModelInstance);}
|
||||
YY_BREAK
|
||||
case 52:
|
||||
YY_RULE_SETUP
|
||||
#line 100 "./Ecc/Scanner.l"
|
||||
#line 100 "Ecc/Scanner.l"
|
||||
{RETURN(k_CAnimObject);}
|
||||
YY_BREAK
|
||||
case 53:
|
||||
YY_RULE_SETUP
|
||||
#line 101 "./Ecc/Scanner.l"
|
||||
#line 101 "Ecc/Scanner.l"
|
||||
{RETURN(k_CSoundObject);}
|
||||
YY_BREAK
|
||||
case 54:
|
||||
YY_RULE_SETUP
|
||||
#line 102 "./Ecc/Scanner.l"
|
||||
#line 102 "Ecc/Scanner.l"
|
||||
{RETURN(k_CPlacement3D);}
|
||||
YY_BREAK
|
||||
case 55:
|
||||
YY_RULE_SETUP
|
||||
#line 103 "./Ecc/Scanner.l"
|
||||
#line 103 "Ecc/Scanner.l"
|
||||
{RETURN(k_FLOATaabbox3D);}
|
||||
YY_BREAK
|
||||
case 56:
|
||||
YY_RULE_SETUP
|
||||
#line 104 "./Ecc/Scanner.l"
|
||||
#line 104 "Ecc/Scanner.l"
|
||||
{RETURN(k_FLOATmatrix3D);}
|
||||
YY_BREAK
|
||||
case 57:
|
||||
YY_RULE_SETUP
|
||||
#line 105 "./Ecc/Scanner.l"
|
||||
#line 105 "Ecc/Scanner.l"
|
||||
{RETURN(k_FLOATquat3D);}
|
||||
YY_BREAK
|
||||
case 58:
|
||||
YY_RULE_SETUP
|
||||
#line 106 "./Ecc/Scanner.l"
|
||||
#line 106 "Ecc/Scanner.l"
|
||||
{RETURN(k_ANGLE);};
|
||||
YY_BREAK
|
||||
case 59:
|
||||
YY_RULE_SETUP
|
||||
#line 107 "./Ecc/Scanner.l"
|
||||
#line 107 "Ecc/Scanner.l"
|
||||
{RETURN(k_ANIMATION);};
|
||||
YY_BREAK
|
||||
case 60:
|
||||
YY_RULE_SETUP
|
||||
#line 108 "./Ecc/Scanner.l"
|
||||
#line 108 "Ecc/Scanner.l"
|
||||
{RETURN(k_ILLUMINATIONTYPE);};
|
||||
YY_BREAK
|
||||
case 61:
|
||||
YY_RULE_SETUP
|
||||
#line 109 "./Ecc/Scanner.l"
|
||||
#line 109 "Ecc/Scanner.l"
|
||||
{RETURN(k_FLOAT3D);};
|
||||
YY_BREAK
|
||||
case 62:
|
||||
YY_RULE_SETUP
|
||||
#line 110 "./Ecc/Scanner.l"
|
||||
#line 110 "Ecc/Scanner.l"
|
||||
{RETURN(k_ANGLE3D);};
|
||||
YY_BREAK
|
||||
case 63:
|
||||
YY_RULE_SETUP
|
||||
#line 111 "./Ecc/Scanner.l"
|
||||
#line 111 "Ecc/Scanner.l"
|
||||
{RETURN(k_FLOATplane3D);};
|
||||
YY_BREAK
|
||||
case 64:
|
||||
YY_RULE_SETUP
|
||||
#line 112 "./Ecc/Scanner.l"
|
||||
#line 112 "Ecc/Scanner.l"
|
||||
{RETURN(k_FLAGS);};
|
||||
YY_BREAK
|
||||
/* single character operators and punctuations */
|
||||
case 65:
|
||||
YY_RULE_SETUP
|
||||
#line 115 "./Ecc/Scanner.l"
|
||||
#line 115 "Ecc/Scanner.l"
|
||||
{
|
||||
RETURN(yytext[0]);}
|
||||
YY_BREAK
|
||||
/* constants */
|
||||
case 66:
|
||||
YY_RULE_SETUP
|
||||
#line 119 "./Ecc/Scanner.l"
|
||||
#line 119 "Ecc/Scanner.l"
|
||||
{ RETURN(c_int); }
|
||||
YY_BREAK
|
||||
case 67:
|
||||
YY_RULE_SETUP
|
||||
#line 120 "./Ecc/Scanner.l"
|
||||
#line 120 "Ecc/Scanner.l"
|
||||
{ RETURN(c_int)};
|
||||
YY_BREAK
|
||||
case 68:
|
||||
YY_RULE_SETUP
|
||||
#line 121 "./Ecc/Scanner.l"
|
||||
#line 121 "Ecc/Scanner.l"
|
||||
{ RETURN(c_int); }
|
||||
YY_BREAK
|
||||
case 69:
|
||||
YY_RULE_SETUP
|
||||
#line 122 "./Ecc/Scanner.l"
|
||||
#line 122 "Ecc/Scanner.l"
|
||||
{ RETURN(c_int); }
|
||||
YY_BREAK
|
||||
case 70:
|
||||
YY_RULE_SETUP
|
||||
#line 123 "./Ecc/Scanner.l"
|
||||
#line 123 "Ecc/Scanner.l"
|
||||
{ RETURN(c_string); }
|
||||
YY_BREAK
|
||||
case 71:
|
||||
YY_RULE_SETUP
|
||||
#line 124 "./Ecc/Scanner.l"
|
||||
#line 124 "Ecc/Scanner.l"
|
||||
{ RETURN(c_char); }
|
||||
YY_BREAK
|
||||
/* identifier */
|
||||
case 72:
|
||||
YY_RULE_SETUP
|
||||
#line 127 "./Ecc/Scanner.l"
|
||||
#line 127 "Ecc/Scanner.l"
|
||||
{RETURN(identifier);}
|
||||
YY_BREAK
|
||||
/* specially bracketed cpp blocks */
|
||||
case 73:
|
||||
YY_RULE_SETUP
|
||||
#line 130 "./Ecc/Scanner.l"
|
||||
#line 130 "Ecc/Scanner.l"
|
||||
{
|
||||
char strLine[80];
|
||||
sprintf(strLine, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName );
|
||||
|
@ -1393,7 +1393,7 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 74:
|
||||
YY_RULE_SETUP
|
||||
#line 136 "./Ecc/Scanner.l"
|
||||
#line 136 "Ecc/Scanner.l"
|
||||
{
|
||||
BEGIN(INITIAL);
|
||||
yylval = SType(_strCppBlock);
|
||||
|
@ -1403,7 +1403,7 @@ YY_RULE_SETUP
|
|||
case 75:
|
||||
/* rule 75 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 141 "./Ecc/Scanner.l"
|
||||
#line 141 "Ecc/Scanner.l"
|
||||
{
|
||||
_iLinesCt++;
|
||||
_strCppBlock = (SType(_strCppBlock)+yytext).strString;
|
||||
|
@ -1411,7 +1411,7 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 76:
|
||||
YY_RULE_SETUP
|
||||
#line 145 "./Ecc/Scanner.l"
|
||||
#line 145 "Ecc/Scanner.l"
|
||||
{
|
||||
_strCppBlock = (SType(_strCppBlock)+yytext).strString;
|
||||
}
|
||||
|
@ -1419,29 +1419,29 @@ YY_RULE_SETUP
|
|||
/* eat up comments */
|
||||
case 77:
|
||||
YY_RULE_SETUP
|
||||
#line 150 "./Ecc/Scanner.l"
|
||||
#line 150 "Ecc/Scanner.l"
|
||||
{ BEGIN(COMMENT); }
|
||||
YY_BREAK
|
||||
case 78:
|
||||
YY_RULE_SETUP
|
||||
#line 151 "./Ecc/Scanner.l"
|
||||
#line 151 "Ecc/Scanner.l"
|
||||
{ BEGIN(INITIAL); }
|
||||
YY_BREAK
|
||||
case 79:
|
||||
YY_RULE_SETUP
|
||||
#line 152 "./Ecc/Scanner.l"
|
||||
#line 152 "Ecc/Scanner.l"
|
||||
{}
|
||||
YY_BREAK
|
||||
case 80:
|
||||
/* rule 80 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 153 "./Ecc/Scanner.l"
|
||||
#line 153 "Ecc/Scanner.l"
|
||||
{ _iLinesCt++; }
|
||||
YY_BREAK
|
||||
/* eat up whitespace */
|
||||
case 81:
|
||||
YY_RULE_SETUP
|
||||
#line 156 "./Ecc/Scanner.l"
|
||||
#line 156 "Ecc/Scanner.l"
|
||||
{
|
||||
}
|
||||
YY_BREAK
|
||||
|
@ -1449,7 +1449,7 @@ YY_RULE_SETUP
|
|||
case 82:
|
||||
/* rule 82 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 159 "./Ecc/Scanner.l"
|
||||
#line 159 "Ecc/Scanner.l"
|
||||
{
|
||||
_iLinesCt++;
|
||||
}
|
||||
|
@ -1457,7 +1457,7 @@ YY_RULE_SETUP
|
|||
/* for all unrecognized characters */
|
||||
case 83:
|
||||
YY_RULE_SETUP
|
||||
#line 163 "./Ecc/Scanner.l"
|
||||
#line 163 "Ecc/Scanner.l"
|
||||
{
|
||||
// report an error
|
||||
char strError[80];
|
||||
|
@ -1468,10 +1468,10 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 84:
|
||||
YY_RULE_SETUP
|
||||
#line 171 "./Ecc/Scanner.l"
|
||||
#line 171 "Ecc/Scanner.l"
|
||||
ECHO;
|
||||
YY_BREAK
|
||||
#line 1475 "./Ecc/Scanner.cpp"
|
||||
#line 1475 "Ecc/Scanner.cpp"
|
||||
case YY_STATE_EOF(INITIAL):
|
||||
case YY_STATE_EOF(COMMENT):
|
||||
case YY_STATE_EOF(CPPBLOCK):
|
||||
|
@ -2470,7 +2470,7 @@ void yyfree (void * ptr )
|
|||
|
||||
#define YYTABLES_NAME "yytables"
|
||||
|
||||
#line 171 "./Ecc/Scanner.l"
|
||||
#line 171 "Ecc/Scanner.l"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@
|
|||
|
||||
|
||||
/* Copy the first part of user declarations. */
|
||||
#line 1 "./Engine/Base/Parser.y"
|
||||
#line 1 "Engine/Base/Parser.y"
|
||||
|
||||
#include <Engine/StdH.h>
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
|||
#include <Engine/Templates/DynamicStackArray.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.
|
||||
#ifdef __GNUC__
|
||||
|
@ -347,7 +347,7 @@ void DoComparison(value &vRes, value &v0, value &v1, int token)
|
|||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
#line 197 "./Engine/Base/Parser.y"
|
||||
#line 197 "Engine/Base/Parser.y"
|
||||
{
|
||||
value val; // for constants and expressions
|
||||
arguments arg; // for function input arguments
|
||||
|
@ -359,7 +359,7 @@ typedef union YYSTYPE
|
|||
void (*pPostFunc)(INDEX); // post-set function for a variable
|
||||
}
|
||||
/* Line 193 of yacc.c. */
|
||||
#line 363 "./Engine/Base/Parser.cpp"
|
||||
#line 363 "Engine/Base/Parser.cpp"
|
||||
YYSTYPE;
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
|
@ -369,13 +369,13 @@ typedef union YYSTYPE
|
|||
|
||||
|
||||
/* Copy the second part of user declarations. */
|
||||
#line 208 "./Engine/Base/Parser.y"
|
||||
#line 208 "Engine/Base/Parser.y"
|
||||
|
||||
extern int yylex(YYSTYPE *lvalp);
|
||||
|
||||
|
||||
/* Line 216 of yacc.c. */
|
||||
#line 379 "./Engine/Base/Parser.cpp"
|
||||
#line 379 "Engine/Base/Parser.cpp"
|
||||
|
||||
#ifdef short
|
||||
# undef short
|
||||
|
@ -1769,49 +1769,49 @@ yyreduce:
|
|||
switch (yyn)
|
||||
{
|
||||
case 8:
|
||||
#line 290 "./Engine/Base/Parser.y"
|
||||
#line 290 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.ulFlags) = 0;
|
||||
;}
|
||||
break;
|
||||
|
||||
case 9:
|
||||
#line 293 "./Engine/Base/Parser.y"
|
||||
#line 293 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_CONSTANT;
|
||||
;}
|
||||
break;
|
||||
|
||||
case 10:
|
||||
#line 296 "./Engine/Base/Parser.y"
|
||||
#line 296 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_USER;
|
||||
;}
|
||||
break;
|
||||
|
||||
case 11:
|
||||
#line 299 "./Engine/Base/Parser.y"
|
||||
#line 299 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_PERSISTENT;
|
||||
;}
|
||||
break;
|
||||
|
||||
case 12:
|
||||
#line 302 "./Engine/Base/Parser.y"
|
||||
#line 302 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.ulFlags) = (yyvsp[(1) - (2)].ulFlags) | SSF_EXTERNAL;
|
||||
;}
|
||||
break;
|
||||
|
||||
case 13:
|
||||
#line 307 "./Engine/Base/Parser.y"
|
||||
#line 307 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).strString = "";
|
||||
;}
|
||||
break;
|
||||
|
||||
case 14:
|
||||
#line 310 "./Engine/Base/Parser.y"
|
||||
#line 310 "Engine/Base/Parser.y"
|
||||
{
|
||||
// !!!! remove this option
|
||||
//_pShell->ErrorF("Warning: symbol comments are not supported");
|
||||
|
@ -1820,42 +1820,42 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 15:
|
||||
#line 317 "./Engine/Base/Parser.y"
|
||||
#line 317 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = ShellTypeNewFloat();
|
||||
;}
|
||||
break;
|
||||
|
||||
case 16:
|
||||
#line 320 "./Engine/Base/Parser.y"
|
||||
#line 320 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = ShellTypeNewIndex();
|
||||
;}
|
||||
break;
|
||||
|
||||
case 17:
|
||||
#line 323 "./Engine/Base/Parser.y"
|
||||
#line 323 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = ShellTypeNewString();
|
||||
;}
|
||||
break;
|
||||
|
||||
case 18:
|
||||
#line 326 "./Engine/Base/Parser.y"
|
||||
#line 326 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = ShellTypeNewVoid();
|
||||
;}
|
||||
break;
|
||||
|
||||
case 19:
|
||||
#line 331 "./Engine/Base/Parser.y"
|
||||
#line 331 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.pPreFunc) = NULL;
|
||||
;}
|
||||
break;
|
||||
|
||||
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
|
||||
||_shell_ast[_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_istBaseType].st_sttType!=STT_INDEX
|
||||
|
@ -1870,14 +1870,14 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 21:
|
||||
#line 347 "./Engine/Base/Parser.y"
|
||||
#line 347 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.pPostFunc) = NULL;
|
||||
;}
|
||||
break;
|
||||
|
||||
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
|
||||
||_shell_ast[_shell_ast[(yyvsp[(3) - (3)].pssSymbol)->ss_istType].st_istBaseType].st_sttType!=STT_VOID
|
||||
|
@ -1891,7 +1891,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 23:
|
||||
#line 363 "./Engine/Base/Parser.y"
|
||||
#line 363 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = ShellTypeNewFunction(0);
|
||||
ShellTypeAddFunctionArgument((yyval.istType), ShellTypeNewVoid());
|
||||
|
@ -1899,14 +1899,14 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 24:
|
||||
#line 367 "./Engine/Base/Parser.y"
|
||||
#line 367 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = (yyvsp[(1) - (1)].istType);
|
||||
;}
|
||||
break;
|
||||
|
||||
case 25:
|
||||
#line 373 "./Engine/Base/Parser.y"
|
||||
#line 373 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = ShellTypeNewFunction(0);
|
||||
ShellTypeAddFunctionArgument((yyval.istType), (yyvsp[(1) - (1)].istType));
|
||||
|
@ -1914,7 +1914,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 26:
|
||||
#line 381 "./Engine/Base/Parser.y"
|
||||
#line 381 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.istType) = (yyvsp[(1) - (3)].istType);
|
||||
ShellTypeAddFunctionArgument((yyval.istType), (yyvsp[(3) - (3)].istType));
|
||||
|
@ -1922,7 +1922,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
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));
|
||||
ShellTypeDelete((yyvsp[(2) - (7)].istType));
|
||||
|
@ -1930,7 +1930,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
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
|
||||
_shell_ast[(yyvsp[(5) - (8)].istType)].st_istBaseType = (yyvsp[(2) - (8)].istType);
|
||||
|
@ -1943,7 +1943,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 29:
|
||||
#line 405 "./Engine/Base/Parser.y"
|
||||
#line 405 "Engine/Base/Parser.y"
|
||||
{
|
||||
if ((yyvsp[(5) - (10)].val).sttType!=STT_INDEX) {
|
||||
_pShell->ErrorF("Array size is not integral");
|
||||
|
@ -1955,21 +1955,21 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 30:
|
||||
#line 415 "./Engine/Base/Parser.y"
|
||||
#line 415 "Engine/Base/Parser.y"
|
||||
{
|
||||
// dummy
|
||||
;}
|
||||
break;
|
||||
|
||||
case 31:
|
||||
#line 418 "./Engine/Base/Parser.y"
|
||||
#line 418 "Engine/Base/Parser.y"
|
||||
{
|
||||
// dummy
|
||||
;}
|
||||
break;
|
||||
|
||||
case 32:
|
||||
#line 421 "./Engine/Base/Parser.y"
|
||||
#line 421 "Engine/Base/Parser.y"
|
||||
{
|
||||
// print its value
|
||||
if ((yyvsp[(1) - (2)].val).sttType == STT_VOID) {
|
||||
|
@ -1987,7 +1987,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 33:
|
||||
#line 435 "./Engine/Base/Parser.y"
|
||||
#line 435 "Engine/Base/Parser.y"
|
||||
{
|
||||
// if it is constant
|
||||
if ((yyvsp[(1) - (4)].lvLValue).lv_pssSymbol->ss_ulFlags&SSF_CONSTANT) {
|
||||
|
@ -2029,7 +2029,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
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);
|
||||
ShellTypeDelete((yyvsp[(2) - (6)].istType));
|
||||
|
@ -2067,7 +2067,7 @@ yyreduce:
|
|||
break;
|
||||
|
||||
case 35:
|
||||
#line 507 "./Engine/Base/Parser.y"
|
||||
#line 507 "Engine/Base/Parser.y"
|
||||
{
|
||||
extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
||||
PrintShellSymbolHelp((yyvsp[(2) - (2)].pssSymbol)->ss_strName);
|
||||
|
@ -2075,7 +2075,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 36:
|
||||
#line 511 "./Engine/Base/Parser.y"
|
||||
#line 511 "Engine/Base/Parser.y"
|
||||
{
|
||||
extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
||||
PrintShellSymbolHelp((yyvsp[(2) - (4)].pssSymbol)->ss_strName);
|
||||
|
@ -2083,7 +2083,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 37:
|
||||
#line 515 "./Engine/Base/Parser.y"
|
||||
#line 515 "Engine/Base/Parser.y"
|
||||
{
|
||||
extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
||||
PrintShellSymbolHelp((yyvsp[(2) - (4)].pssSymbol)->ss_strName);
|
||||
|
@ -2091,7 +2091,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 38:
|
||||
#line 519 "./Engine/Base/Parser.y"
|
||||
#line 519 "Engine/Base/Parser.y"
|
||||
{
|
||||
_bExecNextBlock = FALSE;
|
||||
if ((yyvsp[(3) - (4)].val).sttType == STT_INDEX) {
|
||||
|
@ -2106,7 +2106,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 39:
|
||||
#line 529 "./Engine/Base/Parser.y"
|
||||
#line 529 "Engine/Base/Parser.y"
|
||||
{
|
||||
_bExecNextElse = !(yyvsp[(1) - (6)].ulFlags);
|
||||
_bExecNextBlock = TRUE;
|
||||
|
@ -2114,7 +2114,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 42:
|
||||
#line 538 "./Engine/Base/Parser.y"
|
||||
#line 538 "Engine/Base/Parser.y"
|
||||
{
|
||||
if (_bExecNextElse) {
|
||||
_bExecNextBlock = FALSE;
|
||||
|
@ -2135,7 +2135,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 43:
|
||||
#line 554 "./Engine/Base/Parser.y"
|
||||
#line 554 "Engine/Base/Parser.y"
|
||||
{
|
||||
_bExecNextElse = !(yyvsp[(1) - (6)].ulFlags);
|
||||
_bExecNextBlock = TRUE;
|
||||
|
@ -2143,21 +2143,21 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 45:
|
||||
#line 559 "./Engine/Base/Parser.y"
|
||||
#line 559 "Engine/Base/Parser.y"
|
||||
{
|
||||
_bExecNextBlock = _bExecNextElse;
|
||||
;}
|
||||
break;
|
||||
|
||||
case 46:
|
||||
#line 561 "./Engine/Base/Parser.y"
|
||||
#line 561 "Engine/Base/Parser.y"
|
||||
{
|
||||
_bExecNextBlock = TRUE;
|
||||
;}
|
||||
break;
|
||||
|
||||
case 47:
|
||||
#line 567 "./Engine/Base/Parser.y"
|
||||
#line 567 "Engine/Base/Parser.y"
|
||||
{
|
||||
CShellSymbol &ssSymbol = *(yyvsp[(1) - (1)].pssSymbol);
|
||||
const ShellType &stType = _shell_ast[ssSymbol.ss_istType];
|
||||
|
@ -2186,7 +2186,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 48:
|
||||
#line 592 "./Engine/Base/Parser.y"
|
||||
#line 592 "Engine/Base/Parser.y"
|
||||
{
|
||||
CShellSymbol &ssSymbol = *(yyvsp[(1) - (4)].pssSymbol);
|
||||
const ShellType &stType = _shell_ast[ssSymbol.ss_istType];
|
||||
|
@ -2227,7 +2227,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 49:
|
||||
#line 632 "./Engine/Base/Parser.y"
|
||||
#line 632 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.arg).istType = ShellTypeNewFunction(ShellTypeNewVoid());
|
||||
ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewVoid());
|
||||
|
@ -2236,14 +2236,14 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 50:
|
||||
#line 637 "./Engine/Base/Parser.y"
|
||||
#line 637 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.arg) = (yyvsp[(1) - (1)].arg);
|
||||
;}
|
||||
break;
|
||||
|
||||
case 51:
|
||||
#line 643 "./Engine/Base/Parser.y"
|
||||
#line 643 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.arg).istType = ShellTypeNewFunction(ShellTypeNewVoid());
|
||||
ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewByType((yyvsp[(1) - (1)].val).sttType));
|
||||
|
@ -2252,7 +2252,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 52:
|
||||
#line 648 "./Engine/Base/Parser.y"
|
||||
#line 648 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.arg) = (yyvsp[(1) - (3)].arg);
|
||||
ShellTypeAddFunctionArgument((yyval.arg).istType, ShellTypeNewByType((yyvsp[(3) - (3)].val).sttType));
|
||||
|
@ -2261,7 +2261,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 53:
|
||||
#line 655 "./Engine/Base/Parser.y"
|
||||
#line 655 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = STT_FLOAT;
|
||||
(yyval.val).fFloat = (yyvsp[(1) - (1)].val).fFloat;
|
||||
|
@ -2269,7 +2269,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 54:
|
||||
#line 659 "./Engine/Base/Parser.y"
|
||||
#line 659 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = STT_INDEX;
|
||||
(yyval.val).iIndex = (yyvsp[(1) - (1)].val).iIndex;
|
||||
|
@ -2277,7 +2277,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 55:
|
||||
#line 663 "./Engine/Base/Parser.y"
|
||||
#line 663 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = STT_STRING;
|
||||
(yyval.val).strString = (yyvsp[(1) - (1)].val).strString;
|
||||
|
@ -2285,7 +2285,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 56:
|
||||
#line 667 "./Engine/Base/Parser.y"
|
||||
#line 667 "Engine/Base/Parser.y"
|
||||
{
|
||||
// get its value
|
||||
(yyval.val).sttType = (yyvsp[(1) - (1)].lvLValue).lv_sttType;
|
||||
|
@ -2306,7 +2306,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 57:
|
||||
#line 685 "./Engine/Base/Parser.y"
|
||||
#line 685 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2323,7 +2323,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 58:
|
||||
#line 698 "./Engine/Base/Parser.y"
|
||||
#line 698 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2340,7 +2340,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 59:
|
||||
#line 712 "./Engine/Base/Parser.y"
|
||||
#line 712 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2358,7 +2358,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 60:
|
||||
#line 726 "./Engine/Base/Parser.y"
|
||||
#line 726 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2376,7 +2376,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 61:
|
||||
#line 740 "./Engine/Base/Parser.y"
|
||||
#line 740 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2394,7 +2394,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 62:
|
||||
#line 756 "./Engine/Base/Parser.y"
|
||||
#line 756 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2412,7 +2412,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 63:
|
||||
#line 770 "./Engine/Base/Parser.y"
|
||||
#line 770 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2430,7 +2430,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 64:
|
||||
#line 785 "./Engine/Base/Parser.y"
|
||||
#line 785 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2452,7 +2452,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 65:
|
||||
#line 804 "./Engine/Base/Parser.y"
|
||||
#line 804 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2470,7 +2470,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 66:
|
||||
#line 820 "./Engine/Base/Parser.y"
|
||||
#line 820 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2489,7 +2489,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 67:
|
||||
#line 836 "./Engine/Base/Parser.y"
|
||||
#line 836 "Engine/Base/Parser.y"
|
||||
{
|
||||
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
@ -2513,7 +2513,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 68:
|
||||
#line 858 "./Engine/Base/Parser.y"
|
||||
#line 858 "Engine/Base/Parser.y"
|
||||
{
|
||||
MatchTypes((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
|
||||
|
||||
|
@ -2531,49 +2531,49 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
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), '<');
|
||||
;}
|
||||
break;
|
||||
|
||||
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), '>');
|
||||
;}
|
||||
break;
|
||||
|
||||
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), '=');
|
||||
;}
|
||||
break;
|
||||
|
||||
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), '!');
|
||||
;}
|
||||
break;
|
||||
|
||||
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), '}');
|
||||
;}
|
||||
break;
|
||||
|
||||
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), '{');
|
||||
;}
|
||||
break;
|
||||
|
||||
case 75:
|
||||
#line 895 "./Engine/Base/Parser.y"
|
||||
#line 895 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType;
|
||||
if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) {
|
||||
|
@ -2588,7 +2588,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 76:
|
||||
#line 909 "./Engine/Base/Parser.y"
|
||||
#line 909 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType;
|
||||
if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) {
|
||||
|
@ -2603,7 +2603,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 77:
|
||||
#line 921 "./Engine/Base/Parser.y"
|
||||
#line 921 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = (yyvsp[(2) - (2)].val).sttType;
|
||||
if ((yyvsp[(2) - (2)].val).sttType == STT_FLOAT) {
|
||||
|
@ -2619,7 +2619,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 78:
|
||||
#line 934 "./Engine/Base/Parser.y"
|
||||
#line 934 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = STT_FLOAT;
|
||||
if ((yyvsp[(4) - (4)].val).sttType == STT_FLOAT) {
|
||||
|
@ -2636,7 +2636,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 79:
|
||||
#line 948 "./Engine/Base/Parser.y"
|
||||
#line 948 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val).sttType = STT_INDEX;
|
||||
if ((yyvsp[(4) - (4)].val).sttType == STT_FLOAT) {
|
||||
|
@ -2653,7 +2653,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 80:
|
||||
#line 962 "./Engine/Base/Parser.y"
|
||||
#line 962 "Engine/Base/Parser.y"
|
||||
{
|
||||
CTString &strNew = _shell_astrTempStrings.Push();
|
||||
(yyval.val).sttType = STT_STRING;
|
||||
|
@ -2672,7 +2672,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 81:
|
||||
#line 979 "./Engine/Base/Parser.y"
|
||||
#line 979 "Engine/Base/Parser.y"
|
||||
{
|
||||
// if the identifier is not declared
|
||||
if (!(yyvsp[(1) - (4)].pssSymbol)->IsDeclared()) {
|
||||
|
@ -2771,7 +2771,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
break;
|
||||
|
||||
case 82:
|
||||
#line 1075 "./Engine/Base/Parser.y"
|
||||
#line 1075 "Engine/Base/Parser.y"
|
||||
{
|
||||
(yyval.val) = (yyvsp[(2) - (3)].val);
|
||||
;}
|
||||
|
@ -2779,7 +2779,7 @@ extern void PrintShellSymbolHelp(const CTString &strSymbol);
|
|||
|
||||
|
||||
/* Line 1267 of yacc.c. */
|
||||
#line 2783 "./Engine/Base/Parser.cpp"
|
||||
#line 2783 "Engine/Base/Parser.cpp"
|
||||
default: break;
|
||||
}
|
||||
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
|
||||
|
@ -2993,6 +2993,6 @@ yyreturn:
|
|||
}
|
||||
|
||||
|
||||
#line 1080 "./Engine/Base/Parser.y"
|
||||
#line 1080 "Engine/Base/Parser.y"
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -587,8 +587,8 @@ int yy_flex_debug = 0;
|
|||
#define YY_MORE_ADJ 0
|
||||
#define YY_RESTORE_YY_MORE_OFFSET
|
||||
char *yytext;
|
||||
#line 1 "./Engine/Base/Scanner.l"
|
||||
#line 2 "./Engine/Base/Scanner.l"
|
||||
#line 1 "Engine/Base/Scanner.l"
|
||||
#line 2 "Engine/Base/Scanner.l"
|
||||
#include "ParsingSymbols.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 COMMENT 1
|
||||
|
@ -837,13 +837,13 @@ YY_DECL
|
|||
register char *yy_cp, *yy_bp;
|
||||
register int yy_act;
|
||||
|
||||
#line 79 "./Engine/Base/Scanner.l"
|
||||
#line 79 "Engine/Base/Scanner.l"
|
||||
|
||||
|
||||
/*\0 yyterminate();*/
|
||||
|
||||
/* Include file parsing. */
|
||||
#line 847 "./Engine/Base/Scanner.cpp"
|
||||
#line 847 "Engine/Base/Scanner.cpp"
|
||||
|
||||
if ( !(yy_init) )
|
||||
{
|
||||
|
@ -928,18 +928,18 @@ do_action: /* This label is used only to access EOF actions. */
|
|||
|
||||
case 1:
|
||||
YY_RULE_SETUP
|
||||
#line 84 "./Engine/Base/Scanner.l"
|
||||
#line 84 "Engine/Base/Scanner.l"
|
||||
BEGIN(INCLUDE);
|
||||
YY_BREAK
|
||||
case 2:
|
||||
YY_RULE_SETUP
|
||||
#line 86 "./Engine/Base/Scanner.l"
|
||||
#line 86 "Engine/Base/Scanner.l"
|
||||
/* eat the whitespace until first quote */
|
||||
YY_BREAK
|
||||
case 3:
|
||||
/* rule 3 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 87 "./Engine/Base/Scanner.l"
|
||||
#line 87 "Engine/Base/Scanner.l"
|
||||
{ /* get the include file name until second quote */
|
||||
if (ShellGetBufferStackDepth() >= SHELL_MAX_INCLUDE_LEVEL) {
|
||||
_pShell->ErrorF("Script files nested too deeply");
|
||||
|
@ -961,7 +961,7 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 4:
|
||||
YY_RULE_SETUP
|
||||
#line 105 "./Engine/Base/Scanner.l"
|
||||
#line 105 "Engine/Base/Scanner.l"
|
||||
{ /* something unrecognized inside include statement */
|
||||
_pShell->ErrorF("Wrong syntax for include statement");
|
||||
BEGIN(INITIAL);
|
||||
|
@ -971,7 +971,7 @@ YY_RULE_SETUP
|
|||
case 5:
|
||||
/* rule 5 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 111 "./Engine/Base/Scanner.l"
|
||||
#line 111 "Engine/Base/Scanner.l"
|
||||
{ // for each parameter
|
||||
_ctCmdParam++;
|
||||
CTString strParam = yytext;
|
||||
|
@ -999,7 +999,7 @@ YY_RULE_SETUP
|
|||
case 6:
|
||||
/* rule 6 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 134 "./Engine/Base/Scanner.l"
|
||||
#line 134 "Engine/Base/Scanner.l"
|
||||
{
|
||||
// at the end of the command
|
||||
|
||||
|
@ -1013,7 +1013,7 @@ case YY_STATE_EOF(COMMENT):
|
|||
case YY_STATE_EOF(DUMMYBLOCK):
|
||||
case YY_STATE_EOF(INCLUDE):
|
||||
case YY_STATE_EOF(COMMAND):
|
||||
#line 142 "./Engine/Base/Scanner.l"
|
||||
#line 142 "Engine/Base/Scanner.l"
|
||||
{
|
||||
if (ShellPopBuffer()) {
|
||||
yyterminate();
|
||||
|
@ -1023,147 +1023,147 @@ case YY_STATE_EOF(COMMAND):
|
|||
/* special data types */
|
||||
case 7:
|
||||
YY_RULE_SETUP
|
||||
#line 149 "./Engine/Base/Scanner.l"
|
||||
#line 149 "Engine/Base/Scanner.l"
|
||||
{ return(k_FLOAT);}
|
||||
YY_BREAK
|
||||
case 8:
|
||||
YY_RULE_SETUP
|
||||
#line 150 "./Engine/Base/Scanner.l"
|
||||
#line 150 "Engine/Base/Scanner.l"
|
||||
{ return(k_INDEX);}
|
||||
YY_BREAK
|
||||
case 9:
|
||||
YY_RULE_SETUP
|
||||
#line 151 "./Engine/Base/Scanner.l"
|
||||
#line 151 "Engine/Base/Scanner.l"
|
||||
{ return(k_CTString);}
|
||||
YY_BREAK
|
||||
/* keywords */
|
||||
case 10:
|
||||
YY_RULE_SETUP
|
||||
#line 154 "./Engine/Base/Scanner.l"
|
||||
#line 154 "Engine/Base/Scanner.l"
|
||||
{ return(k_void); }
|
||||
YY_BREAK
|
||||
case 11:
|
||||
YY_RULE_SETUP
|
||||
#line 155 "./Engine/Base/Scanner.l"
|
||||
#line 155 "Engine/Base/Scanner.l"
|
||||
{ return(k_const); }
|
||||
YY_BREAK
|
||||
case 12:
|
||||
YY_RULE_SETUP
|
||||
#line 156 "./Engine/Base/Scanner.l"
|
||||
#line 156 "Engine/Base/Scanner.l"
|
||||
{ return(k_user); }
|
||||
YY_BREAK
|
||||
case 13:
|
||||
YY_RULE_SETUP
|
||||
#line 157 "./Engine/Base/Scanner.l"
|
||||
#line 157 "Engine/Base/Scanner.l"
|
||||
{ return(k_persistent); }
|
||||
YY_BREAK
|
||||
case 14:
|
||||
YY_RULE_SETUP
|
||||
#line 158 "./Engine/Base/Scanner.l"
|
||||
#line 158 "Engine/Base/Scanner.l"
|
||||
{ return(k_extern); }
|
||||
YY_BREAK
|
||||
case 15:
|
||||
YY_RULE_SETUP
|
||||
#line 159 "./Engine/Base/Scanner.l"
|
||||
#line 159 "Engine/Base/Scanner.l"
|
||||
{ return(k_pre); }
|
||||
YY_BREAK
|
||||
case 16:
|
||||
YY_RULE_SETUP
|
||||
#line 160 "./Engine/Base/Scanner.l"
|
||||
#line 160 "Engine/Base/Scanner.l"
|
||||
{ return(k_post); }
|
||||
YY_BREAK
|
||||
case 17:
|
||||
YY_RULE_SETUP
|
||||
#line 161 "./Engine/Base/Scanner.l"
|
||||
#line 161 "Engine/Base/Scanner.l"
|
||||
{ return(k_help); }
|
||||
YY_BREAK
|
||||
case 18:
|
||||
YY_RULE_SETUP
|
||||
#line 162 "./Engine/Base/Scanner.l"
|
||||
#line 162 "Engine/Base/Scanner.l"
|
||||
{ return(k_if); }
|
||||
YY_BREAK
|
||||
case 19:
|
||||
YY_RULE_SETUP
|
||||
#line 163 "./Engine/Base/Scanner.l"
|
||||
#line 163 "Engine/Base/Scanner.l"
|
||||
{ return(k_else); }
|
||||
YY_BREAK
|
||||
case 20:
|
||||
YY_RULE_SETUP
|
||||
#line 164 "./Engine/Base/Scanner.l"
|
||||
#line 164 "Engine/Base/Scanner.l"
|
||||
{ return(k_else_if); }
|
||||
YY_BREAK
|
||||
case 21:
|
||||
YY_RULE_SETUP
|
||||
#line 166 "./Engine/Base/Scanner.l"
|
||||
#line 166 "Engine/Base/Scanner.l"
|
||||
{ return (LEQ); }
|
||||
YY_BREAK
|
||||
case 22:
|
||||
YY_RULE_SETUP
|
||||
#line 167 "./Engine/Base/Scanner.l"
|
||||
#line 167 "Engine/Base/Scanner.l"
|
||||
{ return (GEQ); }
|
||||
YY_BREAK
|
||||
case 23:
|
||||
YY_RULE_SETUP
|
||||
#line 168 "./Engine/Base/Scanner.l"
|
||||
#line 168 "Engine/Base/Scanner.l"
|
||||
{ return (EQ); }
|
||||
YY_BREAK
|
||||
case 24:
|
||||
YY_RULE_SETUP
|
||||
#line 169 "./Engine/Base/Scanner.l"
|
||||
#line 169 "Engine/Base/Scanner.l"
|
||||
{ return (NEQ); }
|
||||
YY_BREAK
|
||||
case 25:
|
||||
YY_RULE_SETUP
|
||||
#line 171 "./Engine/Base/Scanner.l"
|
||||
#line 171 "Engine/Base/Scanner.l"
|
||||
{ return (SHR); }
|
||||
YY_BREAK
|
||||
case 26:
|
||||
YY_RULE_SETUP
|
||||
#line 172 "./Engine/Base/Scanner.l"
|
||||
#line 172 "Engine/Base/Scanner.l"
|
||||
{ return (SHL); }
|
||||
YY_BREAK
|
||||
case 27:
|
||||
YY_RULE_SETUP
|
||||
#line 174 "./Engine/Base/Scanner.l"
|
||||
#line 174 "Engine/Base/Scanner.l"
|
||||
{ return (LOGAND); }
|
||||
YY_BREAK
|
||||
case 28:
|
||||
YY_RULE_SETUP
|
||||
#line 175 "./Engine/Base/Scanner.l"
|
||||
#line 175 "Engine/Base/Scanner.l"
|
||||
{ return (LOGOR); }
|
||||
YY_BREAK
|
||||
/* single character operators and punctuations */
|
||||
case 29:
|
||||
YY_RULE_SETUP
|
||||
#line 178 "./Engine/Base/Scanner.l"
|
||||
#line 178 "Engine/Base/Scanner.l"
|
||||
{
|
||||
return(yytext[0]);}
|
||||
YY_BREAK
|
||||
/* constants */
|
||||
case 30:
|
||||
YY_RULE_SETUP
|
||||
#line 182 "./Engine/Base/Scanner.l"
|
||||
#line 182 "Engine/Base/Scanner.l"
|
||||
{ yylval.val.iIndex = atoi(yytext); return(c_int); }
|
||||
YY_BREAK
|
||||
case 31:
|
||||
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); }
|
||||
YY_BREAK
|
||||
case 32:
|
||||
YY_RULE_SETUP
|
||||
#line 184 "./Engine/Base/Scanner.l"
|
||||
#line 184 "Engine/Base/Scanner.l"
|
||||
{ yylval.val.fFloat = (float) atof(yytext); return(c_float); }
|
||||
YY_BREAK
|
||||
case 33:
|
||||
YY_RULE_SETUP
|
||||
#line 185 "./Engine/Base/Scanner.l"
|
||||
#line 185 "Engine/Base/Scanner.l"
|
||||
{ yylval.val.fFloat = (float) atof(yytext); return(c_float); }
|
||||
YY_BREAK
|
||||
case 34:
|
||||
/* rule 34 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 186 "./Engine/Base/Scanner.l"
|
||||
#line 186 "Engine/Base/Scanner.l"
|
||||
{
|
||||
CTString &strNew = _shell_astrTempStrings.Push();
|
||||
// remove double-quotes
|
||||
|
@ -1177,13 +1177,13 @@ YY_RULE_SETUP
|
|||
case 35:
|
||||
/* rule 35 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 195 "./Engine/Base/Scanner.l"
|
||||
#line 195 "Engine/Base/Scanner.l"
|
||||
{ return(c_char); }
|
||||
YY_BREAK
|
||||
/* identifier */
|
||||
case 36:
|
||||
YY_RULE_SETUP
|
||||
#line 198 "./Engine/Base/Scanner.l"
|
||||
#line 198 "Engine/Base/Scanner.l"
|
||||
{
|
||||
// get the symbol
|
||||
yylval.pssSymbol = _pShell->GetSymbol(yytext, FALSE);
|
||||
|
@ -1210,7 +1210,7 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 37:
|
||||
YY_RULE_SETUP
|
||||
#line 221 "./Engine/Base/Scanner.l"
|
||||
#line 221 "Engine/Base/Scanner.l"
|
||||
{ // special case of identifier, used to bypass command parsing
|
||||
// get the symbol
|
||||
yylval.pssSymbol = _pShell->GetSymbol(yytext+1, FALSE);
|
||||
|
@ -1220,7 +1220,7 @@ YY_RULE_SETUP
|
|||
/* eat up or execute blocks */
|
||||
case 38:
|
||||
YY_RULE_SETUP
|
||||
#line 228 "./Engine/Base/Scanner.l"
|
||||
#line 228 "Engine/Base/Scanner.l"
|
||||
{
|
||||
_iBlockDepth++;
|
||||
if (!_bExecNextBlock) {
|
||||
|
@ -1232,7 +1232,7 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 39:
|
||||
YY_RULE_SETUP
|
||||
#line 237 "./Engine/Base/Scanner.l"
|
||||
#line 237 "Engine/Base/Scanner.l"
|
||||
{
|
||||
_iBlockDepth--;
|
||||
if (_iBlockDepth<0) {
|
||||
|
@ -1243,7 +1243,7 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 40:
|
||||
YY_RULE_SETUP
|
||||
#line 244 "./Engine/Base/Scanner.l"
|
||||
#line 244 "Engine/Base/Scanner.l"
|
||||
{
|
||||
_iBlockDepth++;
|
||||
_iDummyDepth++;
|
||||
|
@ -1251,7 +1251,7 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 41:
|
||||
YY_RULE_SETUP
|
||||
#line 248 "./Engine/Base/Scanner.l"
|
||||
#line 248 "Engine/Base/Scanner.l"
|
||||
{
|
||||
_iBlockDepth--;
|
||||
_iDummyDepth--;
|
||||
|
@ -1263,35 +1263,35 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 42:
|
||||
YY_RULE_SETUP
|
||||
#line 256 "./Engine/Base/Scanner.l"
|
||||
#line 256 "Engine/Base/Scanner.l"
|
||||
{}
|
||||
YY_BREAK
|
||||
/* eat up comments */
|
||||
case 43:
|
||||
YY_RULE_SETUP
|
||||
#line 259 "./Engine/Base/Scanner.l"
|
||||
#line 259 "Engine/Base/Scanner.l"
|
||||
{ BEGIN(COMMENT); }
|
||||
YY_BREAK
|
||||
case 44:
|
||||
YY_RULE_SETUP
|
||||
#line 260 "./Engine/Base/Scanner.l"
|
||||
#line 260 "Engine/Base/Scanner.l"
|
||||
{ BEGIN(INITIAL); }
|
||||
YY_BREAK
|
||||
case 45:
|
||||
YY_RULE_SETUP
|
||||
#line 261 "./Engine/Base/Scanner.l"
|
||||
#line 261 "Engine/Base/Scanner.l"
|
||||
{}
|
||||
YY_BREAK
|
||||
case 46:
|
||||
/* rule 46 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 262 "./Engine/Base/Scanner.l"
|
||||
#line 262 "Engine/Base/Scanner.l"
|
||||
{ ShellCountOneLine(); }
|
||||
YY_BREAK
|
||||
/* eat up whitespace */
|
||||
case 47:
|
||||
YY_RULE_SETUP
|
||||
#line 266 "./Engine/Base/Scanner.l"
|
||||
#line 266 "Engine/Base/Scanner.l"
|
||||
{
|
||||
}
|
||||
YY_BREAK
|
||||
|
@ -1299,7 +1299,7 @@ YY_RULE_SETUP
|
|||
case 48:
|
||||
/* rule 48 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 269 "./Engine/Base/Scanner.l"
|
||||
#line 269 "Engine/Base/Scanner.l"
|
||||
{
|
||||
ShellCountOneLine();
|
||||
}
|
||||
|
@ -1307,7 +1307,7 @@ YY_RULE_SETUP
|
|||
/* for all unrecognized characters */
|
||||
case 49:
|
||||
YY_RULE_SETUP
|
||||
#line 274 "./Engine/Base/Scanner.l"
|
||||
#line 274 "Engine/Base/Scanner.l"
|
||||
{
|
||||
// report an error
|
||||
_pShell->ErrorF("Unrecognized character '%c' (ASCII 0x%02x)", yytext[0], yytext[0] );
|
||||
|
@ -1315,10 +1315,10 @@ YY_RULE_SETUP
|
|||
YY_BREAK
|
||||
case 50:
|
||||
YY_RULE_SETUP
|
||||
#line 279 "./Engine/Base/Scanner.l"
|
||||
#line 279 "Engine/Base/Scanner.l"
|
||||
ECHO;
|
||||
YY_BREAK
|
||||
#line 1322 "./Engine/Base/Scanner.cpp"
|
||||
#line 1322 "Engine/Base/Scanner.cpp"
|
||||
|
||||
case YY_END_OF_BUFFER:
|
||||
{
|
||||
|
@ -2313,7 +2313,7 @@ void yyfree (void * ptr )
|
|||
|
||||
#define YYTABLES_NAME "yytables"
|
||||
|
||||
#line 279 "./Engine/Base/Scanner.l"
|
||||
#line 279 "Engine/Base/Scanner.l"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
#line 197 "./Engine/Base/Parser.y"
|
||||
#line 197 "Engine/Base/Parser.y"
|
||||
{
|
||||
value val; // for constants and expressions
|
||||
arguments arg; // for function input arguments
|
||||
|
@ -122,7 +122,7 @@ typedef union YYSTYPE
|
|||
void (*pPostFunc)(INDEX); // post-set function for a variable
|
||||
}
|
||||
/* Line 1529 of yacc.c. */
|
||||
#line 126 "./Engine/Base/Parser.hpp"
|
||||
#line 126 "Engine/Base/Parser.hpp"
|
||||
YYSTYPE;
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user