Annotation of parser3/src/main/compile.tab.C, revision 1.1

1.1     ! parser      1: 
        !             2: /*  A Bison parser, made from compile.y
        !             3:     by GNU Bison version 1.28  */
        !             4: 
        !             5: #define YYBISON 1  /* Identify Bison output.  */
        !             6: 
        !             7: #define        EON     257
        !             8: #define        STRING  258
        !             9: #define        BOGUS   259
        !            10: #define        BAD_STRING_COMPARISON_OPERATOR  260
        !            11: #define        BAD_HEX_LITERAL 261
        !            12: #define        LAND    262
        !            13: #define        LOR     263
        !            14: #define        LXOR    264
        !            15: #define        NLE     265
        !            16: #define        NGE     266
        !            17: #define        NEQ     267
        !            18: #define        NNE     268
        !            19: #define        SLT     269
        !            20: #define        SGT     270
        !            21: #define        SLE     271
        !            22: #define        SGE     272
        !            23: #define        SEQ     273
        !            24: #define        SNE     274
        !            25: #define        DEF     275
        !            26: #define        IN      276
        !            27: #define        FEXISTS 277
        !            28: #define        DEXISTS 278
        !            29: #define        IS      279
        !            30: #define        NEG     280
        !            31: 
        !            32: #line 8 "compile.y"
        !            33: 
        !            34: static char *RCSId="$Id: compile.y,v 1.158 2001/07/28 12:01:50 parser Exp $"; 
        !            35: 
        !            36: /**
        !            37:        @todo parser4: 
        !            38:        - cache compiled code from request to request. to do that...
        !            39:                -#:     make method definitions, @CLASS, @BASE, @USE instructions,
        !            40:                        which would be executed afterwards, and actions
        !            41:                        now performed at compile time would be delayed to run time.
        !            42:                -#:     make cache expiration on time and on disk-change of class source
        !            43:                -#:     in apache use subpools for compiled class storage
        !            44:                -#:     in iis make up specialized Pool object for that
        !            45: */
        !            46: 
        !            47: #define YYSTYPE  Array/*<Operation>*/ *
        !            48: #define YYPARSE_PARAM  pc
        !            49: #define YYLEX_PARAM  pc
        !            50: #define YYDEBUG  1
        !            51: #define YYERROR_VERBOSE        1
        !            52: #define yyerror(msg)  real_yyerror((parse_control *)pc, msg)
        !            53: #define YYPRINT(file, type, value)  yyprint(file, type, value)
        !            54: 
        !            55: #include "compile_tools.h"
        !            56: #include "pa_value.h"
        !            57: #include "pa_request.h"
        !            58: #include "pa_vobject.h"
        !            59: #include "pa_vdouble.h"
        !            60: #include "pa_globals.h"
        !            61: #include "pa_vvoid.h"
        !            62: 
        !            63: #define SELF_ELEMENT_NAME "self"
        !            64: #define USE_CONTROL_METHOD_NAME "USE"
        !            65: 
        !            66: static int real_yyerror(parse_control *pc, char *s);
        !            67: static void yyprint(FILE *file, int type, YYSTYPE value);
        !            68: static int yylex(YYSTYPE *lvalp, void *pc);
        !            69: 
        !            70: 
        !            71: // local convinient inplace typecast & var
        !            72: #define PC  (*(parse_control *)pc)
        !            73: #define POOL  (*PC.pool)
        !            74: #undef NEW
        !            75: #define NEW new(POOL)
        !            76: #ifndef DOXYGEN
        !            77: #ifndef YYSTYPE
        !            78: #define YYSTYPE int
        !            79: #endif
        !            80: #include <stdio.h>
        !            81: 
        !            82: #ifndef __cplusplus
        !            83: #ifndef __STDC__
        !            84: #define const
        !            85: #endif
        !            86: #endif
        !            87: 
        !            88: 
        !            89: 
        !            90: #define        YYFINAL         240
        !            91: #define        YYFLAG          -32768
        !            92: #define        YYNTBASE        54
        !            93: 
        !            94: #define YYTRANSLATE(x) ((unsigned)(x) <= 280 ? yytranslate[x] : 132)
        !            95: 
        !            96: static const char yytranslate[] = {     0,
        !            97:      2,     2,     2,     2,     2,     2,     2,     2,     2,    40,
        !            98:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !            99:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           100:      2,     2,    28,    52,    29,    44,    37,    31,    53,    48,
        !           101:     49,    35,    34,     2,    33,    47,    36,     2,     2,     2,
        !           102:      2,     2,     2,     2,     2,     2,     2,    51,    43,    26,
        !           103:      2,    27,     2,    39,     2,     2,     2,     2,     2,     2,
        !           104:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           105:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           106:     41,     2,    42,    50,     2,     2,     2,     2,     2,     2,
        !           107:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           108:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           109:      2,     2,    45,    30,    46,    32,     2,     2,     2,     2,
        !           110:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           111:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           112:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           113:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           114:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           115:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           116:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           117:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           118:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           119:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           120:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           121:      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        !           122:      2,     2,     2,     2,     2,     1,     3,     4,     5,     6,
        !           123:      7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
        !           124:     17,    18,    19,    20,    21,    22,    23,    24,    25,    38
        !           125: };
        !           126: 
        !           127: #if YYDEBUG != 0
        !           128: static const short yyprhs[] = {     0,
        !           129:      0,     2,     4,     6,     9,    11,    13,    15,    20,    22,
        !           130:     24,    26,    29,    32,    34,    36,    44,    46,    48,    52,
        !           131:     54,    56,    58,    62,    64,    66,    68,    70,    72,    75,
        !           132:     77,    79,    81,    83,    85,    87,    90,    93,    95,    99,
        !           133:    101,   103,   105,   108,   110,   113,   117,   119,   121,   123,
        !           134:    125,   128,   131,   133,   135,   137,   141,   145,   149,   151,
        !           135:    153,   155,   157,   159,   161,   164,   166,   167,   168,   175,
        !           136:    177,   179,   182,   184,   186,   188,   192,   196,   200,   202,
        !           137:    206,   208,   212,   214,   218,   220,   222,   224,   226,   228,
        !           138:    230,   232,   234,   237,   239,   242,   245,   247,   249,   252,
        !           139:    254,   256,   258,   261,   264,   266,   268,   271,   274,   276,
        !           140:    278,   281,   284,   286,   288,   290,   292,   296,   300,   304,
        !           141:    307,   310,   313,   316,   319,   322,   325,   329,   333,   337,
        !           142:    341,   345,   349,   353,   357,   361,   365,   369,   373,   377,
        !           143:    381,   385,   389,   393,   397,   401,   405,   409,   413,   417,
        !           144:    421,   423,   425,   426
        !           145: };
        !           146: 
        !           147: static const short yyrhs[] = {    56,
        !           148:      0,    55,     0,    57,     0,    55,    57,     0,    69,     0,
        !           149:     58,     0,    63,     0,    39,     4,    40,    59,     0,   131,
        !           150:      0,    60,     0,    61,     0,    60,    61,     0,    62,    40,
        !           151:      0,   131,     0,     4,     0,    39,     4,    65,    64,    68,
        !           152:     40,    69,     0,   131,     0,    65,     0,    41,    66,    42,
        !           153:      0,   131,     0,    67,     0,     4,     0,    67,    43,     4,
        !           154:      0,   131,     0,     4,     0,   131,     0,    70,     0,    71,
        !           155:      0,    70,    71,     0,   129,     0,    72,     0,    73,     0,
        !           156:     81,     0,    94,     0,    74,     0,    44,    75,     0,    77,
        !           157:      3,     0,    76,     0,    45,    77,    46,     0,    78,     0,
        !           158:     79,     0,    80,     0,   123,    80,     0,   116,     0,   113,
        !           159:    116,     0,    44,    82,    86,     0,    83,     0,    84,     0,
        !           160:     85,     0,   112,     0,    47,   112,     0,   123,   112,     0,
        !           161:     87,     0,    88,     0,    89,     0,    41,    90,    42,     0,
        !           162:     48,   126,    49,     0,    45,    69,    46,     0,   130,     0,
        !           163:      4,     0,    91,     0,    92,     0,    93,     0,    72,     0,
        !           164:     71,    70,     0,    95,     0,     0,     0,    50,    96,    98,
        !           165:     97,    99,     3,     0,    77,     0,   100,     0,    99,   100,
        !           166:      0,   101,     0,   102,     0,   103,     0,    41,   104,    42,
        !           167:      0,    48,   105,    49,     0,    45,   106,    46,     0,   107,
        !           168:      0,   104,    43,   107,     0,   108,     0,   105,    43,   108,
        !           169:      0,   109,     0,   106,    43,   109,     0,   110,     0,   111,
        !           170:      0,    69,     0,   130,     0,     4,     0,    91,     0,   126,
        !           171:      0,   117,     0,   113,   117,     0,   114,     0,   113,   114,
        !           172:      0,   115,    47,     0,   117,     0,   117,     0,     4,     5,
        !           173:      0,     4,     0,   118,     0,   119,     0,    44,   120,     0,
        !           174:      4,   121,     0,     4,     0,   122,     0,   121,   122,     0,
        !           175:     44,   120,     0,   124,     0,   125,     0,     4,    51,     0,
        !           176:    124,    51,     0,   127,     0,     4,     0,    74,     0,    95,
        !           177:      0,    52,   128,    52,     0,    53,   128,    53,     0,    48,
        !           178:    127,    49,     0,    33,   127,     0,    32,   127,     0,    28,
        !           179:    127,     0,    21,   127,     0,    22,   127,     0,    23,   127,
        !           180:      0,    24,   127,     0,   127,    33,   127,     0,   127,    34,
        !           181:    127,     0,   127,    35,   127,     0,   127,    36,   127,     0,
        !           182:    127,    37,   127,     0,   127,    31,   127,     0,   127,    30,
        !           183:    127,     0,   127,    29,   127,     0,   127,     8,   127,     0,
        !           184:    127,     9,   127,     0,   127,    10,   127,     0,   127,    26,
        !           185:    127,     0,   127,    27,   127,     0,   127,    11,   127,     0,
        !           186:    127,    12,   127,     0,   127,    13,   127,     0,   127,    14,
        !           187:    127,     0,   127,    15,   127,     0,   127,    16,   127,     0,
        !           188:    127,    17,   127,     0,   127,    18,   127,     0,   127,    19,
        !           189:    127,     0,   127,    20,   127,     0,   127,    25,   127,     0,
        !           190:     69,     0,     4,     0,     0,     0
        !           191: };
        !           192: 
        !           193: #endif
        !           194: 
        !           195: #if YYDEBUG != 0
        !           196: static const short yyrline[] = { 0,
        !           197:    106,   116,   118,   118,   119,   121,   121,   123,   190,   190,
        !           198:    191,   191,   192,   193,   193,   195,   224,   224,   225,   226,
        !           199:    226,   227,   227,   229,   229,   233,   233,   235,   235,   236,
        !           200:    236,   237,   237,   237,   241,   245,   246,   246,   247,   248,
        !           201:    250,   251,   266,   267,   267,   271,   275,   277,   278,   279,
        !           202:    294,   299,   301,   302,   303,   306,   312,   318,   324,   326,
        !           203:    327,   329,   335,   336,   336,   340,   344,   345,   346,   360,
        !           204:    362,   362,   363,   365,   366,   368,   369,   370,   371,   373,
        !           205:    375,   377,   379,   381,   383,   387,   391,   395,   397,   398,
        !           206:    400,   407,   407,   409,   409,   410,   411,   416,   421,   423,
        !           207:    425,   426,   428,   432,   440,   445,   445,   446,   451,   453,
        !           208:    455,   459,   471,   475,   477,   478,   479,   480,   481,   483,
        !           209:    484,   485,   486,   487,   488,   489,   491,   492,   493,   494,
        !           210:    495,   496,   497,   498,   499,   500,   501,   502,   503,   504,
        !           211:    505,   506,   507,   508,   509,   510,   511,   512,   513,   514,
        !           212:    517,   526,   531,   532
        !           213: };
        !           214: #endif
        !           215: 
        !           216: 
        !           217: #if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
        !           218: 
        !           219: static const char * const yytname[] = {   "$","error","$undefined.","EON","STRING",
        !           220: "BOGUS","BAD_STRING_COMPARISON_OPERATOR","BAD_HEX_LITERAL","\"&&\"","\"||\"",
        !           221: "\"##\"","\"<=\"","\">=\"","\"==\"","\"!=\"","\"lt\"","\"gt\"","\"le\"","\"ge\"",
        !           222: "\"eq\"","\"ne\"","\"def\"","\"in\"","\"-f\"","\"-d\"","\"is\"","'<'","'>'",
        !           223: "'!'","'#'","'|'","'&'","'~'","'-'","'+'","'*'","'/'","'%'","NEG","'@'","'\\n'",
        !           224: "'['","']'","';'","'$'","'{'","'}'","'.'","'('","')'","'^'","':'","'\\\"'","'\\''",
        !           225: "all","methods","one_big_piece","method","control_method","maybe_control_strings",
        !           226: "control_strings","control_string","maybe_string","code_method","maybe_bracketed_strings",
        !           227: "bracketed_maybe_strings","maybe_strings","strings","maybe_comment","maybe_codes",
        !           228: "codes","code","action","get","get_value","get_name_value","name_in_curly_rdive",
        !           229: "name_without_curly_rdive","name_without_curly_rdive_read","name_without_curly_rdive_class",
        !           230: "name_without_curly_rdive_code","put","name_expr_wdive","name_expr_wdive_root",
        !           231: "name_expr_wdive_write","name_expr_wdive_class","construct","construct_square",
        !           232: "construct_round","construct_curly","any_constructor_code_value","constructor_code_value",
        !           233: "constructor_code","codes__excluding_sole_str_literal","call","call_value","@1",
        !           234: "@2","call_name","store_params","store_param","store_square_param","store_round_param",
        !           235: "store_curly_param","store_code_param_parts","store_expr_param_parts","store_curly_param_parts",
        !           236: "store_code_param_part","store_expr_param_part","store_curly_param_part","code_param_value",
        !           237: "write_expr_value","name_expr_dive_code","name_path","name_step","name_advance1",
        !           238: "name_advance2","name_expr_value","name_expr_subvar_value","name_expr_with_subvar_value",
        !           239: "subvar_ref_name_rdive","subvar_get_writes","subvar__get_write","class_prefix",
        !           240: "class_static_prefix","class_constructor_prefix","expr_value","expr","string_inside_quotes_value",
        !           241: "write_string","void_value","empty", NULL
        !           242: };
        !           243: #endif
        !           244: 
        !           245: static const short yyr1[] = {     0,
        !           246:     54,    54,    55,    55,    56,    57,    57,    58,    59,    59,
        !           247:     60,    60,    61,    62,    62,    63,    64,    64,    65,    66,
        !           248:     66,    67,    67,    68,    68,    69,    69,    70,    70,    71,
        !           249:     71,    72,    72,    72,    73,    74,    75,    75,    76,    77,
        !           250:     77,    78,    79,    80,    80,    81,    82,    82,    82,    83,
        !           251:     84,    85,    86,    86,    86,    87,    88,    89,    90,    90,
        !           252:     90,    91,    92,    93,    93,    94,    96,    97,    95,    98,
        !           253:     99,    99,   100,   100,   100,   101,   102,   103,   104,   104,
        !           254:    105,   105,   106,   106,   107,   108,   109,   110,   110,   110,
        !           255:    111,   112,   112,   113,   113,   114,   115,   116,   116,   117,
        !           256:    117,   117,   118,   119,   120,   121,   121,   122,   123,   123,
        !           257:    124,   125,   126,   127,   127,   127,   127,   127,   127,   127,
        !           258:    127,   127,   127,   127,   127,   127,   127,   127,   127,   127,
        !           259:    127,   127,   127,   127,   127,   127,   127,   127,   127,   127,
        !           260:    127,   127,   127,   127,   127,   127,   127,   127,   127,   127,
        !           261:    128,   129,   130,   131
        !           262: };
        !           263: 
        !           264: static const short yyr2[] = {     0,
        !           265:      1,     1,     1,     2,     1,     1,     1,     4,     1,     1,
        !           266:      1,     2,     2,     1,     1,     7,     1,     1,     3,     1,
        !           267:      1,     1,     3,     1,     1,     1,     1,     1,     2,     1,
        !           268:      1,     1,     1,     1,     1,     2,     2,     1,     3,     1,
        !           269:      1,     1,     2,     1,     2,     3,     1,     1,     1,     1,
        !           270:      2,     2,     1,     1,     1,     3,     3,     3,     1,     1,
        !           271:      1,     1,     1,     1,     2,     1,     0,     0,     6,     1,
        !           272:      1,     2,     1,     1,     1,     3,     3,     3,     1,     3,
        !           273:      1,     3,     1,     3,     1,     1,     1,     1,     1,     1,
        !           274:      1,     1,     2,     1,     2,     2,     1,     1,     2,     1,
        !           275:      1,     1,     2,     2,     1,     1,     2,     2,     1,     1,
        !           276:      2,     2,     1,     1,     1,     1,     3,     3,     3,     2,
        !           277:      2,     2,     2,     2,     2,     2,     3,     3,     3,     3,
        !           278:      3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
        !           279:      3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
        !           280:      1,     1,     0,     0
        !           281: };
        !           282: 
        !           283: static const short yydefact[] = {   154,
        !           284:    152,     0,     0,    67,     2,     1,     3,     6,     7,     5,
        !           285:     27,    28,    31,    32,    35,    33,    34,    66,    30,    26,
        !           286:      0,   100,     0,     0,     0,    36,    38,     0,    40,    41,
        !           287:     42,     0,    47,    48,    49,    50,     0,    94,     0,    44,
        !           288:     92,   101,   102,     0,   109,   110,     0,     4,    29,   154,
        !           289:    154,   154,    99,     0,   111,   104,   106,   105,   103,     0,
        !           290:      0,    98,     0,   100,    51,     0,    92,    37,   153,   154,
        !           291:      0,    46,    53,    54,    55,   100,    95,    45,    93,    96,
        !           292:     43,    52,   112,    70,    68,    15,     8,    10,    11,     0,
        !           293:      9,    22,     0,    21,    20,   154,    18,    17,   108,   107,
        !           294:     39,    93,   152,     0,    31,     0,    61,    62,    63,    59,
        !           295:      0,   114,     0,     0,     0,     0,     0,     0,     0,     0,
        !           296:      0,   154,   154,   115,   116,     0,   113,     0,    12,    14,
        !           297:     13,    19,     0,    25,     0,    24,    65,    56,    58,   123,
        !           298:    124,   125,   126,   122,   121,   120,     0,   151,     0,     0,
        !           299:     57,     0,     0,     0,     0,     0,     0,     0,     0,     0,
        !           300:      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
        !           301:      0,     0,     0,     0,     0,   153,   154,     0,     0,    71,
        !           302:     73,    74,    75,    23,   154,   119,   117,   118,   135,   136,
        !           303:    137,   140,   141,   142,   143,   144,   145,   146,   147,   148,
        !           304:    149,   150,   138,   139,   134,   133,   132,   127,   128,   129,
        !           305:    130,   131,   152,    90,     0,    79,    85,    88,    87,     0,
        !           306:     83,     0,    81,    86,    91,    69,    72,    16,    76,   153,
        !           307:    154,    78,     0,    77,    80,    84,    82,     0,     0,     0
        !           308: };
        !           309: 
        !           310: static const short yydefgoto[] = {   238,
        !           311:      5,     6,     7,     8,    87,    88,    89,    90,     9,    96,
        !           312:     52,    93,    94,   135,   148,    11,    12,    13,    14,   124,
        !           313:     26,    27,    28,    29,    30,    31,    16,    32,    33,    34,
        !           314:     35,    72,    73,    74,    75,   106,   214,   108,   109,    17,
        !           315:    125,    47,   128,    85,   179,   180,   181,   182,   183,   215,
        !           316:    222,   220,   216,   223,   221,   217,   224,    36,    61,    38,
        !           317:     39,    40,    62,    42,    43,    59,    56,    57,    63,    45,
        !           318:     46,   225,   127,   149,    19,   218,    20
        !           319: };
        !           320: 
        !           321: static const short yypact[] = {    10,
        !           322: -32768,    15,    58,-32768,    -8,-32768,-32768,-32768,-32768,-32768,
        !           323:      6,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
        !           324:     80,     4,    32,    70,   105,-32768,-32768,    44,-32768,-32768,
        !           325: -32768,   -21,-32768,-32768,-32768,-32768,   106,-32768,    54,-32768,
        !           326:     19,-32768,-32768,   106,    66,-32768,    70,-32768,-32768,   122,
        !           327:    124,    92,-32768,    32,-32768,    90,-32768,-32768,-32768,    97,
        !           328:    106,   101,   106,    90,-32768,   105,   101,-32768,    13,     6,
        !           329:    108,-32768,-32768,-32768,-32768,   111,-32768,-32768,    19,-32768,
        !           330: -32768,-32768,-32768,-32768,-32768,-32768,-32768,    11,-32768,   113,
        !           331:    117,-32768,   120,   116,-32768,   147,-32768,-32768,-32768,-32768,
        !           332: -32768,   101,   128,     6,   139,   144,-32768,-32768,-32768,-32768,
        !           333:    118,-32768,   108,   108,   108,   108,   108,   108,   108,    63,
        !           334:    108,     6,     6,-32768,-32768,   162,   230,   -20,-32768,-32768,
        !           335: -32768,-32768,   186,-32768,   172,-32768,     6,-32768,-32768,   351,
        !           336:    351,   351,   351,   351,   364,-32768,   188,-32768,   164,   173,
        !           337: -32768,   108,   108,   108,   108,   108,   108,   108,   108,   108,
        !           338:    108,   108,   108,   108,   108,   108,   108,   108,   108,   108,
        !           339:    108,   108,   108,   108,   108,    14,     6,   108,    20,-32768,
        !           340: -32768,-32768,-32768,-32768,     6,-32768,-32768,-32768,   317,   290,
        !           341:    260,   342,   342,   138,   138,   342,   342,   342,   342,   138,
        !           342:    138,   351,   342,   342,   359,   158,   364,   109,   109,-32768,
        !           343: -32768,-32768,   141,-32768,   167,-32768,-32768,-32768,-32768,   -13,
        !           344: -32768,   -17,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    14,
        !           345:      6,-32768,   108,-32768,-32768,-32768,-32768,   227,   228,-32768
        !           346: };
        !           347: 
        !           348: static const short yypgoto[] = {-32768,
        !           349: -32768,-32768,   224,-32768,-32768,-32768,   148,-32768,-32768,-32768,
        !           350:    183,-32768,-32768,-32768,     3,   149,   -10,   -65,-32768,     0,
        !           351: -32768,-32768,    91,-32768,-32768,   -28,-32768,-32768,-32768,-32768,
        !           352: -32768,-32768,-32768,-32768,-32768,-32768,   182,-32768,-32768,-32768,
        !           353:      2,-32768,-32768,-32768,-32768,    73,-32768,-32768,-32768,-32768,
        !           354: -32768,-32768,    24,    25,    31,-32768,-32768,    75,   110,    81,
        !           355: -32768,   -32,     9,-32768,-32768,   216,-32768,   225,   279,-32768,
        !           356: -32768,   212,   -76,   161,-32768,   219,   -44
        !           357: };
        !           358: 
        !           359: 
        !           360: #define        YYLAST          401
        !           361: 
        !           362: 
        !           363: static const short yytable[] = {    15,
        !           364:     49,    18,    10,   105,    78,    91,    95,    98,    53,     1,
        !           365:     15,    41,    18,     1,    86,    81,   103,   213,    21,    69,
        !           366:    176,   -98,   226,    70,   177,   233,    71,   178,    78,   231,
        !           367:      2,   234,   232,    67,    81,    58,   140,   141,   142,   143,
        !           368:    144,   145,   146,   130,   147,    79,    68,    54,     2,     3,
        !           369:   -154,   136,    41,     3,    55,     4,     3,     3,   104,     4,
        !           370:    176,    22,     4,     4,   177,   -97,    22,   178,    15,    15,
        !           371:     18,    18,   111,    22,   102,   189,   190,   191,   192,   193,
        !           372:    194,   195,   196,   197,   198,   199,   200,   201,   202,   203,
        !           373:    204,   205,   206,   207,   208,   209,   210,   211,   212,    65,
        !           374:     80,    23,    24,    15,    25,    18,    23,    24,    64,    76,
        !           375:    105,   112,    37,    23,    60,    53,    83,    77,    82,    50,
        !           376:     51,    15,    15,    18,    18,    86,    49,    92,   113,   114,
        !           377:    115,   116,    51,    54,    66,   117,    15,    84,    18,   118,
        !           378:    119,    77,   101,   173,   174,   175,    77,   -97,    23,    23,
        !           379:    134,   120,   131,    37,    54,   121,   -14,     4,   133,   122,
        !           380:    123,   132,   165,   139,   105,   104,   168,   169,   170,   -60,
        !           381:    171,   172,   173,   174,   175,    15,    15,    18,    18,   219,
        !           382:    -64,   -64,   -89,   -89,    15,   138,    18,   228,   170,   184,
        !           383:    171,   172,   173,   174,   175,   152,   153,   154,   155,   156,
        !           384:    157,   158,   159,   160,   161,   162,   163,   164,   229,   230,
        !           385:    151,   185,   165,   166,   167,   187,   168,   169,   170,   104,
        !           386:    171,   172,   173,   174,   175,   188,   239,   240,    48,    15,
        !           387:     15,    18,    18,   219,    97,   129,   186,   152,   153,   154,
        !           388:    155,   156,   157,   158,   159,   160,   161,   162,   163,   164,
        !           389:    107,   227,   137,   235,   165,   166,   167,   237,   168,   169,
        !           390:    170,   236,   171,   172,   173,   174,   175,   152,   153,    99,
        !           391:    155,   156,   157,   158,   159,   160,   161,   162,   163,   164,
        !           392:    100,    44,   126,   150,   165,   166,   167,   110,   168,   169,
        !           393:    170,     0,   171,   172,   173,   174,   175,   152,     0,     0,
        !           394:    155,   156,   157,   158,   159,   160,   161,   162,   163,   164,
        !           395:      0,     0,     0,     0,   165,   166,   167,     0,   168,   169,
        !           396:    170,     0,   171,   172,   173,   174,   175,   155,   156,   157,
        !           397:    158,   159,   160,   161,   162,   163,   164,     0,     0,     0,
        !           398:      0,   165,   166,   167,     0,   168,   169,   170,     0,   171,
        !           399:    172,   173,   174,   175,   157,   158,     0,     0,     0,     0,
        !           400:    163,   164,     0,     0,     0,     0,   165,     0,     0,     0,
        !           401:    168,   169,   170,     0,   171,   172,   173,   174,   175,   168,
        !           402:    169,   170,     0,   171,   172,   173,   174,   175,   169,   170,
        !           403:      0,   171,   172,   173,   174,   175,   171,   172,   173,   174,
        !           404:    175
        !           405: };
        !           406: 
        !           407: static const short yycheck[] = {     0,
        !           408:     11,     0,     0,    69,    37,    50,    51,    52,     5,     4,
        !           409:     11,     3,    11,     4,     4,    44,     4,     4,     4,    41,
        !           410:     41,     3,     3,    45,    45,    43,    48,    48,    61,    43,
        !           411:     39,    49,    46,    25,    63,     4,   113,   114,   115,   116,
        !           412:    117,   118,   119,    88,   121,    37,     3,    44,    39,    44,
        !           413:     40,    96,    44,    44,    51,    50,    44,    44,    69,    50,
        !           414:     41,     4,    50,    50,    45,    47,     4,    48,    69,    70,
        !           415:     69,    70,    70,     4,    66,   152,   153,   154,   155,   156,
        !           416:    157,   158,   159,   160,   161,   162,   163,   164,   165,   166,
        !           417:    167,   168,   169,   170,   171,   172,   173,   174,   175,    25,
        !           418:     47,    44,    45,   104,    47,   104,    44,    45,     4,     4,
        !           419:    176,     4,     3,    44,    24,     5,    51,    37,    44,    40,
        !           420:     41,   122,   123,   122,   123,     4,   137,     4,    21,    22,
        !           421:     23,    24,    41,    44,    25,    28,   137,    47,   137,    32,
        !           422:     33,    61,    46,    35,    36,    37,    66,    47,    44,    44,
        !           423:      4,    44,    40,    44,    44,    48,    40,    50,    43,    52,
        !           424:     53,    42,    25,    46,   230,   176,    29,    30,    31,    42,
        !           425:     33,    34,    35,    36,    37,   176,   177,   176,   177,   177,
        !           426:     42,    43,    42,    43,   185,    42,   185,   185,    31,     4,
        !           427:     33,    34,    35,    36,    37,     8,     9,    10,    11,    12,
        !           428:     13,    14,    15,    16,    17,    18,    19,    20,    42,    43,
        !           429:     49,    40,    25,    26,    27,    52,    29,    30,    31,   230,
        !           430:     33,    34,    35,    36,    37,    53,     0,     0,     5,   230,
        !           431:    231,   230,   231,   231,    52,    88,    49,     8,     9,    10,
        !           432:     11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
        !           433:     69,   179,   104,   230,    25,    26,    27,   233,    29,    30,
        !           434:     31,   231,    33,    34,    35,    36,    37,     8,     9,    54,
        !           435:     11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
        !           436:     56,     3,    71,   123,    25,    26,    27,    69,    29,    30,
        !           437:     31,    -1,    33,    34,    35,    36,    37,     8,    -1,    -1,
        !           438:     11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
        !           439:     -1,    -1,    -1,    -1,    25,    26,    27,    -1,    29,    30,
        !           440:     31,    -1,    33,    34,    35,    36,    37,    11,    12,    13,
        !           441:     14,    15,    16,    17,    18,    19,    20,    -1,    -1,    -1,
        !           442:     -1,    25,    26,    27,    -1,    29,    30,    31,    -1,    33,
        !           443:     34,    35,    36,    37,    13,    14,    -1,    -1,    -1,    -1,
        !           444:     19,    20,    -1,    -1,    -1,    -1,    25,    -1,    -1,    -1,
        !           445:     29,    30,    31,    -1,    33,    34,    35,    36,    37,    29,
        !           446:     30,    31,    -1,    33,    34,    35,    36,    37,    30,    31,
        !           447:     -1,    33,    34,    35,    36,    37,    33,    34,    35,    36,
        !           448:     37
        !           449: };
        !           450: #define YYPURE 1
        !           451: 
        !           452: /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
        !           453: #line 3 "D:/cygwin/usr/share/bison.simple"
        !           454: /* This file comes from bison-1.28.  */
        !           455: 
        !           456: /* Skeleton output parser for bison,
        !           457:    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
        !           458: 
        !           459:    This program is free software; you can redistribute it and/or modify
        !           460:    it under the terms of the GNU General Public License as published by
        !           461:    the Free Software Foundation; either version 2, or (at your option)
        !           462:    any later version.
        !           463: 
        !           464:    This program is distributed in the hope that it will be useful,
        !           465:    but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           466:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           467:    GNU General Public License for more details.
        !           468: 
        !           469:    You should have received a copy of the GNU General Public License
        !           470:    along with this program; if not, write to the Free Software
        !           471:    Foundation, Inc., 59 Temple Place - Suite 330,
        !           472:    Boston, MA 02111-1307, USA.  */
        !           473: 
        !           474: /* As a special exception, when this file is copied by Bison into a
        !           475:    Bison output file, you may use that output file without restriction.
        !           476:    This special exception was added by the Free Software Foundation
        !           477:    in version 1.24 of Bison.  */
        !           478: 
        !           479: /* This is the parser code that is written into each bison parser
        !           480:   when the %semantic_parser declaration is not specified in the grammar.
        !           481:   It was written by Richard Stallman by simplifying the hairy parser
        !           482:   used when %semantic_parser is specified.  */
        !           483: 
        !           484: #ifndef YYSTACK_USE_ALLOCA
        !           485: #ifdef alloca
        !           486: #define YYSTACK_USE_ALLOCA
        !           487: #else /* alloca not defined */
        !           488: #ifdef __GNUC__
        !           489: #define YYSTACK_USE_ALLOCA
        !           490: #define alloca __builtin_alloca
        !           491: #else /* not GNU C.  */
        !           492: #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
        !           493: #define YYSTACK_USE_ALLOCA
        !           494: #include <alloca.h>
        !           495: #else /* not sparc */
        !           496: /* We think this test detects Watcom and Microsoft C.  */
        !           497: /* This used to test MSDOS, but that is a bad idea
        !           498:    since that symbol is in the user namespace.  */
        !           499: #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
        !           500: #if 0 /* No need for malloc.h, which pollutes the namespace;
        !           501:         instead, just don't use alloca.  */
        !           502: #include <malloc.h>
        !           503: #endif
        !           504: #else /* not MSDOS, or __TURBOC__ */
        !           505: #if defined(_AIX)
        !           506: /* I don't know what this was needed for, but it pollutes the namespace.
        !           507:    So I turned it off.   rms, 2 May 1997.  */
        !           508: /* #include <malloc.h>  */
        !           509:  #pragma alloca
        !           510: #define YYSTACK_USE_ALLOCA
        !           511: #else /* not MSDOS, or __TURBOC__, or _AIX */
        !           512: #if 0
        !           513: #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
        !           514:                 and on HPUX 10.  Eventually we can turn this on.  */
        !           515: #define YYSTACK_USE_ALLOCA
        !           516: #define alloca __builtin_alloca
        !           517: #endif /* __hpux */
        !           518: #endif
        !           519: #endif /* not _AIX */
        !           520: #endif /* not MSDOS, or __TURBOC__ */
        !           521: #endif /* not sparc */
        !           522: #endif /* not GNU C */
        !           523: #endif /* alloca not defined */
        !           524: #endif /* YYSTACK_USE_ALLOCA not defined */
        !           525: 
        !           526: #ifdef YYSTACK_USE_ALLOCA
        !           527: #define YYSTACK_ALLOC alloca
        !           528: #else
        !           529: #define YYSTACK_ALLOC malloc
        !           530: #endif
        !           531: 
        !           532: /* Note: there must be only one dollar sign in this file.
        !           533:    It is replaced by the list of actions, each action
        !           534:    as one case of the switch.  */
        !           535: 
        !           536: #define yyerrok                (yyerrstatus = 0)
        !           537: #define yyclearin      (yychar = YYEMPTY)
        !           538: #define YYEMPTY                -2
        !           539: #define YYEOF          0
        !           540: #define YYACCEPT       goto yyacceptlab
        !           541: #define YYABORT        goto yyabortlab
        !           542: #define YYERROR                goto yyerrlab1
        !           543: /* Like YYERROR except do call yyerror.
        !           544:    This remains here temporarily to ease the
        !           545:    transition to the new meaning of YYERROR, for GCC.
        !           546:    Once GCC version 2 has supplanted version 1, this can go.  */
        !           547: #define YYFAIL         goto yyerrlab
        !           548: #define YYRECOVERING()  (!!yyerrstatus)
        !           549: #define YYBACKUP(token, value) \
        !           550: do                                                             \
        !           551:   if (yychar == YYEMPTY && yylen == 1)                         \
        !           552:     { yychar = (token), yylval = (value);                      \
        !           553:       yychar1 = YYTRANSLATE (yychar);                          \
        !           554:       YYPOPSTACK;                                              \
        !           555:       goto yybackup;                                           \
        !           556:     }                                                          \
        !           557:   else                                                         \
        !           558:     { yyerror ("syntax error: cannot back up"); YYERROR; }     \
        !           559: while (0)
        !           560: 
        !           561: #define YYTERROR       1
        !           562: #define YYERRCODE      256
        !           563: 
        !           564: #ifndef YYPURE
        !           565: #define YYLEX          yylex()
        !           566: #endif
        !           567: 
        !           568: #ifdef YYPURE
        !           569: #ifdef YYLSP_NEEDED
        !           570: #ifdef YYLEX_PARAM
        !           571: #define YYLEX          yylex(&yylval, &yylloc, YYLEX_PARAM)
        !           572: #else
        !           573: #define YYLEX          yylex(&yylval, &yylloc)
        !           574: #endif
        !           575: #else /* not YYLSP_NEEDED */
        !           576: #ifdef YYLEX_PARAM
        !           577: #define YYLEX          yylex(&yylval, YYLEX_PARAM)
        !           578: #else
        !           579: #define YYLEX          yylex(&yylval)
        !           580: #endif
        !           581: #endif /* not YYLSP_NEEDED */
        !           582: #endif
        !           583: 
        !           584: /* If nonreentrant, generate the variables here */
        !           585: 
        !           586: #ifndef YYPURE
        !           587: 
        !           588: int    yychar;                 /*  the lookahead symbol                */
        !           589: YYSTYPE        yylval;                 /*  the semantic value of the           */
        !           590:                                /*  lookahead symbol                    */
        !           591: 
        !           592: #ifdef YYLSP_NEEDED
        !           593: YYLTYPE yylloc;                        /*  location data for the lookahead     */
        !           594:                                /*  symbol                              */
        !           595: #endif
        !           596: 
        !           597: int yynerrs;                   /*  number of parse errors so far       */
        !           598: #endif  /* not YYPURE */
        !           599: 
        !           600: #if YYDEBUG != 0
        !           601: int yydebug;                   /*  nonzero means print parse trace     */
        !           602: /* Since this is uninitialized, it does not stop multiple parsers
        !           603:    from coexisting.  */
        !           604: #endif
        !           605: 
        !           606: /*  YYINITDEPTH indicates the initial size of the parser's stacks      */
        !           607: 
        !           608: #ifndef        YYINITDEPTH
        !           609: #define YYINITDEPTH 200
        !           610: #endif
        !           611: 
        !           612: /*  YYMAXDEPTH is the maximum size the stacks can grow to
        !           613:     (effective only if the built-in stack extension method is used).  */
        !           614: 
        !           615: #if YYMAXDEPTH == 0
        !           616: #undef YYMAXDEPTH
        !           617: #endif
        !           618: 
        !           619: #ifndef YYMAXDEPTH
        !           620: #define YYMAXDEPTH 10000
        !           621: #endif
        !           622: 
        !           623: /* Define __yy_memcpy.  Note that the size argument
        !           624:    should be passed with type unsigned int, because that is what the non-GCC
        !           625:    definitions require.  With GCC, __builtin_memcpy takes an arg
        !           626:    of type size_t, but it can handle unsigned int.  */
        !           627: 
        !           628: #if __GNUC__ > 1               /* GNU C and GNU C++ define this.  */
        !           629: #define __yy_memcpy(TO,FROM,COUNT)     __builtin_memcpy(TO,FROM,COUNT)
        !           630: #else                          /* not GNU C or C++ */
        !           631: #ifndef __cplusplus
        !           632: 
        !           633: /* This is the most reliable way to avoid incompatibilities
        !           634:    in available built-in functions on various systems.  */
        !           635: static void
        !           636: __yy_memcpy (to, from, count)
        !           637:      char *to;
        !           638:      char *from;
        !           639:      unsigned int count;
        !           640: {
        !           641:   register char *f = from;
        !           642:   register char *t = to;
        !           643:   register int i = count;
        !           644: 
        !           645:   while (i-- > 0)
        !           646:     *t++ = *f++;
        !           647: }
        !           648: 
        !           649: #else /* __cplusplus */
        !           650: 
        !           651: /* This is the most reliable way to avoid incompatibilities
        !           652:    in available built-in functions on various systems.  */
        !           653: static void
        !           654: __yy_memcpy (char *to, char *from, unsigned int count)
        !           655: {
        !           656:   register char *t = to;
        !           657:   register char *f = from;
        !           658:   register int i = count;
        !           659: 
        !           660:   while (i-- > 0)
        !           661:     *t++ = *f++;
        !           662: }
        !           663: 
        !           664: #endif
        !           665: #endif
        !           666: 
        !           667: #line 217 "D:/cygwin/usr/share/bison.simple"
        !           668: 
        !           669: /* The user can define YYPARSE_PARAM as the name of an argument to be passed
        !           670:    into yyparse.  The argument should have type void *.
        !           671:    It should actually point to an object.
        !           672:    Grammar actions can access the variable by casting it
        !           673:    to the proper pointer type.  */
        !           674: 
        !           675: #ifdef YYPARSE_PARAM
        !           676: #ifdef __cplusplus
        !           677: #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
        !           678: #define YYPARSE_PARAM_DECL
        !           679: #else /* not __cplusplus */
        !           680: #define YYPARSE_PARAM_ARG YYPARSE_PARAM
        !           681: #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
        !           682: #endif /* not __cplusplus */
        !           683: #else /* not YYPARSE_PARAM */
        !           684: #define YYPARSE_PARAM_ARG
        !           685: #define YYPARSE_PARAM_DECL
        !           686: #endif /* not YYPARSE_PARAM */
        !           687: 
        !           688: /* Prevent warning if -Wstrict-prototypes.  */
        !           689: #ifdef __GNUC__
        !           690: #ifdef YYPARSE_PARAM
        !           691: int yyparse (void *);
        !           692: #else
        !           693: int yyparse (void);
        !           694: #endif
        !           695: #endif
        !           696: 
        !           697: int
        !           698: yyparse(YYPARSE_PARAM_ARG)
        !           699:      YYPARSE_PARAM_DECL
        !           700: {
        !           701:   register int yystate;
        !           702:   register int yyn;
        !           703:   register short *yyssp;
        !           704:   register YYSTYPE *yyvsp;
        !           705:   int yyerrstatus;     /*  number of tokens to shift before error messages enabled */
        !           706:   int yychar1 = 0;             /*  lookahead token as an internal (translated) token number */
        !           707: 
        !           708:   short        yyssa[YYINITDEPTH];     /*  the state stack                     */
        !           709:   YYSTYPE yyvsa[YYINITDEPTH];  /*  the semantic value stack            */
        !           710: 
        !           711:   short *yyss = yyssa;         /*  refer to the stacks thru separate pointers */
        !           712:   YYSTYPE *yyvs = yyvsa;       /*  to allow yyoverflow to reallocate them elsewhere */
        !           713: 
        !           714: #ifdef YYLSP_NEEDED
        !           715:   YYLTYPE yylsa[YYINITDEPTH];  /*  the location stack                  */
        !           716:   YYLTYPE *yyls = yylsa;
        !           717:   YYLTYPE *yylsp;
        !           718: 
        !           719: #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
        !           720: #else
        !           721: #define YYPOPSTACK   (yyvsp--, yyssp--)
        !           722: #endif
        !           723: 
        !           724:   int yystacksize = YYINITDEPTH;
        !           725:   int yyfree_stacks = 0;
        !           726: 
        !           727: #ifdef YYPURE
        !           728:   int yychar;
        !           729:   YYSTYPE yylval;
        !           730:   int yynerrs;
        !           731: #ifdef YYLSP_NEEDED
        !           732:   YYLTYPE yylloc;
        !           733: #endif
        !           734: #endif
        !           735: 
        !           736:   YYSTYPE yyval;               /*  the variable used to return         */
        !           737:                                /*  semantic values from the action     */
        !           738:                                /*  routines                            */
        !           739: 
        !           740:   int yylen;
        !           741: 
        !           742: #if YYDEBUG != 0
        !           743:   if (yydebug)
        !           744:     fprintf(stderr, "Starting parse\n");
        !           745: #endif
        !           746: 
        !           747:   yystate = 0;
        !           748:   yyerrstatus = 0;
        !           749:   yynerrs = 0;
        !           750:   yychar = YYEMPTY;            /* Cause a token to be read.  */
        !           751: 
        !           752:   /* Initialize stack pointers.
        !           753:      Waste one element of value and location stack
        !           754:      so that they stay on the same level as the state stack.
        !           755:      The wasted elements are never initialized.  */
        !           756: 
        !           757:   yyssp = yyss - 1;
        !           758:   yyvsp = yyvs;
        !           759: #ifdef YYLSP_NEEDED
        !           760:   yylsp = yyls;
        !           761: #endif
        !           762: 
        !           763: /* Push a new state, which is found in  yystate  .  */
        !           764: /* In all cases, when you get here, the value and location stacks
        !           765:    have just been pushed. so pushing a state here evens the stacks.  */
        !           766: yynewstate:
        !           767: 
        !           768:   *++yyssp = yystate;
        !           769: 
        !           770:   if (yyssp >= yyss + yystacksize - 1)
        !           771:     {
        !           772:       /* Give user a chance to reallocate the stack */
        !           773:       /* Use copies of these so that the &'s don't force the real ones into memory. */
        !           774:       YYSTYPE *yyvs1 = yyvs;
        !           775:       short *yyss1 = yyss;
        !           776: #ifdef YYLSP_NEEDED
        !           777:       YYLTYPE *yyls1 = yyls;
        !           778: #endif
        !           779: 
        !           780:       /* Get the current used size of the three stacks, in elements.  */
        !           781:       int size = yyssp - yyss + 1;
        !           782: 
        !           783: #ifdef yyoverflow
        !           784:       /* Each stack pointer address is followed by the size of
        !           785:         the data in use in that stack, in bytes.  */
        !           786: #ifdef YYLSP_NEEDED
        !           787:       /* This used to be a conditional around just the two extra args,
        !           788:         but that might be undefined if yyoverflow is a macro.  */
        !           789:       yyoverflow("parser stack overflow",
        !           790:                 &yyss1, size * sizeof (*yyssp),
        !           791:                 &yyvs1, size * sizeof (*yyvsp),
        !           792:                 &yyls1, size * sizeof (*yylsp),
        !           793:                 &yystacksize);
        !           794: #else
        !           795:       yyoverflow("parser stack overflow",
        !           796:                 &yyss1, size * sizeof (*yyssp),
        !           797:                 &yyvs1, size * sizeof (*yyvsp),
        !           798:                 &yystacksize);
        !           799: #endif
        !           800: 
        !           801:       yyss = yyss1; yyvs = yyvs1;
        !           802: #ifdef YYLSP_NEEDED
        !           803:       yyls = yyls1;
        !           804: #endif
        !           805: #else /* no yyoverflow */
        !           806:       /* Extend the stack our own way.  */
        !           807:       if (yystacksize >= YYMAXDEPTH)
        !           808:        {
        !           809:          yyerror("parser stack overflow");
        !           810:          if (yyfree_stacks)
        !           811:            {
        !           812:              free (yyss);
        !           813:              free (yyvs);
        !           814: #ifdef YYLSP_NEEDED
        !           815:              free (yyls);
        !           816: #endif
        !           817:            }
        !           818:          return 2;
        !           819:        }
        !           820:       yystacksize *= 2;
        !           821:       if (yystacksize > YYMAXDEPTH)
        !           822:        yystacksize = YYMAXDEPTH;
        !           823: #ifndef YYSTACK_USE_ALLOCA
        !           824:       yyfree_stacks = 1;
        !           825: #endif
        !           826:       yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
        !           827:       __yy_memcpy ((char *)yyss, (char *)yyss1,
        !           828:                   size * (unsigned int) sizeof (*yyssp));
        !           829:       yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
        !           830:       __yy_memcpy ((char *)yyvs, (char *)yyvs1,
        !           831:                   size * (unsigned int) sizeof (*yyvsp));
        !           832: #ifdef YYLSP_NEEDED
        !           833:       yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
        !           834:       __yy_memcpy ((char *)yyls, (char *)yyls1,
        !           835:                   size * (unsigned int) sizeof (*yylsp));
        !           836: #endif
        !           837: #endif /* no yyoverflow */
        !           838: 
        !           839:       yyssp = yyss + size - 1;
        !           840:       yyvsp = yyvs + size - 1;
        !           841: #ifdef YYLSP_NEEDED
        !           842:       yylsp = yyls + size - 1;
        !           843: #endif
        !           844: 
        !           845: #if YYDEBUG != 0
        !           846:       if (yydebug)
        !           847:        fprintf(stderr, "Stack size increased to %d\n", yystacksize);
        !           848: #endif
        !           849: 
        !           850:       if (yyssp >= yyss + yystacksize - 1)
        !           851:        YYABORT;
        !           852:     }
        !           853: 
        !           854: #if YYDEBUG != 0
        !           855:   if (yydebug)
        !           856:     fprintf(stderr, "Entering state %d\n", yystate);
        !           857: #endif
        !           858: 
        !           859:   goto yybackup;
        !           860:  yybackup:
        !           861: 
        !           862: /* Do appropriate processing given the current state.  */
        !           863: /* Read a lookahead token if we need one and don't already have one.  */
        !           864: /* yyresume: */
        !           865: 
        !           866:   /* First try to decide what to do without reference to lookahead token.  */
        !           867: 
        !           868:   yyn = yypact[yystate];
        !           869:   if (yyn == YYFLAG)
        !           870:     goto yydefault;
        !           871: 
        !           872:   /* Not known => get a lookahead token if don't already have one.  */
        !           873: 
        !           874:   /* yychar is either YYEMPTY or YYEOF
        !           875:      or a valid token in external form.  */
        !           876: 
        !           877:   if (yychar == YYEMPTY)
        !           878:     {
        !           879: #if YYDEBUG != 0
        !           880:       if (yydebug)
        !           881:        fprintf(stderr, "Reading a token: ");
        !           882: #endif
        !           883:       yychar = YYLEX;
        !           884:     }
        !           885: 
        !           886:   /* Convert token to internal form (in yychar1) for indexing tables with */
        !           887: 
        !           888:   if (yychar <= 0)             /* This means end of input. */
        !           889:     {
        !           890:       yychar1 = 0;
        !           891:       yychar = YYEOF;          /* Don't call YYLEX any more */
        !           892: 
        !           893: #if YYDEBUG != 0
        !           894:       if (yydebug)
        !           895:        fprintf(stderr, "Now at end of input.\n");
        !           896: #endif
        !           897:     }
        !           898:   else
        !           899:     {
        !           900:       yychar1 = YYTRANSLATE(yychar);
        !           901: 
        !           902: #if YYDEBUG != 0
        !           903:       if (yydebug)
        !           904:        {
        !           905:          fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
        !           906:          /* Give the individual parser a way to print the precise meaning
        !           907:             of a token, for further debugging info.  */
        !           908: #ifdef YYPRINT
        !           909:          YYPRINT (stderr, yychar, yylval);
        !           910: #endif
        !           911:          fprintf (stderr, ")\n");
        !           912:        }
        !           913: #endif
        !           914:     }
        !           915: 
        !           916:   yyn += yychar1;
        !           917:   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
        !           918:     goto yydefault;
        !           919: 
        !           920:   yyn = yytable[yyn];
        !           921: 
        !           922:   /* yyn is what to do for this token type in this state.
        !           923:      Negative => reduce, -yyn is rule number.
        !           924:      Positive => shift, yyn is new state.
        !           925:        New state is final state => don't bother to shift,
        !           926:        just return success.
        !           927:      0, or most negative number => error.  */
        !           928: 
        !           929:   if (yyn < 0)
        !           930:     {
        !           931:       if (yyn == YYFLAG)
        !           932:        goto yyerrlab;
        !           933:       yyn = -yyn;
        !           934:       goto yyreduce;
        !           935:     }
        !           936:   else if (yyn == 0)
        !           937:     goto yyerrlab;
        !           938: 
        !           939:   if (yyn == YYFINAL)
        !           940:     YYACCEPT;
        !           941: 
        !           942:   /* Shift the lookahead token.  */
        !           943: 
        !           944: #if YYDEBUG != 0
        !           945:   if (yydebug)
        !           946:     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
        !           947: #endif
        !           948: 
        !           949:   /* Discard the token being shifted unless it is eof.  */
        !           950:   if (yychar != YYEOF)
        !           951:     yychar = YYEMPTY;
        !           952: 
        !           953:   *++yyvsp = yylval;
        !           954: #ifdef YYLSP_NEEDED
        !           955:   *++yylsp = yylloc;
        !           956: #endif
        !           957: 
        !           958:   /* count tokens shifted since error; after three, turn off error status.  */
        !           959:   if (yyerrstatus) yyerrstatus--;
        !           960: 
        !           961:   yystate = yyn;
        !           962:   goto yynewstate;
        !           963: 
        !           964: /* Do the default action for the current state.  */
        !           965: yydefault:
        !           966: 
        !           967:   yyn = yydefact[yystate];
        !           968:   if (yyn == 0)
        !           969:     goto yyerrlab;
        !           970: 
        !           971: /* Do a reduction.  yyn is the number of a rule to reduce with.  */
        !           972: yyreduce:
        !           973:   yylen = yyr2[yyn];
        !           974:   if (yylen > 0)
        !           975:     yyval = yyvsp[1-yylen]; /* implement default value of the action */
        !           976: 
        !           977: #if YYDEBUG != 0
        !           978:   if (yydebug)
        !           979:     {
        !           980:       int i;
        !           981: 
        !           982:       fprintf (stderr, "Reducing via rule %d (line %d), ",
        !           983:               yyn, yyrline[yyn]);
        !           984: 
        !           985:       /* Print the symbols being reduced, and their result.  */
        !           986:       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
        !           987:        fprintf (stderr, "%s ", yytname[yyrhs[i]]);
        !           988:       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
        !           989:     }
        !           990: #endif
        !           991: 
        !           992: 
        !           993:   switch (yyn) {
        !           994: 
        !           995: case 1:
        !           996: #line 107 "compile.y"
        !           997: {
        !           998:        Method& method=*NEW Method(POOL, 
        !           999:                *main_method_name, 
        !          1000:                Method::CT_ANY,
        !          1001:                0, 0, /*min, max numbered_params_count*/
        !          1002:                0/*param_names*/, 0/*local_names*/, 
        !          1003:                yyvsp[0]/*parser_code*/, 0/*native_code*/);
        !          1004:        PC.cclass->add_method(*main_method_name, method);
        !          1005: ;
        !          1006:     break;}
        !          1007: case 8:
        !          1008: #line 124 "compile.y"
        !          1009: {
        !          1010:        const String& command=*LA2S(yyvsp[-2]);
        !          1011:        YYSTYPE strings_code=yyvsp[0];
        !          1012:        if(strings_code->size()<1*2) {
        !          1013:                strcpy(PC.error, "@");
        !          1014:                strcat(PC.error, command.cstr());
        !          1015:                strcat(PC.error, " is empty");
        !          1016:                YYERROR;
        !          1017:        }
        !          1018:        if(command==CLASS_NAME) {
        !          1019:                if(PC.cclass->base()) { // already changed from default?
        !          1020:                        strcpy(PC.error, "class already have a name '");
        !          1021:                        strncat(PC.error, PC.cclass->name().cstr(), 100);
        !          1022:                        strcat(PC.error, "'");
        !          1023:                        YYERROR;
        !          1024:                }
        !          1025:                if(strings_code->size()==1*2) {
        !          1026:                        // new class' name
        !          1027:                        const String *name=LA2S(strings_code);
        !          1028:                        // creating the class
        !          1029:                        PC.cclass=NEW VClass(POOL);
        !          1030:                        PC.cclass->set_name(*name);
        !          1031:                        // append to request's classes
        !          1032:                        PC.request->classes().put(*name, PC.cclass);
        !          1033:                } else {
        !          1034:                        strcpy(PC.error, "@"CLASS_NAME" must contain sole name");
        !          1035:                        YYERROR;
        !          1036:                }
        !          1037:        } else if(command==USE_CONTROL_METHOD_NAME) {
        !          1038:                for(int i=0; i<strings_code->size(); i+=2) 
        !          1039:                        PC.request->use_file(
        !          1040:                        PC.request->absolute(*LA2S(strings_code, i)));
        !          1041:        } else if(command==BASE_NAME) {
        !          1042:                if(PC.cclass->base()) { // already changed from default?
        !          1043:                        strcpy(PC.error, "class already have a base '");
        !          1044:                        strncat(PC.error, PC.cclass->base()->name().cstr(), 100);
        !          1045:                        strcat(PC.error, "'");
        !          1046:                        YYERROR;
        !          1047:                }
        !          1048:                if(strings_code->size()==1*2) {
        !          1049:                        const String& base_name=*LA2S(strings_code);
        !          1050:                        VClass *base=static_cast<VClass *>(
        !          1051:                                PC.request->classes().get(base_name));
        !          1052:                        if(!base) {
        !          1053:                                strcpy(PC.error, base_name.cstr());
        !          1054:                                strcat(PC.error, ": undefined class in @"BASE_NAME);
        !          1055:                                YYERROR;
        !          1056:                        }
        !          1057:                        // @CLASS == @BASE sanity check
        !          1058:                        if(PC.cclass==base) {
        !          1059:                                strcpy(PC.error, "@"CLASS_NAME" equals @"BASE_NAME);
        !          1060:                                YYERROR;
        !          1061:                        }
        !          1062:                        PC.cclass->set_base(*base);
        !          1063:                } else {
        !          1064:                        strcpy(PC.error, "@"BASE_NAME" must contain sole name");
        !          1065:                        YYERROR;
        !          1066:                }
        !          1067:        } else {
        !          1068:                strcpy(PC.error, "'");
        !          1069:                strncat(PC.error, command.cstr(), MAX_STRING/2);
        !          1070:                strcat(PC.error, "' invalid special name. valid names are "
        !          1071:                        "'"CLASS_NAME"', '"USE_CONTROL_METHOD_NAME"' and '"BASE_NAME"'");
        !          1072:                YYERROR;
        !          1073:        }
        !          1074: ;
        !          1075:     break;}
        !          1076: case 12:
        !          1077: #line 191 "compile.y"
        !          1078: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1079:     break;}
        !          1080: case 16:
        !          1081: #line 196 "compile.y"
        !          1082: {
        !          1083:        const String *name=LA2S(yyvsp[-5]);
        !          1084: 
        !          1085:        YYSTYPE params_names_code=yyvsp[-4];
        !          1086:        Array *params_names=0;
        !          1087:        if(int size=params_names_code->size()) {
        !          1088:                params_names=NEW Array(POOL);
        !          1089:                for(int i=0; i<size; i+=2)
        !          1090:                        *params_names+=LA2S(params_names_code, i);
        !          1091:        }
        !          1092: 
        !          1093:        YYSTYPE locals_names_code=yyvsp[-3];
        !          1094:        Array *locals_names=0;
        !          1095:        if(int size=locals_names_code->size()) {
        !          1096:                locals_names=NEW Array(POOL);
        !          1097:                for(int i=0; i<size; i+=2)
        !          1098:                        *locals_names+=LA2S(locals_names_code, i);
        !          1099:        }
        !          1100: 
        !          1101:        Method& method=*NEW Method(POOL, 
        !          1102:                *name, 
        !          1103:                Method::CT_ANY,
        !          1104:                0, 0/*min,max numbered_params_count*/, 
        !          1105:                params_names, locals_names, 
        !          1106:                yyvsp[0], 0);
        !          1107:        PC.cclass->add_method(*name, method);
        !          1108: ;
        !          1109:     break;}
        !          1110: case 19:
        !          1111: #line 225 "compile.y"
        !          1112: {yyval=yyvsp[-1];
        !          1113:     break;}
        !          1114: case 23:
        !          1115: #line 227 "compile.y"
        !          1116: { yyval=yyvsp[-2]; P(yyval, yyvsp[0]) ;
        !          1117:     break;}
        !          1118: case 29:
        !          1119: #line 235 "compile.y"
        !          1120: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1121:     break;}
        !          1122: case 35:
        !          1123: #line 241 "compile.y"
        !          1124: {
        !          1125:        yyval=yyvsp[0]; /* stack: resulting value */
        !          1126:        O(yyval, OP_WRITE_VALUE); /* value=pop; wcontext.write(value) */
        !          1127: ;
        !          1128:     break;}
        !          1129: case 36:
        !          1130: #line 245 "compile.y"
        !          1131: { yyval=yyvsp[0] ;
        !          1132:     break;}
        !          1133: case 39:
        !          1134: #line 247 "compile.y"
        !          1135: { yyval=yyvsp[-1] ;
        !          1136:     break;}
        !          1137: case 42:
        !          1138: #line 251 "compile.y"
        !          1139: {
        !          1140:        yyval=N(POOL); 
        !          1141:        Array *diving_code=yyvsp[0];
        !          1142:        const String *first_name=LA2S(diving_code);
        !          1143:        if(first_name && *first_name==SELF_ELEMENT_NAME) {
        !          1144:                O(yyval, OP_WITH_SELF); /* stack: starting context */
        !          1145:                P(yyval, diving_code, 
        !          1146:                        /* skip over... */
        !          1147:                        diving_code->size()>2?3/*OP_+string+get_element*/:2/*OP_+string*/);
        !          1148:        } else {
        !          1149:                O(yyval, OP_WITH_READ); /* stack: starting context */
        !          1150:                P(yyval, diving_code);
        !          1151:        }
        !          1152:        /* diving code; stack: current context */
        !          1153: ;
        !          1154:     break;}
        !          1155: case 43:
        !          1156: #line 266 "compile.y"
        !          1157: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1158:     break;}
        !          1159: case 45:
        !          1160: #line 267 "compile.y"
        !          1161: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1162:     break;}
        !          1163: case 46:
        !          1164: #line 271 "compile.y"
        !          1165: {
        !          1166:        yyval=yyvsp[-1]; /* stack: context,name */
        !          1167:        P(yyval, yyvsp[0]); /* stack: context,name,constructor_value */
        !          1168: ;
        !          1169:     break;}
        !          1170: case 50:
        !          1171: #line 279 "compile.y"
        !          1172: {
        !          1173:        yyval=N(POOL);
        !          1174:        Array *diving_code=yyvsp[0];
        !          1175:        const String *first_name=LA2S(diving_code);
        !          1176:        if(first_name && *first_name==SELF_ELEMENT_NAME) {
        !          1177:                O(yyval, OP_WITH_SELF); /* stack: starting context */
        !          1178:                P(yyval, diving_code, 
        !          1179:                        /* skip over... */
        !          1180:                        diving_code->size()>2?3/*OP_+string+get_element*/:2/*OP_+string*/);
        !          1181:        } else {
        !          1182:                O(yyval, OP_WITH_ROOT); /* stack: starting context */
        !          1183:                P(yyval, diving_code);
        !          1184:        }
        !          1185:        /* diving code; stack: current context */
        !          1186: ;
        !          1187:     break;}
        !          1188: case 51:
        !          1189: #line 294 "compile.y"
        !          1190: {
        !          1191:        yyval=N(POOL); 
        !          1192:        O(yyval, OP_WITH_WRITE); /* stack: starting context */
        !          1193:        P(yyval, yyvsp[0]); /* diving code; stack: context,name */
        !          1194: ;
        !          1195:     break;}
        !          1196: case 52:
        !          1197: #line 299 "compile.y"
        !          1198: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1199:     break;}
        !          1200: case 56:
        !          1201: #line 306 "compile.y"
        !          1202: {
        !          1203:        // stack: context, name
        !          1204:        yyval=yyvsp[-1]; // stack: context, name, value
        !          1205:        O(yyval, OP_CONSTRUCT_VALUE); /* value=pop; name=pop; context=pop; construct(context,name,value) */
        !          1206: ;
        !          1207:     break;}
        !          1208: case 57:
        !          1209: #line 312 "compile.y"
        !          1210: { 
        !          1211:        // stack: context, name
        !          1212:        yyval=yyvsp[-1]; // stack: context, name, value
        !          1213:        O(yyval, OP_CONSTRUCT_EXPR); /* value=pop; name=pop; context=pop; construct(context,name,value) */
        !          1214: ;
        !          1215:     break;}
        !          1216: case 58:
        !          1217: #line 318 "compile.y"
        !          1218: {
        !          1219:        // stack: context, name
        !          1220:        yyval=N(POOL); 
        !          1221:        CCA(yyval, yyvsp[-1]); /* code=pop; name=pop; context=pop; construct(context,name,junction(code)) */
        !          1222: ;
        !          1223:     break;}
        !          1224: case 62:
        !          1225: #line 329 "compile.y"
        !          1226: {
        !          1227:        yyval=N(POOL); 
        !          1228:        O(yyval, OP_CREATE_EWPOOL); /* stack: empty write context */
        !          1229:        P(yyval, yyvsp[0]); /* some code that writes to that context */
        !          1230:        O(yyval, OP_REDUCE_EWPOOL); /* context=pop; stack: context.value() */
        !          1231: ;
        !          1232:     break;}
        !          1233: case 65:
        !          1234: #line 336 "compile.y"
        !          1235: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1236:     break;}
        !          1237: case 66:
        !          1238: #line 340 "compile.y"
        !          1239: {
        !          1240:        yyval=yyvsp[0]; /* stack: value */
        !          1241:        O(yyval, OP_WRITE_VALUE); /* value=pop; wcontext.write(value) */
        !          1242: ;
        !          1243:     break;}
        !          1244: case 67:
        !          1245: #line 344 "compile.y"
        !          1246: { PC.object_constructor_allowed=true ;
        !          1247:     break;}
        !          1248: case 68:
        !          1249: #line 345 "compile.y"
        !          1250: { PC.object_constructor_allowed=false ;
        !          1251:     break;}
        !          1252: case 69:
        !          1253: #line 346 "compile.y"
        !          1254: { /* ^field.$method{vasya} */
        !          1255:        yyval=yyvsp[-3]; /* with_xxx,diving code; stack: context,method_junction */
        !          1256:        O(yyval, OP_GET_METHOD_FRAME); /* stack: context,method_frame */
        !          1257: 
        !          1258:        YYSTYPE params_code=yyvsp[-1];
        !          1259:        if(params_code->size()==3) // probably [] case. [OP_VALUE + Void + STORE_PARAM]
        !          1260:                if(Value *value=LA2V(params_code)) // it is OP_VALUE + value?
        !          1261:                        if(!value->is_defined()) // value is VVoid?
        !          1262:                                params_code=0; // ^zzz[] case. don't append lone empty param.
        !          1263:        if(params_code)
        !          1264:                P(yyval, params_code); // filling method_frame.store_params
        !          1265:        O(yyval, OP_CALL); // method_frame=pop; ncontext=pop; call(ncontext,method_frame) stack: value
        !          1266: ;
        !          1267:     break;}
        !          1268: case 72:
        !          1269: #line 362 "compile.y"
        !          1270: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1271:     break;}
        !          1272: case 76:
        !          1273: #line 368 "compile.y"
        !          1274: {yyval=yyvsp[-1];
        !          1275:     break;}
        !          1276: case 77:
        !          1277: #line 369 "compile.y"
        !          1278: {yyval=yyvsp[-1];
        !          1279:     break;}
        !          1280: case 78:
        !          1281: #line 370 "compile.y"
        !          1282: {yyval=yyvsp[-1];
        !          1283:     break;}
        !          1284: case 80:
        !          1285: #line 373 "compile.y"
        !          1286: { yyval=yyvsp[-2]; P(yyval, yyvsp[0]) ;
        !          1287:     break;}
        !          1288: case 82:
        !          1289: #line 377 "compile.y"
        !          1290: { yyval=yyvsp[-2]; P(yyval, yyvsp[0]) ;
        !          1291:     break;}
        !          1292: case 84:
        !          1293: #line 381 "compile.y"
        !          1294: { yyval=yyvsp[-2]; P(yyval, yyvsp[0]) ;
        !          1295:     break;}
        !          1296: case 85:
        !          1297: #line 383 "compile.y"
        !          1298: {
        !          1299:        yyval=yyvsp[0];
        !          1300:        O(yyval, OP_STORE_PARAM);
        !          1301: ;
        !          1302:     break;}
        !          1303: case 86:
        !          1304: #line 387 "compile.y"
        !          1305: {
        !          1306:        yyval=N(POOL); 
        !          1307:        PEA(yyval, yyvsp[0]);
        !          1308: ;
        !          1309:     break;}
        !          1310: case 87:
        !          1311: #line 391 "compile.y"
        !          1312: {
        !          1313:        yyval=N(POOL); 
        !          1314:        PCA(yyval, yyvsp[0]);
        !          1315: ;
        !          1316:     break;}
        !          1317: case 91:
        !          1318: #line 400 "compile.y"
        !          1319: {
        !          1320:        yyval=yyvsp[0];
        !          1321:        O(yyval, OP_WRITE_EXPR_RESULT);
        !          1322: ;
        !          1323:     break;}
        !          1324: case 93:
        !          1325: #line 407 "compile.y"
        !          1326: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1327:     break;}
        !          1328: case 95:
        !          1329: #line 409 "compile.y"
        !          1330: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1331:     break;}
        !          1332: case 97:
        !          1333: #line 411 "compile.y"
        !          1334: {
        !          1335:        /* stack: context */
        !          1336:        yyval=yyvsp[0]; /* stack: context,name */
        !          1337:        O(yyval, OP_GET_ELEMENT); /* name=pop; context=pop; stack: context.get_element(name) */
        !          1338: ;
        !          1339:     break;}
        !          1340: case 98:
        !          1341: #line 416 "compile.y"
        !          1342: {
        !          1343:        /* stack: context */
        !          1344:        yyval=yyvsp[0]; /* stack: context,name */
        !          1345:        O(yyval, OP_GET_ELEMENT); /* name=pop; context=pop; stack: context.get_element(name) */
        !          1346: ;
        !          1347:     break;}
        !          1348: case 103:
        !          1349: #line 428 "compile.y"
        !          1350: {
        !          1351:        yyval=yyvsp[0];
        !          1352:        O(yyval, OP_GET_ELEMENT);
        !          1353: ;
        !          1354:     break;}
        !          1355: case 104:
        !          1356: #line 432 "compile.y"
        !          1357: {
        !          1358:        yyval=N(POOL); 
        !          1359:        O(yyval, OP_CREATE_EWPOOL);
        !          1360:        P(yyval, yyvsp[-1]);
        !          1361:        O(yyval, OP_WRITE_VALUE);
        !          1362:        P(yyval, yyvsp[0]);
        !          1363:        O(yyval, OP_REDUCE_EWPOOL);
        !          1364: ;
        !          1365:     break;}
        !          1366: case 105:
        !          1367: #line 440 "compile.y"
        !          1368: {
        !          1369:        yyval=N(POOL); 
        !          1370:        O(yyval, OP_WITH_READ);
        !          1371:        P(yyval, yyvsp[0]);
        !          1372: ;
        !          1373:     break;}
        !          1374: case 107:
        !          1375: #line 445 "compile.y"
        !          1376: { yyval=yyvsp[-1]; P(yyval, yyvsp[0]) ;
        !          1377:     break;}
        !          1378: case 108:
        !          1379: #line 446 "compile.y"
        !          1380: {
        !          1381:        yyval=yyvsp[0];
        !          1382:        O(yyval, OP_GET_ELEMENT__WRITE);
        !          1383: ;
        !          1384:     break;}
        !          1385: case 111:
        !          1386: #line 455 "compile.y"
        !          1387: {
        !          1388:        yyval=yyvsp[-1]; // stack: class name string
        !          1389:        O(yyval, OP_GET_CLASS);
        !          1390: ;
        !          1391:     break;}
        !          1392: case 112:
        !          1393: #line 459 "compile.y"
        !          1394: {
        !          1395:        yyval=yyvsp[-1];
        !          1396:        if(!PC.object_constructor_allowed) {
        !          1397:                strcpy(PC.error, ":: not allowed here");
        !          1398:                YYERROR;
        !          1399:        }
        !          1400:        O(yyval, OP_PREPARE_TO_CONSTRUCT_OBJECT);
        !          1401: ;
        !          1402:     break;}
        !          1403: case 113:
        !          1404: #line 471 "compile.y"
        !          1405: {
        !          1406:        if((yyval=yyvsp[0])->size()==2) // only one string literal in there?
        !          1407:                change_string_literal_to_double_literal(yyval); // make that string literal Double
        !          1408: ;
        !          1409:     break;}
        !          1410: case 117:
        !          1411: #line 479 "compile.y"
        !          1412: { yyval = yyvsp[-1]; ;
        !          1413:     break;}
        !          1414: case 118:
        !          1415: #line 480 "compile.y"
        !          1416: { yyval = yyvsp[-1]; ;
        !          1417:     break;}
        !          1418: case 119:
        !          1419: #line 481 "compile.y"
        !          1420: { yyval = yyvsp[-1]; ;
        !          1421:     break;}
        !          1422: case 120:
        !          1423: #line 483 "compile.y"
        !          1424: { yyval=yyvsp[0];  O(yyval, OP_NEG) ;
        !          1425:     break;}
        !          1426: case 121:
        !          1427: #line 484 "compile.y"
        !          1428: { yyval=yyvsp[0];       O(yyval, OP_INV) ;
        !          1429:     break;}
        !          1430: case 122:
        !          1431: #line 485 "compile.y"
        !          1432: { yyval=yyvsp[0];  O(yyval, OP_NOT) ;
        !          1433:     break;}
        !          1434: case 123:
        !          1435: #line 486 "compile.y"
        !          1436: { yyval=yyvsp[0];  O(yyval, OP_DEF) ;
        !          1437:     break;}
        !          1438: case 124:
        !          1439: #line 487 "compile.y"
        !          1440: { yyval=yyvsp[0];  O(yyval, OP_IN) ;
        !          1441:     break;}
        !          1442: case 125:
        !          1443: #line 488 "compile.y"
        !          1444: { yyval=yyvsp[0];  O(yyval, OP_FEXISTS) ;
        !          1445:     break;}
        !          1446: case 126:
        !          1447: #line 489 "compile.y"
        !          1448: { yyval=yyvsp[0];  O(yyval, OP_DEXISTS) ;
        !          1449:     break;}
        !          1450: case 127:
        !          1451: #line 491 "compile.y"
        !          1452: {      yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_SUB) ;
        !          1453:     break;}
        !          1454: case 128:
        !          1455: #line 492 "compile.y"
        !          1456: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_ADD) ;
        !          1457:     break;}
        !          1458: case 129:
        !          1459: #line 493 "compile.y"
        !          1460: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_MUL) ;
        !          1461:     break;}
        !          1462: case 130:
        !          1463: #line 494 "compile.y"
        !          1464: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_DIV) ;
        !          1465:     break;}
        !          1466: case 131:
        !          1467: #line 495 "compile.y"
        !          1468: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_MOD) ;
        !          1469:     break;}
        !          1470: case 132:
        !          1471: #line 496 "compile.y"
        !          1472: { yyval=yyvsp[-2];     P(yyval, yyvsp[0]);  O(yyval, OP_BIN_AND) ;
        !          1473:     break;}
        !          1474: case 133:
        !          1475: #line 497 "compile.y"
        !          1476: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_BIN_OR) ;
        !          1477:     break;}
        !          1478: case 134:
        !          1479: #line 498 "compile.y"
        !          1480: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_BIN_XOR) ;
        !          1481:     break;}
        !          1482: case 135:
        !          1483: #line 499 "compile.y"
        !          1484: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_LOG_AND) ;
        !          1485:     break;}
        !          1486: case 136:
        !          1487: #line 500 "compile.y"
        !          1488: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_LOG_OR) ;
        !          1489:     break;}
        !          1490: case 137:
        !          1491: #line 501 "compile.y"
        !          1492: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_LOG_XOR) ;
        !          1493:     break;}
        !          1494: case 138:
        !          1495: #line 502 "compile.y"
        !          1496: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_NUM_LT) ;
        !          1497:     break;}
        !          1498: case 139:
        !          1499: #line 503 "compile.y"
        !          1500: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_NUM_GT) ;
        !          1501:     break;}
        !          1502: case 140:
        !          1503: #line 504 "compile.y"
        !          1504: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_NUM_LE) ;
        !          1505:     break;}
        !          1506: case 141:
        !          1507: #line 505 "compile.y"
        !          1508: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_NUM_GE) ;
        !          1509:     break;}
        !          1510: case 142:
        !          1511: #line 506 "compile.y"
        !          1512: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_NUM_EQ) ;
        !          1513:     break;}
        !          1514: case 143:
        !          1515: #line 507 "compile.y"
        !          1516: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_NUM_NE) ;
        !          1517:     break;}
        !          1518: case 144:
        !          1519: #line 508 "compile.y"
        !          1520: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_STR_LT) ;
        !          1521:     break;}
        !          1522: case 145:
        !          1523: #line 509 "compile.y"
        !          1524: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_STR_GT) ;
        !          1525:     break;}
        !          1526: case 146:
        !          1527: #line 510 "compile.y"
        !          1528: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_STR_LE) ;
        !          1529:     break;}
        !          1530: case 147:
        !          1531: #line 511 "compile.y"
        !          1532: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_STR_GE) ;
        !          1533:     break;}
        !          1534: case 148:
        !          1535: #line 512 "compile.y"
        !          1536: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_STR_EQ) ;
        !          1537:     break;}
        !          1538: case 149:
        !          1539: #line 513 "compile.y"
        !          1540: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_STR_NE) ;
        !          1541:     break;}
        !          1542: case 150:
        !          1543: #line 514 "compile.y"
        !          1544: { yyval=yyvsp[-2];  P(yyval, yyvsp[0]);  O(yyval, OP_IS) ;
        !          1545:     break;}
        !          1546: case 151:
        !          1547: #line 517 "compile.y"
        !          1548: {
        !          1549:        yyval=N(POOL);
        !          1550:        O(yyval, OP_CREATE_SWPOOL); /* stack: empty write context */
        !          1551:        P(yyval, yyvsp[0]); /* some code that writes to that context */
        !          1552:        O(yyval, OP_REDUCE_SWPOOL); /* context=pop; stack: context.get_string() */
        !          1553: ;
        !          1554:     break;}
        !          1555: case 152:
        !          1556: #line 526 "compile.y"
        !          1557: {
        !          1558:        // optimized from OP_STRING+OP_WRITE_VALUE to OP_STRING__WRITE
        !          1559:        change_string_literal_to_write_string_literal(yyval=yyvsp[0])
        !          1560: ;
        !          1561:     break;}
        !          1562: case 153:
        !          1563: #line 531 "compile.y"
        !          1564: { yyval=VL(NEW VVoid(POOL)) ;
        !          1565:     break;}
        !          1566: case 154:
        !          1567: #line 532 "compile.y"
        !          1568: { yyval=N(POOL) ;
        !          1569:     break;}
        !          1570: }
        !          1571:    /* the action file gets copied in in place of this dollarsign */
        !          1572: #line 543 "D:/cygwin/usr/share/bison.simple"
        !          1573: 
        !          1574:   yyvsp -= yylen;
        !          1575:   yyssp -= yylen;
        !          1576: #ifdef YYLSP_NEEDED
        !          1577:   yylsp -= yylen;
        !          1578: #endif
        !          1579: 
        !          1580: #if YYDEBUG != 0
        !          1581:   if (yydebug)
        !          1582:     {
        !          1583:       short *ssp1 = yyss - 1;
        !          1584:       fprintf (stderr, "state stack now");
        !          1585:       while (ssp1 != yyssp)
        !          1586:        fprintf (stderr, " %d", *++ssp1);
        !          1587:       fprintf (stderr, "\n");
        !          1588:     }
        !          1589: #endif
        !          1590: 
        !          1591:   *++yyvsp = yyval;
        !          1592: 
        !          1593: #ifdef YYLSP_NEEDED
        !          1594:   yylsp++;
        !          1595:   if (yylen == 0)
        !          1596:     {
        !          1597:       yylsp->first_line = yylloc.first_line;
        !          1598:       yylsp->first_column = yylloc.first_column;
        !          1599:       yylsp->last_line = (yylsp-1)->last_line;
        !          1600:       yylsp->last_column = (yylsp-1)->last_column;
        !          1601:       yylsp->text = 0;
        !          1602:     }
        !          1603:   else
        !          1604:     {
        !          1605:       yylsp->last_line = (yylsp+yylen-1)->last_line;
        !          1606:       yylsp->last_column = (yylsp+yylen-1)->last_column;
        !          1607:     }
        !          1608: #endif
        !          1609: 
        !          1610:   /* Now "shift" the result of the reduction.
        !          1611:      Determine what state that goes to,
        !          1612:      based on the state we popped back to
        !          1613:      and the rule number reduced by.  */
        !          1614: 
        !          1615:   yyn = yyr1[yyn];
        !          1616: 
        !          1617:   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
        !          1618:   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
        !          1619:     yystate = yytable[yystate];
        !          1620:   else
        !          1621:     yystate = yydefgoto[yyn - YYNTBASE];
        !          1622: 
        !          1623:   goto yynewstate;
        !          1624: 
        !          1625: yyerrlab:   /* here on detecting error */
        !          1626: 
        !          1627:   if (! yyerrstatus)
        !          1628:     /* If not already recovering from an error, report this error.  */
        !          1629:     {
        !          1630:       ++yynerrs;
        !          1631: 
        !          1632: #ifdef YYERROR_VERBOSE
        !          1633:       yyn = yypact[yystate];
        !          1634: 
        !          1635:       if (yyn > YYFLAG && yyn < YYLAST)
        !          1636:        {
        !          1637:          int size = 0;
        !          1638:          char *msg;
        !          1639:          int x, count;
        !          1640: 
        !          1641:          count = 0;
        !          1642:          /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
        !          1643:          for (x = (yyn < 0 ? -yyn : 0);
        !          1644:               x < (sizeof(yytname) / sizeof(char *)); x++)
        !          1645:            if (yycheck[x + yyn] == x)
        !          1646:              size += strlen(yytname[x]) + 15, count++;
        !          1647:          msg = (char *) malloc(size + 15);
        !          1648:          if (msg != 0)
        !          1649:            {
        !          1650:              strcpy(msg, "parse error");
        !          1651: 
        !          1652:              if (count < 5)
        !          1653:                {
        !          1654:                  count = 0;
        !          1655:                  for (x = (yyn < 0 ? -yyn : 0);
        !          1656:                       x < (sizeof(yytname) / sizeof(char *)); x++)
        !          1657:                    if (yycheck[x + yyn] == x)
        !          1658:                      {
        !          1659:                        strcat(msg, count == 0 ? ", expecting `" : " or `");
        !          1660:                        strcat(msg, yytname[x]);
        !          1661:                        strcat(msg, "'");
        !          1662:                        count++;
        !          1663:                      }
        !          1664:                }
        !          1665:              yyerror(msg);
        !          1666:              free(msg);
        !          1667:            }
        !          1668:          else
        !          1669:            yyerror ("parse error; also virtual memory exceeded");
        !          1670:        }
        !          1671:       else
        !          1672: #endif /* YYERROR_VERBOSE */
        !          1673:        yyerror("parse error");
        !          1674:     }
        !          1675: 
        !          1676:   goto yyerrlab1;
        !          1677: yyerrlab1:   /* here on error raised explicitly by an action */
        !          1678: 
        !          1679:   if (yyerrstatus == 3)
        !          1680:     {
        !          1681:       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
        !          1682: 
        !          1683:       /* return failure if at end of input */
        !          1684:       if (yychar == YYEOF)
        !          1685:        YYABORT;
        !          1686: 
        !          1687: #if YYDEBUG != 0
        !          1688:       if (yydebug)
        !          1689:        fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
        !          1690: #endif
        !          1691: 
        !          1692:       yychar = YYEMPTY;
        !          1693:     }
        !          1694: 
        !          1695:   /* Else will try to reuse lookahead token
        !          1696:      after shifting the error token.  */
        !          1697: 
        !          1698:   yyerrstatus = 3;             /* Each real token shifted decrements this */
        !          1699: 
        !          1700:   goto yyerrhandle;
        !          1701: 
        !          1702: yyerrdefault:  /* current state does not do anything special for the error token. */
        !          1703: 
        !          1704: #if 0
        !          1705:   /* This is wrong; only states that explicitly want error tokens
        !          1706:      should shift them.  */
        !          1707:   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
        !          1708:   if (yyn) goto yydefault;
        !          1709: #endif
        !          1710: 
        !          1711: yyerrpop:   /* pop the current state because it cannot handle the error token */
        !          1712: 
        !          1713:   if (yyssp == yyss) YYABORT;
        !          1714:   yyvsp--;
        !          1715:   yystate = *--yyssp;
        !          1716: #ifdef YYLSP_NEEDED
        !          1717:   yylsp--;
        !          1718: #endif
        !          1719: 
        !          1720: #if YYDEBUG != 0
        !          1721:   if (yydebug)
        !          1722:     {
        !          1723:       short *ssp1 = yyss - 1;
        !          1724:       fprintf (stderr, "Error: state stack now");
        !          1725:       while (ssp1 != yyssp)
        !          1726:        fprintf (stderr, " %d", *++ssp1);
        !          1727:       fprintf (stderr, "\n");
        !          1728:     }
        !          1729: #endif
        !          1730: 
        !          1731: yyerrhandle:
        !          1732: 
        !          1733:   yyn = yypact[yystate];
        !          1734:   if (yyn == YYFLAG)
        !          1735:     goto yyerrdefault;
        !          1736: 
        !          1737:   yyn += YYTERROR;
        !          1738:   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
        !          1739:     goto yyerrdefault;
        !          1740: 
        !          1741:   yyn = yytable[yyn];
        !          1742:   if (yyn < 0)
        !          1743:     {
        !          1744:       if (yyn == YYFLAG)
        !          1745:        goto yyerrpop;
        !          1746:       yyn = -yyn;
        !          1747:       goto yyreduce;
        !          1748:     }
        !          1749:   else if (yyn == 0)
        !          1750:     goto yyerrpop;
        !          1751: 
        !          1752:   if (yyn == YYFINAL)
        !          1753:     YYACCEPT;
        !          1754: 
        !          1755: #if YYDEBUG != 0
        !          1756:   if (yydebug)
        !          1757:     fprintf(stderr, "Shifting error token, ");
        !          1758: #endif
        !          1759: 
        !          1760:   *++yyvsp = yylval;
        !          1761: #ifdef YYLSP_NEEDED
        !          1762:   *++yylsp = yylloc;
        !          1763: #endif
        !          1764: 
        !          1765:   yystate = yyn;
        !          1766:   goto yynewstate;
        !          1767: 
        !          1768:  yyacceptlab:
        !          1769:   /* YYACCEPT comes here.  */
        !          1770:   if (yyfree_stacks)
        !          1771:     {
        !          1772:       free (yyss);
        !          1773:       free (yyvs);
        !          1774: #ifdef YYLSP_NEEDED
        !          1775:       free (yyls);
        !          1776: #endif
        !          1777:     }
        !          1778:   return 0;
        !          1779: 
        !          1780:  yyabortlab:
        !          1781:   /* YYABORT comes here.  */
        !          1782:   if (yyfree_stacks)
        !          1783:     {
        !          1784:       free (yyss);
        !          1785:       free (yyvs);
        !          1786: #ifdef YYLSP_NEEDED
        !          1787:       free (yyls);
        !          1788: #endif
        !          1789:     }
        !          1790:   return 1;
        !          1791: }
        !          1792: #line 534 "compile.y"
        !          1793: 
        !          1794: #endif
        !          1795: 
        !          1796: /*
        !          1797:        000$111(2222)00 
        !          1798:                000$111{3333}00
        !          1799:        $,^: push,=0
        !          1800:        1:( { break=pop
        !          1801:        2:( )  pop
        !          1802:        3:{ }  pop
        !          1803: 
        !          1804:        000^111(2222)4444{33333}4000
        !          1805:        $,^: push,=0
        !          1806:        1:( { break=pop
        !          1807:        2:( )=4
        !          1808:        3:{ }=4
        !          1809:                4:[^({]=pop
        !          1810: */
        !          1811: 
        !          1812: static int yylex(YYSTYPE *lvalp, void *pc) {
        !          1813:        #define lexical_brackets_nestage PC.brackets_nestages[PC.sp]
        !          1814:        #define RC {result=c; goto break2; }
        !          1815: 
        !          1816:     register int c;
        !          1817:     int result;
        !          1818:        
        !          1819:        if(PC.pending_state) {
        !          1820:                result=PC.pending_state;
        !          1821:                PC.pending_state=0;
        !          1822:                return result;
        !          1823:        }
        !          1824:        
        !          1825:        const char *begin=PC.source;
        !          1826:        const char *end;
        !          1827:        int begin_line=PC.line;
        !          1828:        int skip_analized=0;
        !          1829:        while(true) {
        !          1830:                c=*(end=(PC.source++));
        !          1831: 
        !          1832:                if(c=='\n') {
        !          1833:                        PC.line++;
        !          1834:                        PC.col=0;
        !          1835:                } else
        !          1836:                        PC.col++;
        !          1837: 
        !          1838:                if(c=='^' && PC.ls!=LS_COMMENT && PC.ls!=LS_DEF_COMMENT) 
        !          1839:                        switch(*PC.source) {
        !          1840:                        // escaping: ^^ & co
        !          1841:                        case '^': case '$': case ';':
        !          1842:                        case '(': case ')':
        !          1843:                        case '[': case ']':
        !          1844:                        case '{': case '}':
        !          1845:                        case '"': 
        !          1846:                                if(end!=begin) {
        !          1847:                                        // append piece till ^
        !          1848:                                        PC.string->APPEND_CLEAN(begin, end-begin, PC.file, begin_line);
        !          1849:                                }
        !          1850:                                // reset piece 'begin' position & line
        !          1851:                                begin=PC.source; // ^
        !          1852:                                begin_line=PC.line;
        !          1853:                                // skip over ^ and _
        !          1854:                                PC.source++;  PC.col++;
        !          1855:                                // skip analysis = forced literal
        !          1856:                                continue;
        !          1857: 
        !          1858:                        // converting ^#HH into char(hex(HH))
        !          1859:                        case '#':
        !          1860:                                if(end!=begin) {
        !          1861:                                        // append piece till ^
        !          1862:                                        PC.string->APPEND_CLEAN(begin, end-begin, PC.file, begin_line);
        !          1863:                                }
        !          1864:                                // #HH ?
        !          1865:                                if(PC.source[0]=='#' && PC.source[1] && PC.source[2]) {
        !          1866:                                        char *hex=(char *)POOL.malloc(1);
        !          1867:                                        hex[0]=
        !          1868:                                                hex_value[(unsigned char)PC.source[1]]*0x10+
        !          1869:                                                hex_value[(unsigned char)PC.source[2]];
        !          1870:                                        if(hex[0]==0) {
        !          1871:                                                result=BAD_HEX_LITERAL;
        !          1872:                                                goto break2; // wrong hex value[no ^#00 chars allowed]: bail out
        !          1873:                                        }
        !          1874:                                        // append char(hex(HH))
        !          1875:                                        PC.string->APPEND_CLEAN(hex, 1, PC.file, begin_line);
        !          1876:                                        // skip over ^#HH
        !          1877:                                        PC.source+=3;
        !          1878:                                        PC.col+=3;
        !          1879:                                        // reset piece 'begin' position & line
        !          1880:                                        begin=PC.source; // ^
        !          1881:                                        begin_line=PC.line;
        !          1882:                                        continue;
        !          1883:                                }
        !          1884:                                break;
        !          1885:                        }
        !          1886:                // #comment  start skipping
        !          1887:                if(c=='#' && PC.col==1) {
        !          1888:                        if(end!=begin) {
        !          1889:                                // append piece till #
        !          1890:                                PC.string->APPEND_CLEAN(begin, end-begin, PC.file, begin_line);
        !          1891:                        }
        !          1892:                        // fall into COMMENT lexical state [wait for \n]
        !          1893:                        push_LS(PC, LS_COMMENT);
        !          1894:                }
        !          1895:                switch(PC.ls) {
        !          1896: 
        !          1897:                // USER'S = NOT OURS
        !          1898:                case LS_USER:
        !          1899:                        if(PC.trim_bof)
        !          1900:                                switch(c) {
        !          1901:                                case '\n': case ' ': case '\t':
        !          1902:                                        begin=PC.source;
        !          1903:                                        begin_line=PC.line;
        !          1904:                                        continue; // skip it
        !          1905:                                default:
        !          1906:                                        PC.trim_bof=false;
        !          1907:                                }
        !          1908:                        switch(c) {
        !          1909:                        case '$':
        !          1910:                                push_LS(PC, LS_VAR_NAME_SIMPLE);
        !          1911:                                RC;
        !          1912:                        case '^':
        !          1913:                                push_LS(PC, LS_METHOD_NAME);
        !          1914:                                RC;
        !          1915:                        case '@':
        !          1916:                                if(PC.col==0+1) {
        !          1917:                                        push_LS(PC, LS_DEF_NAME);
        !          1918:                                        RC;
        !          1919:                                }
        !          1920:                                break;
        !          1921:                        }
        !          1922:                        break;
        !          1923:                        
        !          1924:                // #COMMENT
        !          1925:                case LS_COMMENT:
        !          1926:                        if(c=='\n') {
        !          1927:                                // skip comment
        !          1928:                                begin=PC.source;
        !          1929:                                begin_line=PC.line;
        !          1930: 
        !          1931:                                pop_LS(PC);
        !          1932:                                continue;
        !          1933:                        }
        !          1934:                        break;
        !          1935:                        
        !          1936:                // STRING IN EXPRESSION
        !          1937:                case LS_EXPRESSION_STRING_QUOTED:
        !          1938:                case LS_EXPRESSION_STRING_APOSTROFED:
        !          1939:                        switch(c) {
        !          1940:                        case '"':
        !          1941:                        case '\'':
        !          1942:                                if(
        !          1943:                                        PC.ls == LS_EXPRESSION_STRING_QUOTED && c=='"' ||
        !          1944:                                        PC.ls == LS_EXPRESSION_STRING_APOSTROFED && c=='\'') {
        !          1945:                                        pop_LS(PC); //"abc". | 'abc'.
        !          1946:                                        RC;
        !          1947:                                }
        !          1948:                                break;
        !          1949:                        case '$':
        !          1950:                                push_LS(PC, LS_VAR_NAME_SIMPLE);
        !          1951:                                RC;
        !          1952:                        case '^':
        !          1953:                                push_LS(PC, LS_METHOD_NAME);
        !          1954:                                RC;
        !          1955:                        }
        !          1956:                        break;
        !          1957: 
        !          1958:                // METHOD DEFINITION
        !          1959:                case LS_DEF_NAME:
        !          1960:                        switch(c) {
        !          1961:                        case '[':
        !          1962:                                PC.ls=LS_DEF_PARAMS;
        !          1963:                                RC;
        !          1964:                        case '\n':
        !          1965:                                PC.ls=LS_DEF_SPECIAL_BODY;
        !          1966:                                RC;
        !          1967:                        }
        !          1968:                        break;
        !          1969: 
        !          1970:                case LS_DEF_PARAMS:
        !          1971:                        switch(c) {
        !          1972:                        case ';':
        !          1973:                                RC;
        !          1974:                        case ']':
        !          1975:                                PC.ls=*PC.source=='['?LS_DEF_LOCALS:LS_DEF_COMMENT;
        !          1976:                                RC;
        !          1977:                        case '\n': // wrong. bailing out
        !          1978:                                pop_LS(PC);
        !          1979:                                RC;
        !          1980:                        }
        !          1981:                        break;
        !          1982: 
        !          1983:                case LS_DEF_LOCALS:
        !          1984:                        switch(c) {
        !          1985:                        case '[':
        !          1986:                        case ';':
        !          1987:                                RC;
        !          1988:                        case ']':
        !          1989:                                PC.ls=LS_DEF_COMMENT;
        !          1990:                                RC;
        !          1991:                        case '\n': // wrong. bailing out
        !          1992:                                pop_LS(PC);
        !          1993:                                RC;
        !          1994:                        }
        !          1995:                        break;
        !          1996: 
        !          1997:                case LS_DEF_COMMENT:
        !          1998:                        if(c=='\n') {
        !          1999:                                pop_LS(PC);
        !          2000:                                RC;
        !          2001:                        }
        !          2002:                        break;
        !          2003: 
        !          2004:                case LS_DEF_SPECIAL_BODY:
        !          2005:                        //                          @todo in case
        !          2006:                        // ################
        !          2007:                        // @next-method
        !          2008:                        // we are here with c=='@'
        !          2009:                        // which is wrong, and need action
        !          2010:                        if(c=='\n') {
        !          2011:                                switch(*PC.source) {
        !          2012:                                case '@': case 0: // end of special_code
        !          2013:                                        pop_LS(PC);
        !          2014:                                        break;
        !          2015:                                }
        !          2016:                                RC;
        !          2017:                        }
        !          2018:                        break;
        !          2019: 
        !          2020:                // (EXPRESSION)
        !          2021:                case LS_VAR_ROUND:
        !          2022:                case LS_METHOD_ROUND:
        !          2023:                        switch(c) {
        !          2024:                        case ')':
        !          2025:                                if(--lexical_brackets_nestage==0)
        !          2026:                                        if(PC.ls==LS_METHOD_ROUND) // method round param ended
        !          2027:                                                PC.ls=LS_METHOD_AFTER; // look for method end
        !          2028:                                        else // PC.ls==LS_VAR_ROUND // variable constructor ended
        !          2029:                                                pop_LS(PC); // return to normal life
        !          2030:                                RC;
        !          2031:                        case '$':
        !          2032:                                push_LS(PC, LS_EXPRESSION_VAR_NAME);                            
        !          2033:                                RC;
        !          2034:                        case '^':
        !          2035:                                push_LS(PC, LS_METHOD_NAME);
        !          2036:                                RC;
        !          2037:                        case '(':
        !          2038:                                lexical_brackets_nestage++;
        !          2039:                                RC;
        !          2040:                        case '-':
        !          2041:                                switch(*PC.source) {
        !          2042:                                case 'f': // -f
        !          2043:                                        skip_analized=1;
        !          2044:                                        result=FEXISTS;
        !          2045:                                        goto break2;
        !          2046:                                case 'd': // -d
        !          2047:                                        skip_analized=1;
        !          2048:                                        result=DEXISTS;
        !          2049:                                        goto break2;
        !          2050:                                default:
        !          2051:                                        result=c;
        !          2052:                                        goto break2;
        !          2053:                                }
        !          2054:                                goto break2;
        !          2055:                        case '+': case '*': case '/': case '%': 
        !          2056:                        case '~':
        !          2057:                        case ';':
        !          2058:                                RC;
        !          2059:                        case '&': case '|':  case '#':
        !          2060:                                if(*PC.source==c) { // && ||
        !          2061:                                        result=c=='#'?LXOR:c=='&'?LAND:LOR;
        !          2062:                                        skip_analized=1;
        !          2063:                                } else
        !          2064:                                        result=c;
        !          2065:                                goto break2;
        !          2066:                        case '<': case '>': case '=': case '!': 
        !          2067:                                if(*PC.source=='=') { // <= >= == !=
        !          2068:                                        skip_analized=1;
        !          2069:                                        switch(c) {
        !          2070:                                        case '<': result=NLE; break;
        !          2071:                                        case '>': result=NGE; break;
        !          2072:                                        case '=': result=NEQ; break;
        !          2073:                                        case '!': result=NNE; break;
        !          2074:                                        }
        !          2075:                                } else
        !          2076:                                        result=c;
        !          2077:                                goto break2;
        !          2078:                        case '"':
        !          2079:                                push_LS(PC, LS_EXPRESSION_STRING_QUOTED);
        !          2080:                                RC;
        !          2081:                        case '\'':
        !          2082:                                push_LS(PC, LS_EXPRESSION_STRING_APOSTROFED);
        !          2083:                                RC;
        !          2084:                        case 'l': case 'g': case 'e': case 'n':
        !          2085:                                if(end==begin) // right after whitespace
        !          2086:                                        if(isspace(PC.source[1])) {
        !          2087:                                                switch(*PC.source) {
        !          2088:                                                        //                                      case '?': // ok [and bad cases, yacc would bark at them]
        !          2089:                                                case 't': // lt gt [et nt]
        !          2090:                                                        result=c=='l'?SLT:c=='g'?SGT:BAD_STRING_COMPARISON_OPERATOR;
        !          2091:                                                        skip_analized=1;
        !          2092:                                                        goto break2;
        !          2093:                                                case 'e': // le ge ne [ee]
        !          2094:                                                        result=c=='l'?SLE:c=='g'?SGE:c=='n'?SNE:BAD_STRING_COMPARISON_OPERATOR;
        !          2095:                                                        skip_analized=1;
        !          2096:                                                        goto break2;
        !          2097:                                                case 'q': // eq [lq gq nq]
        !          2098:                                                        result=c=='e'?SEQ:BAD_STRING_COMPARISON_OPERATOR;
        !          2099:                                                        skip_analized=1;
        !          2100:                                                        goto break2;
        !          2101:                                                }
        !          2102:                                        }
        !          2103:                                break;
        !          2104:                        case 'i':
        !          2105:                                if(end==begin) // right after whitespace
        !          2106:                                        if(isspace(PC.source[1])) {
        !          2107:                                                switch(PC.source[0]) {
        !          2108:                                                case 'n': // in
        !          2109:                                                        skip_analized=1;
        !          2110:                                                        result=IN;
        !          2111:                                                        goto break2;
        !          2112:                                                case 's': // is
        !          2113:                                                        skip_analized=1;
        !          2114:                                                        result=IS;
        !          2115:                                                        goto break2;
        !          2116:                                                }
        !          2117:                                        }
        !          2118:                                break;
        !          2119:                        case 'd':
        !          2120:                                if(end==begin) // right after whitespace
        !          2121:                                        if(PC.source[0]=='e' && PC.source[1]=='f') { // def
        !          2122:                                                skip_analized=2;
        !          2123:                                                result=DEF;
        !          2124:                                                goto break2;
        !          2125:                                        }
        !          2126:                                break;
        !          2127:                        case ' ': case '\t': case '\n':
        !          2128:                                if(end!=begin) { // there were a string after previous operator?
        !          2129:                                        result=0; // return that string
        !          2130:                                        goto break2;
        !          2131:                                }
        !          2132:                                // that's a leading|traling space or after-operator-space
        !          2133:                                // ignoring it
        !          2134:                                // reset piece 'begin' position & line
        !          2135:                                begin=PC.source; // after whitespace char
        !          2136:                                begin_line=PC.line;
        !          2137:                                continue;
        !          2138:                        }
        !          2139:                        break;
        !          2140: 
        !          2141:                // VARIABLE GET/PUT/WITH
        !          2142:                case LS_VAR_NAME_SIMPLE:
        !          2143:                case LS_EXPRESSION_VAR_NAME:
        !          2144:                case LS_VAR_NAME_NO_COLON:
        !          2145:                        if(PC.ls==LS_EXPRESSION_VAR_NAME) {
        !          2146:                                // name in expr ends also before binary operators 
        !          2147:                                switch(c) {
        !          2148:                                case '-': 
        !          2149:                                        pop_LS(PC);
        !          2150:                                        PC.source--;  if(--PC.col<0) { PC.line--;  PC.col=-1; }
        !          2151:                                        result=EON;
        !          2152:                                        goto break2;
        !          2153:                                }
        !          2154:                        }
        !          2155:                        if(PC.ls==LS_VAR_NAME_NO_COLON) {
        !          2156:                                // name already has ':', stop before next 
        !          2157:                                switch(c) {
        !          2158:                                case ':': 
        !          2159:                                        pop_LS(PC);
        !          2160:                                        PC.source--;  if(--PC.col<0) { PC.line--;  PC.col=-1; }
        !          2161:                                        result=EON;
        !          2162:                                        goto break2;
        !          2163:                                }
        !          2164:                        }
        !          2165:                        switch(c) {
        !          2166:                        case 0:
        !          2167:                        case ' ': case '\t': case '\n':
        !          2168:                        case ';':
        !          2169:                        case ']': case '}': case ')': 
        !          2170:                        case '"': case '\'':
        !          2171:                        case '<': case '>':  // these stand for HTML brackets AND expression binary ops
        !          2172:                        case '+': case '*': case '/': case '%': 
        !          2173:                        case '&': case '|': 
        !          2174:                        case '=': case '!':
        !          2175:                        // common delimiters
        !          2176:                        case ',': case '?':
        !          2177:                        // before call
        !          2178:                        case '^': 
        !          2179:                                pop_LS(PC);
        !          2180:                                PC.source--;  if(--PC.col<0) { PC.line--;  PC.col=-1; }
        !          2181:                                result=EON;
        !          2182:                                goto break2;
        !          2183:                        case '[':
        !          2184:                                PC.ls=LS_VAR_SQUARE;
        !          2185:                                lexical_brackets_nestage=1;
        !          2186:                                RC;
        !          2187:                        case '{':
        !          2188:                                if(begin==end) { // ${name}, no need of EON, switching LS
        !          2189:                                        PC.ls=LS_VAR_NAME_CURLY; 
        !          2190:                                } else {
        !          2191:                                        PC.ls=LS_VAR_CURLY;
        !          2192:                                        lexical_brackets_nestage=1;
        !          2193:                                }
        !          2194: 
        !          2195:                                RC;
        !          2196:                        case '(':
        !          2197:                                PC.ls=LS_VAR_ROUND;
        !          2198:                                lexical_brackets_nestage=1;
        !          2199:                                RC;
        !          2200:                        case '.': // name part delim
        !          2201:                        case '$': // name part subvar
        !          2202:                        case ':': // ':name' or 'class:name'
        !          2203:                                PC.ls=LS_VAR_NAME_NO_COLON; // stop before next ':'
        !          2204:                                RC;
        !          2205:                        }
        !          2206:                        break;
        !          2207: 
        !          2208:                case LS_VAR_NAME_CURLY:
        !          2209:                        switch(c) {
        !          2210:                        case '}': // ${name} finished, restoring LS
        !          2211:                                pop_LS(PC);
        !          2212:                                RC;
        !          2213:                        case '.': // name part delim
        !          2214:                        case '$': // name part subvar
        !          2215:                        case ':': // ':name' or 'class:name'
        !          2216:                                RC;
        !          2217:                        }
        !          2218:                        break;
        !          2219: 
        !          2220:                case LS_VAR_SQUARE:
        !          2221:                        switch(c) {
        !          2222:                        case '$':
        !          2223:                                push_LS(PC, LS_VAR_NAME_SIMPLE);
        !          2224:                                RC;
        !          2225:                        case '^':
        !          2226:                                push_LS(PC, LS_METHOD_NAME);
        !          2227:                                RC;
        !          2228:                        case ']':
        !          2229:                                if(--lexical_brackets_nestage==0) {
        !          2230:                                        pop_LS(PC);
        !          2231:                                        RC;
        !          2232:                                }
        !          2233:                                break;
        !          2234:                        case ';': // operator_or_fmt;value delim
        !          2235:                                RC;
        !          2236:                        case '[':
        !          2237:                                lexical_brackets_nestage++;
        !          2238:                                break;
        !          2239:                        }
        !          2240:                        break;
        !          2241: 
        !          2242:                case LS_VAR_CURLY:
        !          2243:                        switch(c) {
        !          2244:                        case '$':
        !          2245:                                push_LS(PC, LS_VAR_NAME_SIMPLE);
        !          2246:                                RC;
        !          2247:                        case '^':
        !          2248:                                push_LS(PC, LS_METHOD_NAME);
        !          2249:                                RC;
        !          2250:                        case '}':
        !          2251:                                if(--lexical_brackets_nestage==0) {
        !          2252:                                        pop_LS(PC);
        !          2253:                                        RC;
        !          2254:                                }
        !          2255:                                break;
        !          2256:                        case '{':
        !          2257:                                lexical_brackets_nestage++;
        !          2258:                                break;
        !          2259:                        }
        !          2260:                        break;
        !          2261: 
        !          2262:                // METHOD CALL
        !          2263:                case LS_METHOD_NAME:
        !          2264:                        switch(c) {
        !          2265:                        case '[':
        !          2266:                                PC.ls=LS_METHOD_SQUARE;
        !          2267:                                lexical_brackets_nestage=1;
        !          2268:                                RC;
        !          2269:                        case '{':
        !          2270:                                PC.ls=LS_METHOD_CURLY;
        !          2271:                                lexical_brackets_nestage=1;
        !          2272:                                RC;
        !          2273:                        case '(':
        !          2274:                                PC.ls=LS_METHOD_ROUND;
        !          2275:                                lexical_brackets_nestage=1;
        !          2276:                                RC;
        !          2277:                        case '.': // name part delim 
        !          2278:                        case '$': // name part subvar
        !          2279:                        case ':': // ':name' or 'class:name'
        !          2280:                                RC;
        !          2281:                        }
        !          2282:                        break;
        !          2283: 
        !          2284:                case LS_METHOD_SQUARE:
        !          2285:                        switch(c) {
        !          2286:                        case '$':
        !          2287:                                push_LS(PC, LS_VAR_NAME_SIMPLE);
        !          2288:                                RC;
        !          2289:                        case '^':
        !          2290:                                push_LS(PC, LS_METHOD_NAME);
        !          2291:                                RC;
        !          2292:                        case ';': // param delim
        !          2293:                                RC;
        !          2294:                        case ']':
        !          2295:                                if(--lexical_brackets_nestage==0) {
        !          2296:                                        PC.ls=LS_METHOD_AFTER;
        !          2297:                                        RC;
        !          2298:                                }
        !          2299:                                break;
        !          2300:                        case '[':
        !          2301:                                lexical_brackets_nestage++;
        !          2302:                                break;
        !          2303:                        }
        !          2304:                        break;
        !          2305: 
        !          2306:                case LS_METHOD_CURLY:
        !          2307:                        switch(c) {
        !          2308:                        case '$':
        !          2309:                                push_LS(PC, LS_VAR_NAME_SIMPLE);
        !          2310:                                RC;
        !          2311:                        case '^':
        !          2312:                                push_LS(PC, LS_METHOD_NAME);
        !          2313:                                RC;
        !          2314:                        case ';': // param delim
        !          2315:                                RC;
        !          2316:                        case '}':
        !          2317:                                if(--lexical_brackets_nestage==0) {
        !          2318:                                        PC.ls=LS_METHOD_AFTER;
        !          2319:                                        RC;
        !          2320:                                }
        !          2321:                                break;
        !          2322:                        case '{':
        !          2323:                                lexical_brackets_nestage++;
        !          2324:                                break;
        !          2325:                        }
        !          2326:                        break;
        !          2327: 
        !          2328:                case LS_METHOD_AFTER:
        !          2329:                        if(c=='[') {/* ][ }[ )[ */
        !          2330:                                PC.ls=LS_METHOD_SQUARE;
        !          2331:                                lexical_brackets_nestage=1;
        !          2332:                                RC;
        !          2333:                        }                                          
        !          2334:                        if(c=='{') {/* ]{ }{ ){ */
        !          2335:                                PC.ls=LS_METHOD_CURLY;
        !          2336:                                lexical_brackets_nestage=1;
        !          2337:                                RC;
        !          2338:                        }                                          
        !          2339:                        if(c=='(') {/* ]( }( )( */
        !          2340:                                PC.ls=LS_METHOD_ROUND;
        !          2341:                                lexical_brackets_nestage=1;
        !          2342:                                RC;
        !          2343:                        }                                          
        !          2344:                        pop_LS(PC);
        !          2345:                        PC.source--;  if(--PC.col<0) { PC.line--;  PC.col=-1; }
        !          2346:                        result=EON;
        !          2347:                        goto break2;
        !          2348:                }
        !          2349:                if(c==0) {
        !          2350:                        result=-1;
        !          2351:                        break;
        !          2352:                }
        !          2353:        }
        !          2354: 
        !          2355: break2:
        !          2356:        if(end!=begin) { // there is last piece?
        !          2357:                if((c=='@' || c==0) && end[-1]=='\n') { // we are before LS_DEF_NAME or EOF?
        !          2358:                        // strip last \n
        !          2359:                        end--;
        !          2360:                        if(end!=begin && end[-1]=='\n') // allow one empty line before LS_DEF_NAME
        !          2361:                                end--;
        !          2362:                }
        !          2363:                if(end!=begin && PC.ls!=LS_COMMENT) { // last piece still alive and not comment?
        !          2364:                        // append it
        !          2365:                        PC.string->APPEND_CLEAN(begin, end-begin, PC.file, begin_line/*, start_col*/);
        !          2366:                }
        !          2367:        }
        !          2368:        if(PC.string->size()) { // something accumulated?
        !          2369:                // create STRING value: array of OP_VALUE+vstring
        !          2370:                *lvalp=VL(NEW VString(*PC.string));
        !          2371:                // new pieces storage
        !          2372:                PC.string=NEW String(POOL);
        !          2373:                // make current result be pending for next call, return STRING for now
        !          2374:                PC.pending_state=result;  result=STRING;
        !          2375:        }
        !          2376:        if(skip_analized) {
        !          2377:                PC.source+=skip_analized;  PC.col+=skip_analized;
        !          2378:        }
        !          2379:        return result;
        !          2380: }
        !          2381: 
        !          2382: static int real_yyerror(parse_control *pc, char *s) {  // Called by yyparse on error
        !          2383:           strncpy(PC.error, s, MAX_STRING);
        !          2384:           return 1;
        !          2385: }
        !          2386: 
        !          2387: static void yyprint(FILE *file, int type, YYSTYPE value) {
        !          2388:        if(type==STRING)
        !          2389:                fprintf(file, " \"%s\"", LA2S(value)->cstr());
        !          2390: }

E-mail: