
/*  A Bison parser, made from boil.y with Bison version GNU Bison version 1.24
  */

#define YYBISON 1  /* Identify Bison output.  */

#define YYLSP_NEEDED

#define	LONG	258
#define	DOUBLE	259
#define	STRING	260
#define	VOID	261
#define	IF	262
#define	ELSE	263
#define	FOR	264
#define	WHILE	265
#define	DO	266
#define	BREAK	267
#define	CONTINUE	268
#define	RETURN	269
#define	UNSIGNED	270
#define	EVAL	271
#define	EXTERNAL	272
#define	OR	273
#define	AND	274
#define	EQUAL	275
#define	NOTEQUAL	276
#define	LE	277
#define	GE	278
#define	SHIFTLEFT	279
#define	SHIFTRIGHT	280
#define	PLUSPLUS	281
#define	MINUSMINUS	282
#define	NEG	283
#define	CAST	284
#define	FUNC	285
#define	CONST	286
#define	NAME	287
#define	PRINT	288

#line 1 "boil.y"

  /*
BOIL (Brunni's Own Interpreter Language)
(c) 1998 netEstate (http://www.netestate.de/, info@netestate.de),
Michael Brunnbauer & Markus Hendel, Gesellschaft fuer Netzwerkkommunikation bR
Am Bluetenanger 8, 80995 Muenchen, Germany

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include "general.h"
#include "handles.cc"
#include "boil.h"
#ifdef WITH_RPC
#include "rpc.h"
#endif

int yylex();
void yyerror(char* s);


#line 35 "boil.y"
typedef union {

string* t0;
int t1; /* type */
type_value* t2; /* const */
type_reference* t3;
type_expr_list* t4;
type_function_call* t5;
type_expr* t6;
type_arg_list* t7;
type_function_dekl* t8;
type_dekl_list_entry* t9;
type_dekl_list* t10;
type_variable_dekl* t11;
type_expr_stmt* t12;
type_choice_stmt* t13;
type_loop_stmt* t14;
type_jump_stmt* t15;
type_stmt* t16;
type_stmt_list* t17;
type_block* t18;
type_arg_list_entry* t19;
type_eval_stmt* t20;
type_external_stmt* t21;
} YYSTYPE;

#ifndef YYLTYPE
typedef
  struct yyltype
    {
      int timestamp;
      int first_line;
      int first_column;
      int last_line;
      int last_column;
      char *text;
   }
  yyltype;

#define YYLTYPE yyltype
#endif

#include <stdio.h>

#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif



#define	YYFINAL		193
#define	YYFLAG		-32768
#define	YYNTBASE	55

#define YYTRANSLATE(x) ((unsigned)(x) <= 288 ? yytranslate[x] : 75)

static const char yytranslate[] = {     0,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,    40,     2,     2,     2,    36,    23,     2,    44,
    45,    34,    32,    53,    33,     2,    35,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,    54,    26,
    18,    27,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
    46,     2,    47,    22,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,    51,    21,    52,    39,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
     6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
    16,    17,    19,    20,    24,    25,    28,    29,    30,    31,
    37,    38,    41,    42,    43,    48,    49,    50
};

#if YYDEBUG != 0
static const short yyprhs[] = {     0,
     0,     3,     7,     9,    12,    14,    16,    18,    20,    24,
    30,    32,    36,    41,    45,    52,    58,    60,    62,    64,
    68,    71,    74,    77,    80,    84,    89,    92,    95,    98,
   102,   106,   110,   114,   118,   122,   126,   130,   134,   138,
   142,   146,   150,   154,   158,   162,   166,   170,   173,   175,
   179,   183,   190,   196,   203,   209,   218,   225,   234,   241,
   243,   247,   249,   253,   257,   259,   262,   268,   276,   282,
   290,   299,   307,   315,   322,   325,   328,   331,   335,   340,
   349,   351,   353,   355,   357,   359,   361,   363,   365,   367
};

static const short yyrhs[] = {    51,
    52,     0,    51,    74,    52,     0,     3,     0,    15,     3,
     0,     4,     0,     5,     0,     6,     0,    49,     0,    46,
    60,    47,     0,    46,    60,    53,    60,    47,     0,    60,
     0,    58,    53,    60,     0,    57,    44,    58,    45,     0,
    57,    44,    45,     0,    44,    57,    45,    44,    58,    45,
     0,    44,    57,    45,    44,    45,     0,    48,     0,    57,
     0,    59,     0,    57,    18,    60,     0,    57,    37,     0,
    57,    38,     0,    37,    57,     0,    38,    57,     0,    44,
    60,    45,     0,    44,    56,    45,    60,     0,    33,    60,
     0,    39,    60,     0,    40,    60,     0,    60,    34,    60,
     0,    60,    35,    60,     0,    60,    36,    60,     0,    60,
    32,    60,     0,    60,    33,    60,     0,    60,    30,    60,
     0,    60,    31,    60,     0,    60,    26,    60,     0,    60,
    27,    60,     0,    60,    28,    60,     0,    60,    29,    60,
     0,    60,    24,    60,     0,    60,    25,    60,     0,    60,
    23,    60,     0,    60,    22,    60,     0,    60,    21,    60,
     0,    60,    20,    60,     0,    60,    19,    60,     0,    56,
    49,     0,    61,     0,    62,    53,    61,     0,    56,    57,
    72,     0,    56,    57,    44,    62,    45,    55,     0,    56,
    57,    44,    45,    55,     0,    56,    57,    44,    62,    45,
    71,     0,    56,    57,    44,    45,    71,     0,    56,    57,
    44,    60,    53,    62,    45,    55,     0,    56,    57,    44,
    60,    45,    55,     0,    56,    57,    44,    60,    53,    62,
    45,    71,     0,    56,    57,    44,    60,    45,    71,     0,
    57,     0,    57,    18,    60,     0,    64,     0,    65,    53,
    64,     0,    56,    65,    54,     0,    54,     0,    60,    54,
     0,     7,    44,    60,    45,    73,     0,     7,    44,    60,
    45,    73,     8,    73,     0,    10,    44,    60,    45,    73,
     0,    11,    73,    10,    44,    60,    45,    54,     0,     9,
    44,    73,    60,    54,    60,    45,    73,     0,     9,    44,
    73,    54,    60,    45,    73,     0,     9,    44,    73,    60,
    54,    45,    73,     0,     9,    44,    73,    54,    45,    73,
     0,    12,    54,     0,    13,    54,     0,    14,    54,     0,
    14,    60,    54,     0,    16,    44,    60,    45,     0,    17,
    44,    60,    53,    60,    53,    60,    45,     0,    66,     0,
    63,     0,    67,     0,    55,     0,    68,     0,    69,     0,
    70,     0,    50,     0,    73,     0,    74,    73,     0
};

#endif

#if YYDEBUG != 0
static const short yyrline[] = { 0,
   113,   132,   152,   159,   166,   173,   180,   189,   205,   222,
   242,   254,   266,   284,   303,   321,   343,   358,   374,   390,
   408,   424,   440,   456,   472,   488,   505,   522,   539,   556,
   575,   594,   613,   632,   651,   670,   689,   708,   727,   746,
   765,   784,   803,   822,   841,   860,   879,   900,   918,   930,
   942,   966,   989,  1013,  1036,  1060,  1084,  1109,  1134,  1161,
  1177,  1197,  1209,  1222,  1240,  1254,  1272,  1290,  1313,  1333,
  1354,  1377,  1399,  1421,  1443,  1457,  1471,  1485,  1503,  1521,
  1543,  1559,  1575,  1591,  1607,  1623,  1639,  1655,  1673,  1685
};

static const char * const yytname[] = {   "$","error","$undefined.","LONG","DOUBLE",
"STRING","VOID","IF","ELSE","FOR","WHILE","DO","BREAK","CONTINUE","RETURN","UNSIGNED",
"EVAL","EXTERNAL","'='","OR","AND","'|'","'^'","'&'","EQUAL","NOTEQUAL","'<'",
"'>'","LE","GE","SHIFTLEFT","SHIFTRIGHT","'+'","'-'","'*'","'/'","'%'","PLUSPLUS",
"MINUSMINUS","'~'","'!'","NEG","CAST","FUNC","'('","')'","'['","']'","CONST",
"NAME","PRINT","'{'","'}'","','","';'","block","type","reference","expr_list",
"function_call","expr","arg_list_entry","arg_list","function_dekl","dekl_list_entry",
"dekl_list","variable_dekl","expr_stmt","choice_stmt","loop_stmt","jump_stmt",
"eval_stmt","external_stmt","stmt","stmt_list",""
};
#endif

static const short yyr1[] = {     0,
    55,    55,    56,    56,    56,    56,    56,    57,    57,    57,
    58,    58,    59,    59,    59,    59,    60,    60,    60,    60,
    60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
    60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
    60,    60,    60,    60,    60,    60,    60,    61,    62,    62,
    63,    63,    63,    63,    63,    63,    63,    63,    63,    64,
    64,    65,    65,    66,    67,    67,    68,    68,    69,    69,
    69,    69,    69,    69,    70,    70,    70,    70,    71,    72,
    73,    73,    73,    73,    73,    73,    73,    73,    74,    74
};

static const short yyr2[] = {     0,
     2,     3,     1,     2,     1,     1,     1,     1,     3,     5,
     1,     3,     4,     3,     6,     5,     1,     1,     1,     3,
     2,     2,     2,     2,     3,     4,     2,     2,     2,     3,
     3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
     3,     3,     3,     3,     3,     3,     3,     2,     1,     3,
     3,     6,     5,     6,     5,     8,     6,     8,     6,     1,
     3,     1,     3,     3,     1,     2,     5,     7,     5,     7,
     8,     7,     7,     6,     2,     2,     2,     3,     4,     8,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     2
};

static const short yydefact[] = {     0,
     0,     3,     5,     6,     7,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    17,     8,    88,     1,    65,    84,     0,    18,    19,     0,
    82,    81,    83,    85,    86,    87,    89,     0,     0,     0,
     0,     0,    75,    76,    77,     0,     4,    27,    23,    24,
    28,    29,     0,    18,     0,     0,    60,    62,     0,     0,
    21,    22,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    66,     2,    90,     0,     0,     0,     0,    78,     0,
     0,    25,     9,     0,     0,     0,     0,    51,     0,    64,
    20,    14,     0,    11,    47,    46,    45,    44,    43,    41,
    42,    37,    38,    39,    40,    35,    36,    33,    34,    30,
    31,    32,     0,     0,     0,     0,     0,    26,     0,     0,
     0,    61,     0,     0,     0,    49,     0,    60,    63,    13,
     0,    67,     0,     0,     0,    69,     0,    16,     0,    10,
     0,     0,    53,    55,    48,     0,     0,     0,     0,    12,
     0,    74,     0,     0,     0,     0,    15,     0,     0,    57,
    59,     0,    52,    54,    50,    68,    72,    73,     0,    70,
     0,     0,     0,    71,     0,    79,    56,    58,     0,    80,
     0,     0,     0
};

static const short yydefgoto[] = {    26,
    27,    28,   103,    29,    30,   136,   137,    31,    58,    59,
    32,    33,    34,    35,    36,   154,    98,    37,    38
};

static const short yypact[] = {   -16,
   181,-32768,-32768,-32768,-32768,   -22,    -6,     8,   285,   -12,
   -10,    56,    72,   458,     4,     4,   458,   458,   351,   458,
-32768,-32768,-32768,-32768,-32768,-32768,     4,     2,-32768,   382,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,   233,   458,   285,
   458,    66,-32768,-32768,-32768,   418,-32768,-32768,-32768,-32768,
-32768,-32768,    33,   -11,   659,   490,     1,-32768,    20,   458,
-32768,-32768,   105,   458,   458,   458,   458,   458,   458,   458,
   458,   458,   458,   458,   458,   458,   458,   458,   458,   458,
   458,-32768,-32768,-32768,   686,   325,   713,    36,-32768,   458,
    38,-32768,-32768,   458,    39,   458,   304,-32768,     4,-32768,
   875,-32768,   -30,   875,   177,   576,   610,   889,   902,   913,
   913,   138,   138,   138,   138,   145,   145,    13,    13,-32768,
-32768,-32768,   285,   216,   454,   285,   458,-32768,   386,   630,
   458,   875,   -14,    35,   525,-32768,   -29,    68,-32768,-32768,
   458,    82,   285,   740,   422,-32768,   767,-32768,   -24,-32768,
   560,    47,-32768,-32768,-32768,   -14,   108,   -14,   108,   875,
   285,-32768,   285,   285,   794,    44,-32768,   458,   458,-32768,
-32768,   -17,-32768,-32768,-32768,-32768,-32768,-32768,   285,-32768,
   595,   821,   -14,-32768,   458,-32768,-32768,-32768,   848,-32768,
    92,    99,-32768
};

static const short yypgoto[] = {     0,
   -18,    -2,   -28,-32768,    -9,   -56,   -51,-32768,     9,-32768,
-32768,-32768,-32768,-32768,-32768,  -152,-32768,     3,-32768
};


#define	YYLAST		949


static const short yytable[] = {   191,
    53,   152,    46,   171,    48,   174,    60,    51,    52,    55,
    56,    42,    49,    50,   140,   158,    54,    95,    96,    60,
   167,    39,   141,   159,    57,    61,    62,   183,   141,    85,
   188,    87,    63,    91,     1,   159,     1,    40,    61,    62,
    84,    43,    86,    44,    97,    63,    79,    80,    81,    20,
   101,    41,    22,   104,   105,   106,   107,   108,   109,   110,
   111,   112,   113,   114,   115,   116,   117,   118,   119,   120,
   121,   122,    99,   100,    47,    88,   125,    90,   134,   127,
   128,   129,   131,   155,   130,    96,   132,   135,    14,   161,
   169,   192,    15,    16,    17,    18,   138,   180,   193,    19,
   149,    20,   175,    21,    22,   172,     0,   139,     0,    45,
     2,     3,     4,     5,   144,     0,     0,   147,     0,   104,
     0,   151,    13,     0,     0,   142,     0,     0,   146,     0,
     0,   160,   153,     0,     0,   165,     0,    14,   134,     0,
   134,    15,    16,    17,    18,   162,     0,     0,    19,   102,
    20,     0,    21,    22,     0,   170,     0,   173,   181,   182,
     0,     0,     0,   176,     0,   177,   178,    75,    76,    77,
    78,    79,    80,    81,     0,   189,    77,    78,    79,    80,
    81,   184,   187,     2,     3,     4,     5,     6,     0,     7,
     8,     9,    10,    11,    12,    13,    65,    66,    67,    68,
    69,    70,    71,    72,    73,    74,    75,    76,    77,    78,
    79,    80,    81,    14,     0,     0,     0,    15,    16,    17,
    18,     0,     0,     0,    19,     0,    20,     0,    21,    22,
    23,     1,    24,     0,    25,     2,     3,     4,     5,     6,
     0,     7,     8,     9,    10,    11,    12,    13,    14,     0,
     0,     0,    15,    16,    17,    18,     0,     0,     0,    19,
   143,    20,     0,    21,    22,    14,     0,     0,     0,    15,
    16,    17,    18,     0,     0,     0,    19,     0,    20,     0,
    21,    22,    23,     1,    83,     0,    25,     2,     3,     4,
     5,     6,     0,     7,     8,     9,    10,    11,    12,    13,
     0,     0,     0,     0,     0,     0,     2,     3,     4,     5,
     0,     0,     0,     0,     0,     0,     0,    14,    13,     0,
     0,    15,    16,    17,    18,     0,     0,     0,    19,     0,
    20,     0,    21,    22,    23,     1,    14,     0,    25,     0,
    15,    16,    17,    18,     0,     0,     0,    19,   133,    20,
     0,    21,    22,     2,     3,     4,     5,    14,     0,     0,
     0,    15,    16,    17,    18,    13,     0,     0,    19,     0,
    20,     0,    21,    22,     0,     0,     0,     0,   124,     0,
     0,     0,     0,    14,     0,     0,     0,    15,    16,    17,
    18,     0,     0,     0,    19,     0,    20,     0,    21,    22,
    64,    65,    66,    67,    68,    69,    70,    71,    72,    73,
    74,    75,    76,    77,    78,    79,    80,    81,    14,     0,
     0,     0,    15,    16,    17,    18,     0,     0,     0,    19,
   148,    20,     0,    21,    22,    82,    64,    65,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    76,    77,
    78,    79,    80,    81,    14,     0,     0,     0,    15,    16,
    17,    18,     0,     0,     0,    19,   164,    20,     0,    21,
    22,    89,    64,    65,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    76,    77,    78,    79,    80,    81,
    14,     0,     0,     0,    15,    16,    17,    18,     0,     0,
     0,    19,     0,    20,     0,    21,    22,   145,    64,    65,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    81,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    93,     0,     0,     0,
     0,     0,    94,    64,    65,    66,    67,    68,    69,    70,
    71,    72,    73,    74,    75,    76,    77,    78,    79,    80,
    81,     0,     0,     0,     0,     0,     0,     0,     0,   156,
     0,     0,     0,     0,     0,     0,     0,   157,    64,    65,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    81,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
    80,    81,   168,    64,    65,    66,    67,    68,    69,    70,
    71,    72,    73,    74,    75,    76,    77,    78,    79,    80,
    81,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    81,     0,   185,    64,    65,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    81,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,   150,    64,    65,    66,
    67,    68,    69,    70,    71,    72,    73,    74,    75,    76,
    77,    78,    79,    80,    81,     0,     0,     0,     0,     0,
     0,     0,     0,    92,    64,    65,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
    80,    81,     0,     0,     0,     0,     0,     0,     0,     0,
   123,    64,    65,    66,    67,    68,    69,    70,    71,    72,
    73,    74,    75,    76,    77,    78,    79,    80,    81,     0,
     0,     0,     0,     0,     0,     0,     0,   126,    64,    65,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    81,     0,     0,     0,     0,
     0,     0,     0,     0,   163,    64,    65,    66,    67,    68,
    69,    70,    71,    72,    73,    74,    75,    76,    77,    78,
    79,    80,    81,     0,     0,     0,     0,     0,     0,     0,
     0,   166,    64,    65,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    76,    77,    78,    79,    80,    81,
     0,     0,     0,     0,     0,     0,     0,     0,   179,    64,
    65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
    75,    76,    77,    78,    79,    80,    81,     0,     0,     0,
     0,     0,     0,     0,     0,   186,    64,    65,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    76,    77,
    78,    79,    80,    81,     0,     0,     0,     0,     0,     0,
     0,     0,   190,    64,    65,    66,    67,    68,    69,    70,
    71,    72,    73,    74,    75,    76,    77,    78,    79,    80,
    81,    68,    69,    70,    71,    72,    73,    74,    75,    76,
    77,    78,    79,    80,    81,    69,    70,    71,    72,    73,
    74,    75,    76,    77,    78,    79,    80,    81,    71,    72,
    73,    74,    75,    76,    77,    78,    79,    80,    81
};

static const short yycheck[] = {     0,
    19,    16,    12,   156,    14,   158,    18,    17,    18,    19,
    20,     9,    15,    16,    45,    45,    19,    17,    18,    18,
    45,    44,    53,    53,    27,    37,    38,    45,    53,    39,
   183,    41,    44,    45,    51,    53,    51,    44,    37,    38,
    38,    54,    40,    54,    44,    44,    34,    35,    36,    46,
    60,    44,    49,    63,    64,    65,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
    80,    81,    53,    54,     3,    10,    86,    45,    97,    44,
    90,    44,    44,    49,    94,    18,    96,    97,    33,     8,
    44,     0,    37,    38,    39,    40,    99,    54,     0,    44,
   129,    46,   159,    48,    49,   157,    -1,    99,    -1,    54,
     3,     4,     5,     6,   124,    -1,    -1,   127,    -1,   129,
    -1,   131,    15,    -1,    -1,   123,    -1,    -1,   126,    -1,
    -1,   141,   133,    -1,    -1,   145,    -1,    33,   157,    -1,
   159,    37,    38,    39,    40,   143,    -1,    -1,    44,    45,
    46,    -1,    48,    49,    -1,   156,    -1,   158,   168,   169,
    -1,    -1,    -1,   161,    -1,   163,   164,    30,    31,    32,
    33,    34,    35,    36,    -1,   185,    32,    33,    34,    35,
    36,   179,   183,     3,     4,     5,     6,     7,    -1,     9,
    10,    11,    12,    13,    14,    15,    20,    21,    22,    23,
    24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
    34,    35,    36,    33,    -1,    -1,    -1,    37,    38,    39,
    40,    -1,    -1,    -1,    44,    -1,    46,    -1,    48,    49,
    50,    51,    52,    -1,    54,     3,     4,     5,     6,     7,
    -1,     9,    10,    11,    12,    13,    14,    15,    33,    -1,
    -1,    -1,    37,    38,    39,    40,    -1,    -1,    -1,    44,
    45,    46,    -1,    48,    49,    33,    -1,    -1,    -1,    37,
    38,    39,    40,    -1,    -1,    -1,    44,    -1,    46,    -1,
    48,    49,    50,    51,    52,    -1,    54,     3,     4,     5,
     6,     7,    -1,     9,    10,    11,    12,    13,    14,    15,
    -1,    -1,    -1,    -1,    -1,    -1,     3,     4,     5,     6,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    33,    15,    -1,
    -1,    37,    38,    39,    40,    -1,    -1,    -1,    44,    -1,
    46,    -1,    48,    49,    50,    51,    33,    -1,    54,    -1,
    37,    38,    39,    40,    -1,    -1,    -1,    44,    45,    46,
    -1,    48,    49,     3,     4,     5,     6,    33,    -1,    -1,
    -1,    37,    38,    39,    40,    15,    -1,    -1,    44,    -1,
    46,    -1,    48,    49,    -1,    -1,    -1,    -1,    54,    -1,
    -1,    -1,    -1,    33,    -1,    -1,    -1,    37,    38,    39,
    40,    -1,    -1,    -1,    44,    -1,    46,    -1,    48,    49,
    19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
    29,    30,    31,    32,    33,    34,    35,    36,    33,    -1,
    -1,    -1,    37,    38,    39,    40,    -1,    -1,    -1,    44,
    45,    46,    -1,    48,    49,    54,    19,    20,    21,    22,
    23,    24,    25,    26,    27,    28,    29,    30,    31,    32,
    33,    34,    35,    36,    33,    -1,    -1,    -1,    37,    38,
    39,    40,    -1,    -1,    -1,    44,    45,    46,    -1,    48,
    49,    54,    19,    20,    21,    22,    23,    24,    25,    26,
    27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
    33,    -1,    -1,    -1,    37,    38,    39,    40,    -1,    -1,
    -1,    44,    -1,    46,    -1,    48,    49,    54,    19,    20,
    21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
    31,    32,    33,    34,    35,    36,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    47,    -1,    -1,    -1,
    -1,    -1,    53,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
    36,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    53,    19,    20,
    21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
    31,    32,    33,    34,    35,    36,    21,    22,    23,    24,
    25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
    35,    36,    53,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
    36,    22,    23,    24,    25,    26,    27,    28,    29,    30,
    31,    32,    33,    34,    35,    36,    -1,    53,    19,    20,
    21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
    31,    32,    33,    34,    35,    36,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    47,    19,    20,    21,
    22,    23,    24,    25,    26,    27,    28,    29,    30,    31,
    32,    33,    34,    35,    36,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    45,    19,    20,    21,    22,    23,    24,
    25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
    35,    36,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    19,    20,    21,    22,    23,    24,    25,    26,    27,
    28,    29,    30,    31,    32,    33,    34,    35,    36,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    19,    20,
    21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
    31,    32,    33,    34,    35,    36,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    45,    19,    20,    21,    22,    23,
    24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
    34,    35,    36,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    45,    19,    20,    21,    22,    23,    24,    25,    26,
    27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    19,
    20,    21,    22,    23,    24,    25,    26,    27,    28,    29,
    30,    31,    32,    33,    34,    35,    36,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    45,    19,    20,    21,    22,
    23,    24,    25,    26,    27,    28,    29,    30,    31,    32,
    33,    34,    35,    36,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
    36,    23,    24,    25,    26,    27,    28,    29,    30,    31,
    32,    33,    34,    35,    36,    24,    25,    26,    27,    28,
    29,    30,    31,    32,    33,    34,    35,    36,    26,    27,
    28,    29,    30,    31,    32,    33,    34,    35,    36
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
#line 3 "/usr/share/bison.simple"

/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not GNU C.  */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#include <alloca.h>
#else /* not sparc */
#if defined (MSDOS) && !defined (__TURBOC__)
#include <malloc.h>
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#include <malloc.h>
 #pragma alloca
#else /* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca (unsigned int);
};
#else /* not __cplusplus */
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc.  */
#endif /* not GNU C.  */
#endif /* alloca not defined.  */

/* This is the parser code that is written into each bison parser
  when the %semantic_parser declaration is not specified in the grammar.
  It was written by Richard Stallman by simplifying the hairy parser
  used when %semantic_parser is specified.  */

/* Note: there must be only one dollar sign in this file.
   It is replaced by the list of actions, each action
   as one case of the switch.  */

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		-2
#define YYEOF		0
#define YYACCEPT	return(0)
#define YYABORT 	return(1)
#define YYERROR		goto yyerrlab1
/* Like YYERROR except do call yyerror.
   This remains here temporarily to ease the
   transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
#define YYFAIL		goto yyerrlab
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(token, value) \
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    { yychar = (token), yylval = (value);			\
      yychar1 = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { yyerror ("syntax error: cannot back up"); YYERROR; }	\
while (0)

#define YYTERROR	1
#define YYERRCODE	256

#ifndef YYPURE
#define YYLEX		yylex()
#endif

#ifdef YYPURE
#ifdef YYLSP_NEEDED
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, &yylloc, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval, &yylloc)
#endif
#else /* not YYLSP_NEEDED */
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval)
#endif
#endif /* not YYLSP_NEEDED */
#endif

/* If nonreentrant, generate the variables here */

#ifndef YYPURE

int	yychar;			/*  the lookahead symbol		*/
YYSTYPE	yylval;			/*  the semantic value of the		*/
				/*  lookahead symbol			*/

#ifdef YYLSP_NEEDED
YYLTYPE yylloc;			/*  location data for the lookahead	*/
				/*  symbol				*/
#endif

int yynerrs;			/*  number of parse errors so far       */
#endif  /* not YYPURE */

#if YYDEBUG != 0
int yydebug;			/*  nonzero means print parse trace	*/
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
#endif

/*  YYINITDEPTH indicates the initial size of the parser's stacks	*/

#ifndef	YYINITDEPTH
#define YYINITDEPTH 200
#endif

/*  YYMAXDEPTH is the maximum size the stacks can grow to
    (effective only if the built-in stack extension method is used).  */

#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif

/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
int yyparse (void);
#endif

#if __GNUC__ > 1		/* GNU C and GNU C++ define this.  */
#define __yy_memcpy(FROM,TO,COUNT)	__builtin_memcpy(TO,FROM,COUNT)
#else				/* not GNU C or C++ */
#ifndef __cplusplus

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (from, to, count)
     char *from;
     char *to;
     int count;
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#else /* __cplusplus */

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (char *from, char *to, int count)
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#endif
#endif

#line 192 "/usr/share/bison.simple"

YYSTYPE yyval;/* The user can define YYPARSE_PARAM as the name of an argument to be passed
   into yyparse.  The argument should have type void *.
   It should actually point to an object.
   Grammar actions can access the variable by casting it
   to the proper pointer type.  */

#ifdef YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#else
#define YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#endif

int
yyparse(YYPARSE_PARAM)
     YYPARSE_PARAM_DECL
{
  register int yystate;
  register int yyn;
  register short *yyssp;
  register YYSTYPE *yyvsp;
  int yyerrstatus;	/*  number of tokens to shift before error messages enabled */
  int yychar1 = 0;		/*  lookahead token as an internal (translated) token number */

  short	yyssa[YYINITDEPTH];	/*  the state stack			*/
  YYSTYPE yyvsa[YYINITDEPTH];	/*  the semantic value stack		*/

  short *yyss = yyssa;		/*  refer to the stacks thru separate pointers */
  YYSTYPE *yyvs = yyvsa;	/*  to allow yyoverflow to reallocate them elsewhere */

#ifdef YYLSP_NEEDED
  YYLTYPE yylsa[YYINITDEPTH];	/*  the location stack			*/
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;

#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
#define YYPOPSTACK   (yyvsp--, yyssp--)
#endif

  int yystacksize = YYINITDEPTH;

#ifdef YYPURE
  int yychar;
  YYSTYPE yylval;
  int yynerrs;
#ifdef YYLSP_NEEDED
  YYLTYPE yylloc;
#endif
#endif

  		/*  the variable used to return		*/
				/*  semantic values from the action	*/
				/*  routines				*/

  int yylen;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Starting parse\n");
#endif

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY;		/* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

  yyssp = yyss - 1;
  yyvsp = yyvs;
#ifdef YYLSP_NEEDED
  yylsp = yyls;
#endif

/* Push a new state, which is found in  yystate  .  */
/* In all cases, when you get here, the value and location stacks
   have just been pushed. so pushing a state here evens the stacks.  */
yynewstate:

  *++yyssp = yystate;

  if (yyssp >= yyss + yystacksize - 1)
    {
      /* Give user a chance to reallocate the stack */
      /* Use copies of these so that the &'s don't force the real ones into memory. */
      YYSTYPE *yyvs1 = yyvs;
      short *yyss1 = yyss;
#ifdef YYLSP_NEEDED
      YYLTYPE *yyls1 = yyls;
#endif

      /* Get the current used size of the three stacks, in elements.  */
      int size = yyssp - yyss + 1;

#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of
	 the data in use in that stack, in bytes.  */
#ifdef YYLSP_NEEDED
      /* This used to be a conditional around just the two extra args,
	 but that might be undefined if yyoverflow is a macro.  */
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yyls1, size * sizeof (*yylsp),
		 &yystacksize);
#else
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yystacksize);
#endif

      yyss = yyss1; yyvs = yyvs1;
#ifdef YYLSP_NEEDED
      yyls = yyls1;
#endif
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
	{
	  yyerror("parser stack overflow");
	  return 2;
	}
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;
      yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
      __yy_memcpy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
      yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
      __yy_memcpy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
      yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
      __yy_memcpy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
#endif
#endif /* no yyoverflow */

      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
      yylsp = yyls + size - 1;
#endif

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif

      if (yyssp >= yyss + yystacksize - 1)
	YYABORT;
    }

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Entering state %d\n", yystate);
#endif

  goto yybackup;
 yybackup:

/* Do appropriate processing given the current state.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* yyresume: */

  /* First try to decide what to do without reference to lookahead token.  */

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */

  if (yychar == YYEMPTY)
    {
#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Reading a token: ");
#endif
      yychar = YYLEX;
    }

  /* Convert token to internal form (in yychar1) for indexing tables with */

  if (yychar <= 0)		/* This means end of input. */
    {
      yychar1 = 0;
      yychar = YYEOF;		/* Don't call YYLEX any more */

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Now at end of input.\n");
#endif
    }
  else
    {
      yychar1 = YYTRANSLATE(yychar);

#if YYDEBUG != 0
      if (yydebug)
	{
	  fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
	  /* Give the individual parser a way to print the precise meaning
	     of a token, for further debugging info.  */
#ifdef YYPRINT
	  YYPRINT (stderr, yychar, yylval);
#endif
	  fprintf (stderr, ")\n");
	}
#endif
    }

  yyn += yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
    goto yydefault;

  yyn = yytable[yyn];

  /* yyn is what to do for this token type in this state.
     Negative => reduce, -yyn is rule number.
     Positive => shift, yyn is new state.
       New state is final state => don't bother to shift,
       just return success.
     0, or most negative number => error.  */

  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrlab;

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
#endif

  /* Discard the token being shifted unless it is eof.  */
  if (yychar != YYEOF)
    yychar = YYEMPTY;

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  /* count tokens shifted since error; after three, turn off error status.  */
  if (yyerrstatus) yyerrstatus--;

  yystate = yyn;
  goto yynewstate;

/* Do the default action for the current state.  */
yydefault:

  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;

/* Do a reduction.  yyn is the number of a rule to reduce with.  */
yyreduce:
  yylen = yyr2[yyn];
  if (yylen > 0)
    yyval = yyvsp[1-yylen]; /* implement default value of the action */

#if YYDEBUG != 0
  if (yydebug)
    {
      int i;

      fprintf (stderr, "Reducing via rule %d (line %d), ",
	       yyn, yyrline[yyn]);

      /* Print the symbols being reduced, and their result.  */
      for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
	fprintf (stderr, "%s ", yytname[yyrhs[i]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
#endif


  switch (yyn) {

case 1:
#line 114 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"block: '{' '}'");
#endif
  yyval.t18 = new type_block();
  if (!yyval.t18) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t18->line=yylsp[-1].first_line;
#endif
  type_stmt_list* stmt_list=new type_stmt_list();
  if (!stmt_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t18->stmt_list=stmt_list;
  type_stack_entry stke;
  yyval.t18->stack.insert_listelem(stke);
  yyval.t18->file=filei;
  yyval.t18->perms=0xFFFFFFFF;
  instoken(TYPE_BLOCK,yyval.t18);
;
    break;}
case 2:
#line 133 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"block: '{' stmt_list '}'");
#endif
  yyval.t18 = new type_block();
  if (!yyval.t18) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t18->line=yylsp[-2].first_line;
#endif
  yyval.t18->stmt_list=yyvsp[-1].t17;
  type_stack_entry stke;
  yyval.t18->stack.insert_listelem(stke);
  yyval.t18->file=filei;
  yyval.t18->perms=0xFFFFFFFF;
  instoken(TYPE_BLOCK,yyval.t18);
  deltoken(yyvsp[-1].t17);
;
    break;}
case 3:
#line 153 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"type: LONG");
#endif
  yyval.t1 = TYPE_VALUE_LONG;
;
    break;}
case 4:
#line 160 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"type: UNSIGNED LONG");
#endif
  yyval.t1 = TYPE_VALUE_ULONG;
;
    break;}
case 5:
#line 167 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"type: DOUBLE");
#endif
  yyval.t1 = TYPE_VALUE_DOUBLE;
;
    break;}
case 6:
#line 174 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"type: STRING");
#endif
  yyval.t1 = TYPE_VALUE_STRING;
;
    break;}
case 7:
#line 181 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"type: VOID");
#endif
  yyval.t1 = TYPE_VALUE_VOID;
;
    break;}
case 8:
#line 190 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"reference: NAME");
#endif
  yyval.t3 = new type_reference();
  if (!yyval.t3) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t3->line=yylsp[0].first_line;
#endif
  yyval.t3->type=TYPE_REFERENCE_SIMPLE;
  yyval.t3->name=*yyvsp[0].t0;
  yyval.t3->file=filei;
  instoken(TYPE_REFERENCE,yyval.t3);
  delete yyvsp[0].t0;
;
    break;}
case 9:
#line 206 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"reference: '[' expr ']'");
#endif
  yyval.t3 = new type_reference();
  if (!yyval.t3) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t3->line=yylsp[-2].first_line;
#endif
  yyval.t3->type=TYPE_REFERENCE_COMPLEX;
  yyval.t3->counter=0;
  yyval.t3->expr=yyvsp[-1].t6;
  yyval.t3->file=filei;
  instoken(TYPE_REFERENCE,yyval.t3);
  deltoken(yyvsp[-1].t6);
;
    break;}
case 10:
#line 223 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"reference: '[' expr ',' expr ']'");
#endif
  yyval.t3 = new type_reference();
  if (!yyval.t3) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t3->line=yylsp[-4].first_line;
#endif
  yyval.t3->type=TYPE_REFERENCE_COMPLEX;
  yyval.t3->counter=yyvsp[-1].t6;
  yyval.t3->expr=yyvsp[-3].t6;
  yyval.t3->file=filei;
  instoken(TYPE_REFERENCE,yyval.t3);
  deltoken(yyvsp[-3].t6);
  deltoken(yyvsp[-1].t6);
;
    break;}
case 11:
#line 243 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr_list: expr");
#endif
  yyval.t4 = new type_expr_list();
  if (!yyval.t4) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t4->exprs.insert_listelem(*yyvsp[0].t6);
  instoken(TYPE_EXPR_LIST,yyval.t4);
  delete yyvsp[0].t6;
  deltoken(yyvsp[0].t6);
;
    break;}
case 12:
#line 255 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr_list: expr_list ',' expr");
#endif
  yyvsp[-2].t4->exprs.insert_listelem(*yyvsp[0].t6,yyvsp[-2].t4->exprs.length());
  yyval.t4=yyvsp[-2].t4;
  delete yyvsp[0].t6;
  deltoken(yyvsp[0].t6);
;
    break;}
case 13:
#line 267 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_call: reference '(' expr_list ')'");
#endif
  yyval.t5 = new type_function_call();
  if (!yyval.t5) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t5->line=yylsp[-3].first_line;
#endif
  yyval.t5->reference=yyvsp[-3].t3;
  yyval.t5->expr_list=yyvsp[-1].t4;
  yyval.t5->file=filei;
  yyval.t5->nofatal=0;
  instoken(TYPE_FUNCTION_CALL,yyval.t5);
  deltoken(yyvsp[-3].t3);deltoken(yyvsp[-1].t4);
;
    break;}
case 14:
#line 285 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"function_call: reference '(' ')'");
#endif
  yyval.t5 = new type_function_call();
  if (!yyval.t5) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t5->line=yylsp[-2].first_line;
#endif
  yyval.t5->reference=yyvsp[-2].t3;
  type_expr_list* expr_list=new type_expr_list();
  if (!expr_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t5->expr_list=expr_list;
  yyval.t5->file=filei;
  yyval.t5->nofatal=0;
  instoken(TYPE_FUNCTION_CALL,yyval.t5);
  deltoken(yyvsp[-2].t3);
;
    break;}
case 15:
#line 304 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_call: '(' reference ')' '(' expr_list ')'");
#endif
  yyval.t5 = new type_function_call();
  if (!yyval.t5) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t5->line=yylsp[-5].first_line;
#endif
  yyval.t5->reference=yyvsp[-4].t3;
  yyval.t5->expr_list=yyvsp[-1].t4;
  yyval.t5->file=filei;
  yyval.t5->nofatal=1;
  instoken(TYPE_FUNCTION_CALL,yyval.t5);
  deltoken(yyvsp[-4].t3);deltoken(yyvsp[-1].t4);
;
    break;}
case 16:
#line 322 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_call: '(' reference ')' '(' ')'");
#endif
  yyval.t5 = new type_function_call();
  if (!yyval.t5) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t5->line=yylsp[-4].first_line;
#endif
  yyval.t5->reference=yyvsp[-3].t3;
  type_expr_list* expr_list=new type_expr_list();
  if (!expr_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t5->expr_list=expr_list;
  yyval.t5->file=filei;
  yyval.t5->nofatal=1;
  instoken(TYPE_FUNCTION_CALL,yyval.t5);
  deltoken(yyvsp[-3].t3);
;
    break;}
case 17:
#line 344 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: CONST");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[0].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_CONST;
  yyval.t6->uptr.constant=yyvsp[0].t2;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
;
    break;}
case 18:
#line 359 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: reference");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[0].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_REFERENCE;
  yyval.t6->uptr.reference=yyvsp[0].t3;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t3);
;
    break;}
case 19:
#line 375 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: function_call");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[0].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_FUNCTION_CALL;
  yyval.t6->uptr.function_call=yyvsp[0].t5;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t5);
;
    break;}
case 20:
#line 391 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: reference '=' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_ASSIGNMENT;
  yyval.t6->uptr.reference=yyvsp[-2].t3;
  yyval.t6->expr1=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t3);
  deltoken(yyvsp[0].t6);
;
    break;}
case 21:
#line 409 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: reference PLUSPLUS");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-1].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_POSTINKREMENT;
  yyval.t6->uptr.reference=yyvsp[-1].t3;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-1].t3);
;
    break;}
case 22:
#line 425 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: reference MINUSMINUS");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-1].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_POSTDEKREMENT;
  yyval.t6->uptr.reference=yyvsp[-1].t3;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-1].t3);
;
    break;}
case 23:
#line 441 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: PLUSPLUS reference");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-1].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_PREINCREMENT;
  yyval.t6->uptr.reference=yyvsp[0].t3;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t3);
;
    break;}
case 24:
#line 457 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: MINUSMINUS reference");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-1].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_PREDECREMENT;
  yyval.t6->uptr.reference=yyvsp[0].t3;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t3);
;
    break;}
case 25:
#line 473 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: '(' expr ')'");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_EXPR;
  yyval.t6->expr1=yyvsp[-1].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-1].t6);
;
    break;}
case 26:
#line 489 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: '(' type ')' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-3].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_CAST;
  yyval.t6->expr1=yyvsp[0].t6;
  yyval.t6->cast=yyvsp[-2].t1;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 27:
#line 506 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: '-' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-1].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_ONE;
  yyval.t6->optype=TYPE_OPERATOR_ONE_NEG_AR;
  yyval.t6->expr1=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 28:
#line 523 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: '~' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-1].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_ONE;
  yyval.t6->optype=TYPE_OPERATOR_ONE_NEG_BIT;
  yyval.t6->expr1=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 29:
#line 540 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: '!' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-1].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_ONE;
  yyval.t6->optype=TYPE_OPERATOR_ONE_NEG_BOOL;
  yyval.t6->expr1=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 30:
#line 557 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '*' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_MULT;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 31:
#line 576 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '/' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_DIV;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 32:
#line 595 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '%' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_MODULO;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 33:
#line 614 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '+' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_PLUS;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 34:
#line 633 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '-' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_MINUS;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 35:
#line 652 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr SHIFTLEFT expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_SHIFTLEFT;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 36:
#line 671 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr SHIFTRIGHT expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_SHIFTRIGHT;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 37:
#line 690 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '<' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_LOWER;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 38:
#line 709 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '>' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_GREATER;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 39:
#line 728 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr LE expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_LE;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 40:
#line 747 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr GE expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_GE;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 41:
#line 766 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr EQUAL expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_EQUAL;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 42:
#line 785 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr NOTEQUAL expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_NOTEQUAL;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 43:
#line 804 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '&' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_AND_BIT;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 44:
#line 823 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '^' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_EOR_BIT;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 45:
#line 842 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr '|' expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_OR_BIT;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 46:
#line 861 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr AND expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_AND_BOOL;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 47:
#line 880 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr: expr OR expr");
#endif
  yyval.t6 = new type_expr();
  if (!yyval.t6) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t6->line=yylsp[-2].first_line;
#endif
  yyval.t6->type=TYPE_EXPR_OPERATOR_TWO;
  yyval.t6->expr1=yyvsp[-2].t6;
  yyval.t6->optype=TYPE_OPERATOR_TWO_OR_BOOL;
  yyval.t6->expr2=yyvsp[0].t6;
  yyval.t6->file=filei;
  instoken(TYPE_EXPR,yyval.t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t6);
;
    break;}
case 48:
#line 901 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"arg_list_entry: type NAME");
#endif
  yyval.t19 = new type_arg_list_entry();
  if (!yyval.t19) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t19->line=yylsp[-1].first_line;
#endif
  yyval.t19->argtype=yyvsp[-1].t1;
  yyval.t19->argname=*yyvsp[0].t0;
  yyval.t19->file=filei;
  instoken(TYPE_ARG_LIST_ENTRY,yyval.t19);
  delete yyvsp[0].t0;
;
    break;}
case 49:
#line 919 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"arg_list: arg_list_entry");
#endif
  yyval.t7 = new type_arg_list();
  if (!yyval.t7) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t7->args.insert_listelem(*yyvsp[0].t19);
  instoken(TYPE_ARG_LIST,yyval.t7);
  delete yyvsp[0].t19;
  deltoken(yyvsp[0].t19);
;
    break;}
case 50:
#line 931 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"arg_list: arg_list ',' arg_list_entry");
#endif
  yyvsp[-2].t7->args.insert_listelem(*yyvsp[0].t19,yyvsp[-2].t7->args.length());
  yyval.t7=yyvsp[-2].t7;
  delete yyvsp[0].t19;
  deltoken(yyvsp[0].t19);
;
    break;}
case 51:
#line 943 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: external_stmt");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_EXTERNAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-2].first_line;
#endif
  yyval.t8->returntype=yyvsp[-2].t1;
  yyval.t8->reference=yyvsp[-1].t3;
  type_arg_list* arg_list=new type_arg_list();
  if (!arg_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->args=arg_list;
  yyval.t8->external_stmt=yyvsp[0].t21;
  yyval.t8->opt_expr=0;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-1].t3);
  deltoken(yyvsp[0].t21);
;
    break;}
case 52:
#line 967 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' arg_list ')' block");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_NORMAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-5].first_line;
#endif
  yyval.t8->returntype=yyvsp[-5].t1;
  yyval.t8->reference=yyvsp[-4].t3;
  yyval.t8->args=yyvsp[-2].t7;
  yyval.t8->myblock=yyvsp[0].t18;
  yyval.t8->opt_expr=0;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-4].t3);
  deltoken(yyvsp[-2].t7);
  deltoken(yyvsp[0].t18);
;
    break;}
case 53:
#line 990 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' ')' block");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_NORMAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-4].first_line;
#endif
  yyval.t8->returntype=yyvsp[-4].t1;
  yyval.t8->reference=yyvsp[-3].t3;
  type_arg_list* arg_list=new type_arg_list();
  if (!arg_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->args=arg_list;
  yyval.t8->myblock=yyvsp[0].t18;
  yyval.t8->opt_expr=0;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-3].t3);
  deltoken(yyvsp[0].t18);
;
    break;}
case 54:
#line 1014 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' arg_list ')' eval_stmt");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_EVAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-5].first_line;
#endif
  yyval.t8->returntype=yyvsp[-5].t1;
  yyval.t8->reference=yyvsp[-4].t3;
  yyval.t8->args=yyvsp[-2].t7;
  yyval.t8->eval_stmt=yyvsp[0].t20;
  yyval.t8->opt_expr=0;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-4].t3);
  deltoken(yyvsp[-2].t7);
  deltoken(yyvsp[0].t20);
;
    break;}
case 55:
#line 1037 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' ')' eval_stmt");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_EVAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-4].first_line;
#endif
  yyval.t8->returntype=yyvsp[-4].t1;
  yyval.t8->reference=yyvsp[-3].t3;
  type_arg_list* arg_list=new type_arg_list();
  if (!arg_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->args=arg_list;
  yyval.t8->eval_stmt=yyvsp[0].t20;
  yyval.t8->opt_expr=0;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-3].t3);
  deltoken(yyvsp[0].t20);
;
    break;}
case 56:
#line 1061 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' expr ',' arg_list ')' block");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_NORMAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-7].first_line;
#endif
  yyval.t8->returntype=yyvsp[-7].t1;
  yyval.t8->reference=yyvsp[-6].t3;
  yyval.t8->opt_expr=yyvsp[-4].t6;
  yyval.t8->args=yyvsp[-2].t7;
  yyval.t8->myblock=yyvsp[0].t18;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-6].t3);
  deltoken(yyvsp[-4].t6);
  deltoken(yyvsp[-2].t7);
  deltoken(yyvsp[0].t18);
;
    break;}
case 57:
#line 1085 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' expr ')' block");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_NORMAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-5].first_line;
#endif
  yyval.t8->returntype=yyvsp[-5].t1;
  yyval.t8->reference=yyvsp[-4].t3;
  yyval.t8->opt_expr=yyvsp[-2].t6;
  type_arg_list* arg_list=new type_arg_list();
  if (!arg_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->args=arg_list;
  yyval.t8->myblock=yyvsp[0].t18;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-4].t3);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t18);
;
    break;}
case 58:
#line 1111 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' expr ',' arg_list ')' eval_stmt");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_EVAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-7].first_line;
#endif
  yyval.t8->returntype=yyvsp[-7].t1;
  yyval.t8->reference=yyvsp[-6].t3;
  yyval.t8->opt_expr=yyvsp[-4].t6;
  yyval.t8->args=yyvsp[-2].t7;
  yyval.t8->eval_stmt=yyvsp[0].t20;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-6].t3);
  deltoken(yyvsp[-4].t6);
  deltoken(yyvsp[-2].t7);
  deltoken(yyvsp[0].t20);
;
    break;}
case 59:
#line 1135 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "function_dekl: type reference '(' expr ')' eval_stmt");
#endif
  yyval.t8 = new type_function_dekl();
  if (!yyval.t8) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->type=TYPE_FUNC_DEKL_EVAL;
#ifdef YYLSP_NEEDED
  yyval.t8->line=yylsp[-5].first_line;
#endif
  yyval.t8->returntype=yyvsp[-5].t1;
  yyval.t8->reference=yyvsp[-4].t3;
  yyval.t8->opt_expr=yyvsp[-2].t6;
  type_arg_list* arg_list=new type_arg_list();
  if (!arg_list) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t8->args=arg_list;
  yyval.t8->eval_stmt=yyvsp[0].t20;
  yyval.t8->file=filei;
  instoken(TYPE_FUNCTION_DEKL,yyval.t8);
  deltoken(yyvsp[-4].t3);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t20);
;
    break;}
case 60:
#line 1162 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"dekl_list_entry: reference");
#endif
  yyval.t9 = new type_dekl_list_entry();
  if (!yyval.t9) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t9->line=yylsp[0].first_line;
#endif
  yyval.t9->type=TYPE_DEKL_LIST_ENTRY_REF;
  yyval.t9->reference=yyvsp[0].t3;
  yyval.t9->file=filei;
  instoken(TYPE_DEKL_LIST_ENTRY,yyval.t9);
  deltoken(yyvsp[0].t3);
;
    break;}
case 61:
#line 1178 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"dekl_list_entry: reference '=' expr");
#endif
  yyval.t9 = new type_dekl_list_entry();
  if (!yyval.t9) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t9->line=yylsp[-2].first_line;
#endif
  yyval.t9->type=TYPE_DEKL_LIST_ENTRY_REFINIT;
  yyval.t9->reference=yyvsp[-2].t3;
  yyval.t9->expr=yyvsp[0].t6;
  yyval.t9->file=filei;
  instoken(TYPE_DEKL_LIST_ENTRY,yyval.t9);
  deltoken(yyvsp[-2].t3);
  deltoken(yyvsp[0].t6);
;
    break;}
case 62:
#line 1198 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"dekl_list: dekl_list_entry");
#endif
  yyval.t10 = new type_dekl_list();
  if (!yyval.t10) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t10->entrys.insert_listelem(*yyvsp[0].t9);
  instoken(TYPE_DEKL_LIST,yyval.t10);
  delete yyvsp[0].t9;
  deltoken(yyvsp[0].t9);
;
    break;}
case 63:
#line 1210 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "dekl_list: dekl_list ',' dekl_list_entry");
#endif
  yyvsp[-2].t10->entrys.insert_listelem(*yyvsp[0].t9,yyvsp[-2].t10->entrys.length());
  yyval.t10=yyvsp[-2].t10;
  delete yyvsp[0].t9;
  deltoken(yyvsp[0].t9);
;
    break;}
case 64:
#line 1223 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"variable_dekl: type dekl_list ';'");
#endif
  yyval.t11 = new type_variable_dekl();
  if (!yyval.t11) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t11->line=yylsp[-2].first_line;
#endif
  yyval.t11->vartype=yyvsp[-2].t1;
  yyval.t11->dekl_list=yyvsp[-1].t10;
  yyval.t11->file=filei;
  instoken(TYPE_VARIABLE_DEKL,yyval.t11);
  deltoken(yyvsp[-1].t10);
;
    break;}
case 65:
#line 1241 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr_stmt: ';'");
#endif
  yyval.t12 = new type_expr_stmt();
  if (!yyval.t12) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t12->line=yylsp[0].first_line;
#endif
  yyval.t12->type=TYPE_EXPR_STMT_EMPTY;
  yyval.t12->file=filei;
  instoken(TYPE_EXPR_STMT,yyval.t12);
;
    break;}
case 66:
#line 1255 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"expr_stmt: expr ';'");
#endif
  yyval.t12 = new type_expr_stmt();
  if (!yyval.t12) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t12->line=yylsp[-1].first_line;
#endif
  yyval.t12->type=TYPE_EXPR_STMT_DEFINED;
  yyval.t12->expr=yyvsp[-1].t6;
  yyval.t12->file=filei;
  instoken(TYPE_EXPR_STMT,yyval.t12);
  deltoken(yyvsp[-1].t6);
;
    break;}
case 67:
#line 1273 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"choice_stmt: IF '(' expr ')' stmt");
#endif
  yyval.t13 = new type_choice_stmt();
  if (!yyval.t13) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t13->line=yylsp[-4].first_line;
#endif
  yyval.t13->type=TYPE_CHOICE_STMT_IF;
  yyval.t13->expr=yyvsp[-2].t6;
  yyval.t13->stmt1=yyvsp[0].t16;
  yyval.t13->file=filei;
  instoken(TYPE_CHOICE_STMT,yyval.t13);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t16);
;
    break;}
case 68:
#line 1291 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "choice_stmt: IF '(' expr ')' stmt ELSE stmt");
#endif
  yyval.t13 = new type_choice_stmt();
  if (!yyval.t13) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t13->line=yylsp[-6].first_line;
#endif
  yyval.t13->type=TYPE_CHOICE_STMT_ELSE;
  yyval.t13->expr=yyvsp[-4].t6;
  yyval.t13->stmt1=yyvsp[-2].t16;
  yyval.t13->stmt2=yyvsp[0].t16;
  yyval.t13->file=filei;
  instoken(TYPE_CHOICE_STMT,yyval.t13);
  deltoken(yyvsp[-4].t6);
  deltoken(yyvsp[-2].t16);
  deltoken(yyvsp[0].t16);
;
    break;}
case 69:
#line 1314 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"loop_stmt: WHILE '(' expr ')' stmt");
#endif
  yyval.t14 = new type_loop_stmt();
  if (!yyval.t14) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t14->line=yylsp[-4].first_line;
#endif
  yyval.t14->type=TYPE_LOOP_STMT_WHILE;
  yyval.t14->expr=yyvsp[-2].t6;
  yyval.t14->stmt=yyvsp[0].t16;
  yyval.t14->expr_for=0;
  yyval.t14->stmt_for=0;
  yyval.t14->file=filei;
  instoken(TYPE_LOOP_STMT,yyval.t14);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t16);
;
    break;}
case 70:
#line 1334 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "loop_stmt: DO stmt WHILE '(' expr ')' ';'");
#endif
  yyval.t14 = new type_loop_stmt();
  if (!yyval.t14) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t14->line=yylsp[-6].first_line;
#endif
  yyval.t14->type=TYPE_LOOP_STMT_DO;
  yyval.t14->expr=yyvsp[-2].t6;
  yyval.t14->stmt=yyvsp[-5].t16;
  yyval.t14->expr_for=0;
  yyval.t14->stmt_for=0;
  yyval.t14->file=filei;
  instoken(TYPE_LOOP_STMT,yyval.t14);
  deltoken(yyvsp[-5].t16);
  deltoken(yyvsp[-2].t6);
;
    break;}
case 71:
#line 1355 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "loop_stmt: FOR '(' stmt expr ';' expr ')' stmt");
#endif
  yyval.t14 = new type_loop_stmt();
  if (!yyval.t14) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t14->line=yylsp[-7].first_line;
#endif
  yyval.t14->type=TYPE_LOOP_STMT_FOR;
  yyval.t14->expr=yyvsp[-4].t6;
  yyval.t14->expr_for=yyvsp[-2].t6;
  yyval.t14->stmt=yyvsp[0].t16;
  yyval.t14->stmt_for=yyvsp[-5].t16;
  yyval.t14->file=filei;
  instoken(TYPE_LOOP_STMT,yyval.t14);
  deltoken(yyvsp[-5].t16);
  deltoken(yyvsp[-4].t6);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t16);
;
    break;}
case 72:
#line 1378 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "loop_stmt: FOR '(' stmt ';' expr ')' stmt");
#endif
  yyval.t14 = new type_loop_stmt();
  if (!yyval.t14) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t14->line=yylsp[-6].first_line;
#endif
  yyval.t14->type=TYPE_LOOP_STMT_FOR;
  yyval.t14->expr=0;
  yyval.t14->expr_for=yyvsp[-2].t6;
  yyval.t14->stmt=yyvsp[0].t16;
  yyval.t14->stmt_for=yyvsp[-4].t16;
  yyval.t14->file=filei;
  instoken(TYPE_LOOP_STMT,yyval.t14);
  deltoken(yyvsp[-4].t16);
  deltoken(yyvsp[-2].t6);
  deltoken(yyvsp[0].t16);
;
    break;}
case 73:
#line 1400 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "loop_stmt: FOR '(' stmt expr ';' ')' stmt");
#endif
  yyval.t14 = new type_loop_stmt();
  if (!yyval.t14) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t14->line=yylsp[-6].first_line;
#endif
  yyval.t14->type=TYPE_LOOP_STMT_FOR;
  yyval.t14->expr=yyvsp[-3].t6;
  yyval.t14->expr_for=0;
  yyval.t14->stmt=yyvsp[0].t16;
  yyval.t14->stmt_for=yyvsp[-4].t16;
  yyval.t14->file=filei;
  instoken(TYPE_LOOP_STMT,yyval.t14);
  deltoken(yyvsp[-4].t16);
  deltoken(yyvsp[-3].t6);
  deltoken(yyvsp[0].t16);
;
    break;}
case 74:
#line 1422 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"loop_stmt: FOR '(' stmt ';' ')' stmt");
#endif
  yyval.t14 = new type_loop_stmt();
  if (!yyval.t14) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t14->line=yylsp[-5].first_line;
#endif
  yyval.t14->type=TYPE_LOOP_STMT_FOR;
  yyval.t14->expr=0;
  yyval.t14->expr_for=0;
  yyval.t14->stmt=yyvsp[0].t16;
  yyval.t14->stmt_for=yyvsp[-3].t16;
  yyval.t14->file=filei;
  instoken(TYPE_LOOP_STMT,yyval.t14);
  deltoken(yyvsp[-3].t16);
  deltoken(yyvsp[0].t16);
;
    break;}
case 75:
#line 1444 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"jump_stmt: BREAK ';'");
#endif
  yyval.t15 = new type_jump_stmt();
  if (!yyval.t15) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t15->line=yylsp[-1].first_line;
#endif
  yyval.t15->type=TYPE_JUMP_STMT_BREAK;
  yyval.t15->file=filei;
  instoken(TYPE_JUMP_STMT,yyval.t15);
;
    break;}
case 76:
#line 1458 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"jump_stmt: CONTINUE ';'");
#endif
  yyval.t15 = new type_jump_stmt();
  if (!yyval.t15) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t15->line=yylsp[-1].first_line;
#endif
  yyval.t15->type=TYPE_JUMP_STMT_CONTINUE;
  yyval.t15->file=filei;
  instoken(TYPE_JUMP_STMT,yyval.t15);
;
    break;}
case 77:
#line 1472 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"jump_stmt: RETURN ';'");
#endif
  yyval.t15 = new type_jump_stmt();
  if (!yyval.t15) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t15->line=yylsp[-1].first_line;
#endif
  yyval.t15->type=TYPE_JUMP_STMT_RETURN;
  yyval.t15->file=filei;
  instoken(TYPE_JUMP_STMT,yyval.t15);
;
    break;}
case 78:
#line 1486 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"jump_stmt: RETURN expr ';'");
#endif
  yyval.t15 = new type_jump_stmt();
  if (!yyval.t15) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t15->line=yylsp[-2].first_line;
#endif
  yyval.t15->type=TYPE_JUMP_STMT_RETURNVAL;
  yyval.t15->expr=yyvsp[-1].t6;
  yyval.t15->file=filei;
  instoken(TYPE_JUMP_STMT,yyval.t15);
  deltoken(yyvsp[-1].t6);
;
    break;}
case 79:
#line 1504 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "stmt: eval '(' expr ')'");
#endif
  yyval.t20 = new type_eval_stmt();
  if (!yyval.t20) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t20->line=yylsp[-3].first_line;
#endif
  yyval.t20->expr_code=yyvsp[-1].t6;
  yyval.t20->file=filei;
  instoken(TYPE_EVAL_STMT,yyval.t20);
  deltoken(yyvsp[-1].t6);
;
    break;}
case 80:
#line 1522 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,
      "stmt: external '(' expr ',' expr ',' expr ',' expr ')'");
#endif
  yyval.t21 = new type_external_stmt();
  if (!yyval.t21) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t21->line=yylsp[-7].first_line;
#endif
  yyval.t21->expr_handle=yyvsp[-5].t6;
  yyval.t21->expr_function=yyvsp[-3].t6;
  yyval.t21->expr_pw=yyvsp[-1].t6;
  yyval.t21->file=filei;
  instoken(TYPE_EXTERNAL_STMT,yyval.t21);
  deltoken(yyvsp[-5].t6);
  deltoken(yyvsp[-3].t6);
  deltoken(yyvsp[-1].t6);
;
    break;}
case 81:
#line 1544 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: variable_dekl");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_VARIABLE_DEKL;
  yyval.t16->uptr.variable_dekl=yyvsp[0].t11;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  deltoken(yyvsp[0].t11);
;
    break;}
case 82:
#line 1560 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: function_dekl");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_FUNCTION_DEKL;
  yyval.t16->uptr.function_dekl=yyvsp[0].t8;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  deltoken(yyvsp[0].t8);
;
    break;}
case 83:
#line 1576 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: expr_stmt");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_EXPR_STMT;
  yyval.t16->uptr.expr_stmt=yyvsp[0].t12;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  deltoken(yyvsp[0].t12);
;
    break;}
case 84:
#line 1592 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: block");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_BLOCK;
  yyval.t16->uptr.block=yyvsp[0].t18;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  deltoken(yyvsp[0].t18);
;
    break;}
case 85:
#line 1608 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: choice_stmt");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_CHOICE_STMT;
  yyval.t16->uptr.choice_stmt=yyvsp[0].t13;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  deltoken(yyvsp[0].t13);
;
    break;}
case 86:
#line 1624 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: loop_stmt");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_LOOP_STMT;
  yyval.t16->uptr.loop_stmt=yyvsp[0].t14;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  deltoken(yyvsp[0].t14);
;
    break;}
case 87:
#line 1640 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: jump_stmt");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_JUMP_STMT;
  yyval.t16->uptr.jump_stmt=yyvsp[0].t15;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  deltoken(yyvsp[0].t15);
;
    break;}
case 88:
#line 1656 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt: PRINT");
#endif
  yyval.t16 = new type_stmt();
  if (!yyval.t16) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
#ifdef YYLSP_NEEDED
  yyval.t16->line=yylsp[0].first_line;
#endif
  yyval.t16->type=TYPE_STMT_PRINT_STMT;
  yyval.t16->print_stmt=*yyvsp[0].t0;
  yyval.t16->file=filei;
  instoken(TYPE_STMT,yyval.t16);
  delete yyvsp[0].t0;
;
    break;}
case 89:
#line 1674 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt_list: stmt");
#endif
  yyval.t17 = new type_stmt_list();
  if (!yyval.t17) { log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL); };
  yyval.t17->stmts.insert_listelem(*yyvsp[0].t16);
  instoken(TYPE_STMT_LIST,yyval.t17);
  delete yyvsp[0].t16;
  deltoken(yyvsp[0].t16);
;
    break;}
case 90:
#line 1686 "boil.y"
{
#ifdef DEBUGGING
  log(LOG_DEBUG,__FILE__,__LINE__,0,"stmt_list: stmt_list stmt");
#endif
  yyvsp[-1].t17->stmts.insert_listelem(*yyvsp[0].t16,yyvsp[-1].t17->stmts.length());
  yyval.t17=yyvsp[-1].t17;
  delete yyvsp[0].t16;
  deltoken(yyvsp[0].t16);
;
    break;}
}
   /* the action file gets copied in in place of this dollarsign */
#line 487 "/usr/share/bison.simple"

  yyvsp -= yylen;
  yyssp -= yylen;
#ifdef YYLSP_NEEDED
  yylsp -= yylen;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

  *++yyvsp = yyval;

#ifdef YYLSP_NEEDED
  yylsp++;
  if (yylen == 0)
    {
      yylsp->first_line = yylloc.first_line;
      yylsp->first_column = yylloc.first_column;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->text = 0;
    }
  else
    {
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
    }
#endif

  /* Now "shift" the result of the reduction.
     Determine what state that goes to,
     based on the state we popped back to
     and the rule number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTBASE];

  goto yynewstate;

yyerrlab:   /* here on detecting error */

  if (! yyerrstatus)
    /* If not already recovering from an error, report this error.  */
    {
      ++yynerrs;

#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
	{
	  int size = 0;
	  char *msg;
	  int x, count;

	  count = 0;
	  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
	  for (x = (yyn < 0 ? -yyn : 0);
	       x < (sizeof(yytname) / sizeof(char *)); x++)
	    if (yycheck[x + yyn] == x)
	      size += strlen(yytname[x]) + 15, count++;
	  msg = (char *) malloc(size + 15);
	  if (msg != 0)
	    {
	      strcpy(msg, "parse error");

	      if (count < 5)
		{
		  count = 0;
		  for (x = (yyn < 0 ? -yyn : 0);
		       x < (sizeof(yytname) / sizeof(char *)); x++)
		    if (yycheck[x + yyn] == x)
		      {
			strcat(msg, count == 0 ? ", expecting `" : " or `");
			strcat(msg, yytname[x]);
			strcat(msg, "'");
			count++;
		      }
		}
	      yyerror(msg);
	      free(msg);
	    }
	  else
	    yyerror ("parse error; also virtual memory exceeded");
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror("parse error");
    }

  goto yyerrlab1;
yyerrlab1:   /* here on error raised explicitly by an action */

  if (yyerrstatus == 3)
    {
      /* if just tried and failed to reuse lookahead token after an error, discard it.  */

      /* return failure if at end of input */
      if (yychar == YYEOF)
	YYABORT;

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
#endif

      yychar = YYEMPTY;
    }

  /* Else will try to reuse lookahead token
     after shifting the error token.  */

  yyerrstatus = 3;		/* Each real token shifted decrements this */

  goto yyerrhandle;

yyerrdefault:  /* current state does not do anything special for the error token. */

#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  if (yyn) goto yydefault;
#endif

yyerrpop:   /* pop the current state because it cannot handle the error token */

  if (yyssp == yyss) YYABORT;
  yyvsp--;
  yystate = *--yyssp;
#ifdef YYLSP_NEEDED
  yylsp--;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "Error: state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

yyerrhandle:

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yyerrdefault;

  yyn += YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
    goto yyerrdefault;

  yyn = yytable[yyn];
  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrpop;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrpop;

  if (yyn == YYFINAL)
    YYACCEPT;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting error token, ");
#endif

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  yystate = yyn;
  goto yynewstate;
}
#line 1697 "boil.y"


/*

nonsemantic terminal tokens
---------------------------

LONG long
DOUBLE double
STRING string
VOID void
IF if
ELSE else
WHILE while
DO do
BREAK break
CONTINUE continue
RETURN return

SHIFTLEFT <<
SHIFTRIGHT >>
LE <=
GE >=
EQUAL ==
NOTEQUAL !=
AND &&
OR ||
PLUSPLUS ++
MINUSMINUS --

{ } * , ( ) - ! ~ / % + < > & ^ | = ; [ ]

terminal tokens
---------------

CONST
NAME

*/

joined_list<FILE*> prgs;
joined_list<char*> prgstrs;

joined_list<unsigned int> lines;
joined_list<string> files;
joined_list<unsigned int> fileis;

joined_list<string> filenames;

string directive,directive_arg;

int yylex()
{
  int c;
  char buf[2];
  buf[1]=0;
  type_value val;
  unsigned long number;

while (1)
  {
    if (first)
      {
	first=0;

	if (!first_line)
	  {
	    while (pgetchar()!='\n') { ; };
	  };

	if (embed)
	  {
	    wtype=T_PRINT;
#ifdef YYLSP_NEEDED
	    yylloc.first_line=line;
#endif
	    return '{';
	  };
      };

    if (lastchar)
      {
	c=lastchar;
	lastchar=0;
      }
    else
      {
	c=pgetchar();
      };

#ifdef YYLSP_NEEDED
    if (wtype==T_UNDEF)
      {
	yylloc.first_line=line;
      };
#endif
    
    /* EOF */
    if (!c || c==EOF || last)
      {
	if (prgs.length())
	  {
	    fclose(prg);
	    prg=prgs[0];
	    line=lines[0];
	    file=files[0];
            filei=fileis[0];
	    prgstr=prgstrs[0];
	    prgs.remove_listelem(0);
            lines.remove_listelem(0);
	    files.remove_listelem(0);
            fileis.remove_listelem(0);
	    prgstrs.remove_listelem(0);
	    return yylex();
	  };

	if (embed && !last)
	  {
	    last=1;
	    if (wtype==T_PRINT)
	      {
		wtype=T_UNDEF;
		string* ptr=new string();
		if (!ptr)
                    {
                      log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,0);
                    };
		*ptr=w;
		yylval.t0=ptr;
		return PRINT;
	      }
	    else
	      {
		/* syntax error */
#ifdef DEBUGGING
		log(LOG_DEBUG,__FILE__,__LINE__,0,
		    "file ends with code");
#endif
		return 0;
	      };
	  }
	else if (embed && wtype==T_UNDEF)
	  {
	    wtype=T_EOF;
	    return '}';
	  }
	else if (!embed || wtype==T_EOF)
	  {
	    return 0;
	  };
      };

    switch (wtype)
      {
      case T_WORD:
	{
	  /* complete ? */
	  if (c<48 || 
	      (c>57 && c<65) ||
	      (c>90 && c<97 && c!='_') ||
	      c>122)
	    {
	      lastchar=c;
	      wtype=T_UNDEF;
	      
	      if (w=="long") { return LONG; }
	      else if (w=="double") { return DOUBLE; }
	      else if (w=="string") { return STRING; }
	      else if (w=="void") { return VOID; }
	      else if (w=="if") { return IF; }
	      else if (w=="else") { return ELSE; }
	      else if (w=="for") { return FOR; }
	      else if (w=="while") { return WHILE; }
	      else if (w=="do") { return DO; }
	      else if (w=="break") { return BREAK; }
	      else if (w=="continue") { return CONTINUE; }
	      else if (w=="unsigned") { return UNSIGNED; }
	      else if (w=="eval") { return EVAL; }
	      else if (w=="external") { return EXTERNAL; }
	      else if (w=="return") { return RETURN; };

	      string* ptr=new string();
	      if (!ptr)
		{
		  log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,0);
		};
	      *ptr=w;
	      yylval.t0=ptr;
	      return NAME;
	    }
	  else
	    {
	      buf[0]=c;
	      w+=buf;
	    };
	  continue;
	};
      case T_CONST_DEZ:
	{
	  /* switch to double ? */
	  if (c=='e' || c=='E' || c=='.')
	    {
	      buf[0]=c;
	      w+=buf;
	      wtype=T_CONST_DOUBLE;
	    }
	  else if (c<48 || c>57) /* complete ? */
	    {
	      lastchar=c;
	      wtype=T_UNDEF;
	      
	      if (sscanf(w,"%lf",&val.val.doubleval)==1)
		{
		  if (((unsigned long) val.val.doubleval)!=val.val.doubleval)
		    {
		      /* parse error */
#ifdef DEBUGGING
		      log(LOG_DEBUG,__FILE__,__LINE__,0,
			  "%s is too big",(char*) w);
#endif
		      return 0;
		    };

		  if (((long) val.val.doubleval) < 0)
		    {
		      val.type=TYPE_VALUE_ULONG;
		      val.val.ulongval=(unsigned long) val.val.doubleval;
		    }
		  else
		    {
                      val.type=TYPE_VALUE_LONG;
                      val.val.longval=(long) val.val.doubleval;
		    };

		  type_value* ptr=new type_value();
		  if (!ptr)
		    {
		      log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL);
		    };
		  *ptr=val;
		  yylval.t2=ptr;
		  return CONST;
		}
	      else
		{
                  /* parse error */
#ifdef DEBUGGING
                  log(LOG_DEBUG,__FILE__,__LINE__,0,
                      "%s is not an integer",(char*) w);
#endif
                  return 0;
		};
	    }
	  else
	    {
              buf[0]=c;
              w+=buf;
	    };
	  continue;
	};
      case T_CONST_DOUBLE:
	{
	  /* complete ? */
	  if ((c<48 && c!='.' && c!='-') ||
	      (c>57 && c!='e' && c!='E'))
	    {
              lastchar=c;
              wtype=T_UNDEF;
	      
	      if (sscanf(w,"%lf",&val.val.doubleval)==1)
		{
		  val.type=TYPE_VALUE_DOUBLE;
		  type_value* ptr=new type_value();
		  if (!ptr)
		    {
		      log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL);
		    };
		  *ptr=val;
		  yylval.t2=ptr;
		  return CONST;
		}
	      else
		{
		  /* parse error */
#ifdef DEBUGGING
		  log(LOG_DEBUG,__FILE__,__LINE__,0,
		      "%s is not a double",(char*) w);
#endif
		  return 0;
		};
	    }
	  else
	    {
	      buf[0]=c;
	      w+=buf;
	    };
	  continue;
	};
      case T_CONST_HEX:
	{
          /* complete ? */
          if (c<48 || (c>57 && c<65) || (c>70 && c<97) || c>102)
            {
              lastchar=c;
              wtype=T_UNDEF;
              if (sscanf(w,"%lx",&val.val.longval)==1)
		{
		  val.type=TYPE_VALUE_LONG;
                  type_value* ptr=new type_value();
                  if (!ptr)
                    {
                      log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL);
                    };
                  *ptr=val;
                  yylval.t2=ptr;
                  return CONST;
		}
	      else
                {
		  /* parse error */
#ifdef DEBUGGING
                  log(LOG_DEBUG,__FILE__,__LINE__,0,
                      "%s is not a hex long",(char*) w);
#endif
                  return 0;
                };
            }
          else
	    {
              buf[0]=c;
              w+=buf;
	    };
	  continue;
	};
      case T_CONST_OCT:
	{
          /* complete ? */
          if (c<48 || c>55)
	    {
              lastchar=c;
              wtype=T_UNDEF;
              if (sscanf(w,"%lo",&val.val.longval)==1)
                {
                  val.type=TYPE_VALUE_LONG;
                  type_value* ptr=new type_value();
                  if (!ptr)
                    {
                      log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL);
                    };
                  *ptr=val;
                  yylval.t2=ptr;
                  return CONST;
                }
              else
                {
                  /* parse error */
#ifdef DEBUGGING
                  log(LOG_DEBUG,__FILE__,__LINE__,0,
                      "%s is not an octal long",(char*) w);
#endif
                  return 0;
                };
            }
          else
            {
              buf[0]=c;
              w+=buf;
            };
	  continue;
	};
      case T_CONST_STRING:
	{
	  if (c=='\\')
	    {
	      c=pgetchar();
	      if (!c || c==EOF)
		{
#ifdef DEBUGGING
		  log(LOG_DEBUG,__FILE__,__LINE__,0,
		      "unexpected EOF");
#endif
		  return 0;
		};
	      switch (c)
		{
		case 'n': { w+="\n"; break; };
		case 't': { w+="\t"; break; };
		case 'v': { w+="\v"; break; };
		case 'b': { w+="\b"; break; };
		case 'r': { w+="\r"; break; };
		case 'f': { w+="\f"; break; };
		case 'a': { w+="\a"; break; };
		case '\\': { w+="\\"; break; };
		case '\?': { w+="\?"; break; };
		case '\'': { w+="\'"; break; };
		case '\"': { w+="\""; break; };
		case '\n': { break; };
		case 'x' :
		  {
		    /* hex char */
		    w1="";
		    wtype=T_CONST_STRING_HEX;
		    break;
		  };
		default:
		  {
		    /* octal char ? */
		    if (c>48 && c<56)
		      {
			buf[0]=c;
			w1=buf;
			wtype=T_CONST_STRING_OCT;
			break;
		      };
		    
#ifdef DEBUGGING
		    log(LOG_DEBUG,__FILE__,__LINE__,0,
			"illegal character after \\: %c",(char) c);
#endif
		    return 0;
		  };
		};
	    }
	  else if (c=='\"')
	    {
	      wtype=T_UNDEF;
	      val.type=TYPE_VALUE_STRING;
	      val.stringval=w;
	      type_value* ptr=new type_value();
	      if (!ptr)
		{
		  log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,0);
		};
	      *ptr=val;
	      yylval.t2=ptr;
	      return CONST;
	    }
	  else
	    {
	      buf[0]=c;
	      w+=buf;
	    };
	  continue;
	};
      case T_CONST_STRING_HEX:
	{
	  /* complete ? */
	  if (c<48 || (c>57 && c<65) || (c>70 && c<97) || c>102)
	    {
	      lastchar=c;
	      if (sscanf(w1,"%lx",&number)!=1)
		{
#ifdef DEBUGGING
		  log(LOG_DEBUG,__FILE__,__LINE__,0,
		      "not a valid hex-number: %s",(char*) w1);
#endif
		  
		return 0;
		};
	      buf[0]=(number&0xff);
	      w+=buf;
	      wtype=T_CONST_STRING;
	    }
	  else
	    {
              buf[0]=c;
              w1+=buf;
            };
          continue;
	};
      case T_CONST_STRING_OCT:
	{
          /* complete ? */
          if (c<48 || c>55)
            {
              lastchar=c;
              if (sscanf(w1,"%lo",&number)!=1)
                {
#ifdef DEBUGGING
                  log(LOG_DEBUG,__FILE__,__LINE__,0,
                      "not a valid octal number: %s",(char*) w1);
#endif
                return 0;
                };
              buf[0]=(number&0xff);
              w+=buf;
              wtype=T_CONST_STRING;
            }
          else
            {
              buf[0]=c;
              w1+=buf;
            };
	  continue;
	};
      case T_COMMENT_LINE:
	{
	  /* complete ? */
	  if (c=='\n') { wtype=T_UNDEF; };
	  continue;
	};
      case T_COMMENT:
	{
	  if (c=='*')
	    {
	      c=pgetchar();
	      if (!c || c==EOF)
		{
#ifdef DEBUGGING
		  log(LOG_DEBUG,__FILE__,__LINE__,0,
		      "unexpected EOF");
#endif
		  return 0;
		};
	      if (c=='/') { wtype=T_UNDEF; };
	    };
	  continue;
	};
      case T_PRINT:
	{
	  if (c=='<')
	    {
              c=pgetchar();
              if (!c || c==EOF)
                {
#ifdef DEBUGGING
                  log(LOG_DEBUG,__FILE__,__LINE__,0,
                      "unexpected EOF");
#endif
                  return 0;
                };
              if (c=='?')
		{
		  wtype=T_UNDEF;
		  string* ptr=new string();
		  if (!ptr)
		    {
		      log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,0);
		    };
		  *ptr=w;
		  yylval.t0=ptr;
		  return PRINT;
		}
	      else
		{
		  buf[0]=c;
		  w+="<";
		  w+=buf;
		};
            }
	  else
	    {
	      buf[0]=c;
	      w+=buf;
	    };
          continue;
	};
      case T_DIRECTIVE:
	{
	  if (c==' ')
	    {
	      wtype=T_DIRECTIVE_ARG;
	      directive=w;
	      w="";
	    }
	  else
	    {
              buf[0]=c;
              w+=buf;
	    };
	  continue;
	};
      case T_DIRECTIVE_ARG:
	{
	  if (c=='\n')
	    {
	      wtype=T_UNDEF;
	      directive_arg=w;

	      if (directive=="include")
		{
		  if (prgs.length()>=max_parse_recursions)
		    {
#ifdef DEBUGGING
		      log(LOG_DEBUG,__FILE__,__LINE__,0,
                          "include-statement: maximum number of parser-\
recursions reached");
#endif
                      return 0;
		    };
		  prgs.insert_listelem(prg);
		  lines.insert_listelem(line);
                  files.insert_listelem(file);
                  fileis.insert_listelem(filei);
                  prgstrs.insert_listelem(prgstr);
		  line=1;
                  file=directive_arg;
                  filenames.insert_listelem(file,filenames.length());
                  filei=filenames.length()-1;
		  prg=fopen(directive_arg,"r");
		  if (!prg)
		    {
#ifdef DEBUGGING
		      log(LOG_DEBUG,__FILE__,__LINE__,0,
			  "include-statement: cannot fopen() %s",
			  (char*) directive_arg);
#endif
		      perror("reason: ");
		      return 0;
		    };
		  
		  return yylex();
		}
	      else
		{
#ifdef DEBUGGING
		  log(LOG_DEBUG,__FILE__,__LINE__,0,
		      "unknown directive");
#endif
		  return 0;
		};
	    }
	  else
	    {
              buf[0]=c;
              w+=buf;
	    };
	  continue;
	};

      };
    
    /* so we have something new, a unique char ? */
    if (c=='{' || 
	c=='}' ||
	c=='[' ||
	c==']' ||
	c=='*' || 
	c==',' || 
	c=='(' || 
	c==')' ||
	c=='~' ||
	c=='%' ||
	c=='^' ||
	c==';')
      {
	return c;
      };

    /* a special char ? */
    if (c=='\"')
      {
	wtype=T_CONST_STRING;
	w="";
	continue;
      };
    if (c==' ' || c=='\n' || c==13)
      {
	continue;
      };
    if (c=='\\')
      {
#ifdef DEBUGGING
	log(LOG_DEBUG,__FILE__,__LINE__,0,
	    "\\ only allowed in string-constants");
#endif
	return 0;
      };
    if (c=='#')
      {
	wtype=T_DIRECTIVE;
	w="";
	directive="";
	directive_arg="";
	continue;
      };

    /* a dezimal number ? */
    if (c>48 && c<58)
      {
	buf[0]=c;
        w=buf;
        wtype=T_CONST_DEZ;
	continue;
      };

    /* a double ? */
    if (c=='.')
      {
        buf[0]=c;
        w=buf;
        wtype=T_CONST_DOUBLE;
        continue;
      };

    /* a number in 0... notation ? */
    if (c=='0')
      {
	c=pgetchar();
	if (!c || c==EOF)
	  {
#ifdef DEBUGGING
	    log(LOG_DEBUG,__FILE__,__LINE__,0,
		"unexpected EOF");
#endif
	    return 0;
	  };
	if (c=='x')
	  {
	    w="";
	    wtype=T_CONST_HEX;
	  }
	else if (c>=48 && c<=55)
	  {
	    buf[0]=c;
	    w=buf;
	    wtype=T_CONST_OCT;
	  }
	else if (c=='.')
	  {
	    buf[0]=c;
            w=buf;
	    wtype=T_CONST_DOUBLE;
	  }
	else
	  {
	    /* it's simply a zero */
	    lastchar=c;
	    val.val.longval=0;
	    val.type=TYPE_VALUE_LONG;
	    type_value* ptr=new type_value();
	    if (!ptr)
	      {
		log(LOG_FATAL,__FILE__,__LINE__,ERROR_OUT_OF_MEM,NULL);
	      };
	    *ptr=val;
	    yylval.t2=ptr;
	    return CONST;
	  };
	continue;
      };

    /* or a name ? */
    if ((c>=65 && c<=90) || (c>=97 && c<=122) || c=='_')
      {
	buf[0]=c;
        w=buf;
	wtype=T_WORD;
	continue;
      };
	
    /* HA ! now it must be one of < > = ! & | + - / ? */
    buf[0]=c;
    lastchar=c=pgetchar();
    if (!c || c==EOF)
      {
#ifdef DEBUGGING
	log(LOG_DEBUG,__FILE__,__LINE__,0,
	    "unexpected EOF");
#endif
	return 0;
      };

    switch (buf[0])
      {
      case '-':
	{
	  if (c=='-')
	    {
	      lastchar=0;
	      return MINUSMINUS;
	    };
	  return buf[0];
	};
      case '!':
	{
          if (c=='=')
	    {
	      lastchar=0;
	      return NOTEQUAL;
	    };
          return buf[0];
	};
      case '+':
	{
          if (c=='+')
	    {
	      lastchar=0;
	      return PLUSPLUS;
	    };
          return buf[0];
	};
      case '<':
	{
          if (c=='<')
	    {
	      lastchar=0;
	      return SHIFTLEFT;
	    };
          if (c=='=')
	    {
	      lastchar=0;
	      return LE;
	    };
          return buf[0];
	};
      case '>':
	{
          if (c=='>')
	    {
	      lastchar=0;
	      return SHIFTRIGHT;
	    };
          if (c=='=')
	    {
	      lastchar=0;
	      return GE;
	    };
          return buf[0];
	};
      case '&':
	{
          if (c=='&')
	    {
	      lastchar=0;
	      return AND;
	    };
          return buf[0];
	};
      case '|':
	{
          if (c=='|')
	    {
	      lastchar=0;
	      return OR;
	    };
          return buf[0];
	};
      case '=':
	{
          if (c=='=')
	    {
	      lastchar=0;
	      return EQUAL;
	    };
          return buf[0];
	};
      case '/':
	{
	  if (c=='/')
	    {
	      wtype=T_COMMENT_LINE;
	    }
	  else if (c=='*')
	    {
	      wtype=T_COMMENT;
	    }
	  else
	    {
	      return buf[0];
	    };
	  continue;
	};
      case '?':
	{
	  if (c=='>')
	    {
	      w="";
	      lastchar=0;
	      wtype=T_PRINT;
	    }
	  else
	    {
#ifdef DEBUGGING
	      log(LOG_DEBUG,__FILE__,__LINE__,0,
		  "illegal character");
#endif
	      return 0;
	    };
	  continue;
	};
      default:
	{
#ifdef DEBUGGING
	  log(LOG_DEBUG,__FILE__,__LINE__,0,
	      "illegal character");
#endif
	  return 0;
	};
      };
  };

};

void yyerror(char* s)
{
  s=s;
  return;
}
