/* A Bison parser, made by GNU Bison 1.875.  */

/* Skeleton parser for Yacc-like parsing with Bison,
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, 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.  */

/* Written by Richard Stallman by simplifying the original so called
   ``semantic'' parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

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

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     WITH = 258,
     MIX = 259,
     SPLIT = 260,
     SEQ = 261,
     PAR = 262,
     REC = 263,
     NE = 264,
     GE = 265,
     GT = 266,
     EQ = 267,
     LE = 268,
     LT = 269,
     OR = 270,
     SUB = 271,
     ADD = 272,
     RSH = 273,
     LSH = 274,
     XOR = 275,
     AND = 276,
     MOD = 277,
     DIV = 278,
     MUL = 279,
     FDELAY = 280,
     DELAY1 = 281,
     DOT = 282,
     APPL = 283,
     MEM = 284,
     PREFIX = 285,
     INTCAST = 286,
     FLOATCAST = 287,
     FFUNCTION = 288,
     FCONSTANT = 289,
     BUTTON = 290,
     CHECKBOX = 291,
     VSLIDER = 292,
     HSLIDER = 293,
     NENTRY = 294,
     VGROUP = 295,
     HGROUP = 296,
     TGROUP = 297,
     HBARGRAPH = 298,
     VBARGRAPH = 299,
     ATTACH = 300,
     ACOS = 301,
     ASIN = 302,
     ATAN = 303,
     ATAN2 = 304,
     COS = 305,
     SIN = 306,
     TAN = 307,
     EXP = 308,
     LOG = 309,
     LOG10 = 310,
     POW = 311,
     SQRT = 312,
     ABS = 313,
     MIN = 314,
     MAX = 315,
     FMOD = 316,
     REMAINDER = 317,
     FLOOR = 318,
     CEIL = 319,
     RINT = 320,
     RDTBL = 321,
     RWTBL = 322,
     SELECT2 = 323,
     SELECT3 = 324,
     INT = 325,
     FLOAT = 326,
     LAMBDA = 327,
     WIRE = 328,
     CUT = 329,
     ENDDEF = 330,
     VIRG = 331,
     LPAR = 332,
     RPAR = 333,
     LBRAQ = 334,
     RBRAQ = 335,
     DEF = 336,
     IMPORT = 337,
     COMPONENT = 338,
     IPAR = 339,
     ISEQ = 340,
     ISUM = 341,
     IPROD = 342,
     STRING = 343,
     FSTRING = 344,
     IDENT = 345,
     EXTRA = 346,
     DECLARE = 347,
     NAMEPROP = 348,
     AUTHORPROP = 349,
     COPYRIGHTPROP = 350,
     VERSIONPROP = 351,
     LICENSEPROP = 352
   };
#endif
#define WITH 258
#define MIX 259
#define SPLIT 260
#define SEQ 261
#define PAR 262
#define REC 263
#define NE 264
#define GE 265
#define GT 266
#define EQ 267
#define LE 268
#define LT 269
#define OR 270
#define SUB 271
#define ADD 272
#define RSH 273
#define LSH 274
#define XOR 275
#define AND 276
#define MOD 277
#define DIV 278
#define MUL 279
#define FDELAY 280
#define DELAY1 281
#define DOT 282
#define APPL 283
#define MEM 284
#define PREFIX 285
#define INTCAST 286
#define FLOATCAST 287
#define FFUNCTION 288
#define FCONSTANT 289
#define BUTTON 290
#define CHECKBOX 291
#define VSLIDER 292
#define HSLIDER 293
#define NENTRY 294
#define VGROUP 295
#define HGROUP 296
#define TGROUP 297
#define HBARGRAPH 298
#define VBARGRAPH 299
#define ATTACH 300
#define ACOS 301
#define ASIN 302
#define ATAN 303
#define ATAN2 304
#define COS 305
#define SIN 306
#define TAN 307
#define EXP 308
#define LOG 309
#define LOG10 310
#define POW 311
#define SQRT 312
#define ABS 313
#define MIN 314
#define MAX 315
#define FMOD 316
#define REMAINDER 317
#define FLOOR 318
#define CEIL 319
#define RINT 320
#define RDTBL 321
#define RWTBL 322
#define SELECT2 323
#define SELECT3 324
#define INT 325
#define FLOAT 326
#define LAMBDA 327
#define WIRE 328
#define CUT 329
#define ENDDEF 330
#define VIRG 331
#define LPAR 332
#define RPAR 333
#define LBRAQ 334
#define RBRAQ 335
#define DEF 336
#define IMPORT 337
#define COMPONENT 338
#define IPAR 339
#define ISEQ 340
#define ISUM 341
#define IPROD 342
#define STRING 343
#define FSTRING 344
#define IDENT 345
#define EXTRA 346
#define DECLARE 347
#define NAMEPROP 348
#define AUTHORPROP 349
#define COPYRIGHTPROP 350
#define VERSIONPROP 351
#define LICENSEPROP 352




/* Copy the first part of user declarations.  */
#line 4 "parser/faustparser.y"


#include "tree.hh"
#include "xtended.hh"
#include "boxes.hh"
#include "prim2.hh"
#include "signals.hh"
#include "errormsg.hh"

#include <string>
#include <list>

#define YYDEBUG 1
#define YYERROR_VERBOSE 1
#define YYMAXDEPTH	100000

extern char* 		yytext;
extern const char* 	yyfilename;
extern int 			yylineno;
extern int 			yyerr;
extern Tree 		gResult;

extern list<string>	gNameProperty;
extern list<string>	gAuthorProperty;
extern list<string>	gCopyrightProperty;
extern list<string>	gVersionProperty;
extern list<string>	gLicenseProperty;

int yylex();

Tree unquote(char* str)
{
	//-----------copy unquoted filename-------------
	char buf[512];
	int j=0;

	if (str[0] == '"') {
		//it is a quoted string, we remove the quotes
		for (int i=1; j<511 && str[i];) {
			buf[j++] = str[i++];
		}
		// remove last quote
		if (j>0) buf[j-1] = 0;
	} else {
		for (int i=0; j<511 && str[i];) {
			buf[j++] = str[i++];
		}
	}
	buf[j] = 0;

	return tree(buf);
	//----------------------------------------------
}



/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 61 "parser/faustparser.y"
typedef union YYSTYPE {
	CTree* 	exp;
} YYSTYPE;
/* Line 191 of yacc.c.  */
#line 329 "parser/faustparser.cpp"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif



/* Copy the second part of user declarations.  */


/* Line 214 of yacc.c.  */
#line 341 "parser/faustparser.cpp"

#if ! defined (yyoverflow) || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# if YYSTACK_USE_ALLOCA
#  define YYSTACK_ALLOC alloca
# else
#  ifndef YYSTACK_USE_ALLOCA
#   if defined (alloca) || defined (_ALLOCA_H)
#    define YYSTACK_ALLOC alloca
#   else
#    ifdef __GNUC__
#     define YYSTACK_ALLOC __builtin_alloca
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning. */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
#  if defined (__STDC__) || defined (__cplusplus)
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   define YYSIZE_T size_t
#  endif
#  define YYSTACK_ALLOC malloc
#  define YYSTACK_FREE free
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */


#if (! defined (yyoverflow) \
     && (! defined (__cplusplus) \
	 || (YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  short yyss;
  YYSTYPE yyvs;
  };

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short) + sizeof (YYSTYPE))				\
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  register YYSIZE_T yyi;		\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (0)
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack)					\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack, Stack, yysize);				\
	Stack = &yyptr->Stack;						\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (0)

#endif

#if defined (__STDC__) || defined (__cplusplus)
   typedef signed char yysigned_char;
#else
   typedef short yysigned_char;
#endif

/* YYFINAL -- State number of the termination state. */
#define YYFINAL  3
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   510

/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS  98
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS  41
/* YYNRULES -- Number of rules. */
#define YYNRULES  159
/* YYNRULES -- Number of states. */
#define YYNSTATES  344

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   352

#define YYTRANSLATE(YYX) 						\
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const unsigned 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,     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,     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,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const unsigned short yyprhs[] =
{
       0,     0,     3,     5,     6,     9,    17,    22,    28,    29,
      35,    36,    42,    43,    49,    50,    56,    57,    63,    66,
      68,    70,    74,    80,    84,    88,    92,    96,   100,   102,
     106,   110,   114,   118,   122,   126,   129,   133,   137,   141,
     145,   149,   153,   157,   161,   165,   169,   173,   177,   182,
     184,   186,   188,   191,   194,   197,   200,   202,   204,   206,
     208,   210,   212,   214,   216,   218,   220,   222,   224,   226,
     228,   230,   232,   234,   236,   238,   240,   242,   244,   246,
     248,   250,   252,   254,   256,   258,   260,   262,   264,   266,
     268,   270,   272,   274,   276,   278,   280,   282,   284,   286,
     288,   290,   292,   294,   296,   298,   302,   311,   313,   315,
     320,   322,   324,   326,   328,   330,   332,   334,   336,   338,
     340,   342,   344,   346,   348,   350,   352,   354,   358,   362,
     366,   370,   374,   376,   378,   380,   382,   384,   393,   402,
     411,   420,   429,   437,   442,   447,   460,   473,   486,   493,
     500,   507,   516,   525,   531,   536,   538,   540,   544,   546
};

/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const short yyrhs[] =
{
      99,     0,    -1,   100,    -1,    -1,   100,   101,    -1,   107,
      77,   108,    78,    81,   109,    75,    -1,   107,    81,   109,
      75,    -1,    82,    77,   117,    78,    75,    -1,    -1,    92,
      93,    88,   102,    75,    -1,    -1,    92,    94,    88,   103,
      75,    -1,    -1,    92,    95,    88,   104,    75,    -1,    -1,
      92,    96,    88,   105,    75,    -1,    -1,    92,    97,    88,
     106,    75,    -1,     1,    75,    -1,   112,    -1,   112,    -1,
     108,     7,   112,    -1,   109,     3,    79,   100,    80,    -1,
     109,     7,   109,    -1,   109,     6,   109,    -1,   109,     5,
     109,    -1,   109,     4,   109,    -1,   109,     8,   109,    -1,
     110,    -1,   110,    17,   110,    -1,   110,    16,   110,    -1,
     110,    24,   110,    -1,   110,    23,   110,    -1,   110,    22,
     110,    -1,   110,    25,   110,    -1,   110,    26,    -1,   110,
      27,   112,    -1,   110,    21,   110,    -1,   110,    15,   110,
      -1,   110,    20,   110,    -1,   110,    19,   110,    -1,   110,
      18,   110,    -1,   110,    14,   110,    -1,   110,    13,   110,
      -1,   110,    11,   110,    -1,   110,    10,   110,    -1,   110,
      12,   110,    -1,   110,     9,   110,    -1,   110,    77,   114,
      78,    -1,   111,    -1,    70,    -1,    71,    -1,    17,    70,
      -1,    17,    71,    -1,    16,    70,    -1,    16,    71,    -1,
      73,    -1,    74,    -1,    29,    -1,    30,    -1,    31,    -1,
      32,    -1,    17,    -1,    16,    -1,    24,    -1,    23,    -1,
      22,    -1,    25,    -1,    21,    -1,    15,    -1,    20,    -1,
      19,    -1,    18,    -1,    14,    -1,    13,    -1,    11,    -1,
      10,    -1,    12,    -1,     9,    -1,    45,    -1,    46,    -1,
      47,    -1,    48,    -1,    49,    -1,    50,    -1,    51,    -1,
      52,    -1,    53,    -1,    54,    -1,    55,    -1,    56,    -1,
      57,    -1,    58,    -1,    59,    -1,    60,    -1,    61,    -1,
      62,    -1,    63,    -1,    64,    -1,    65,    -1,    66,    -1,
      67,    -1,    68,    -1,    69,    -1,   112,    -1,    77,   109,
      78,    -1,    72,    77,   108,    78,    27,    77,   109,    78,
      -1,   123,    -1,   124,    -1,    83,    77,   117,    78,    -1,
     125,    -1,   126,    -1,   127,    -1,   128,    -1,   129,    -1,
     130,    -1,   131,    -1,   132,    -1,   133,    -1,   134,    -1,
     119,    -1,   120,    -1,   121,    -1,   122,    -1,    90,    -1,
      90,    -1,   115,    -1,   114,     7,   115,    -1,   115,     6,
     115,    -1,   115,     5,   115,    -1,   115,     4,   115,    -1,
     115,     8,   115,    -1,   110,    -1,    88,    -1,    88,    -1,
      88,    -1,    89,    -1,    84,    77,   112,     7,   115,     7,
     109,    78,    -1,    85,    77,   112,     7,   115,     7,   109,
      78,    -1,    86,    77,   112,     7,   115,     7,   109,    78,
      -1,    87,    77,   112,     7,   115,     7,   109,    78,    -1,
      33,    77,   135,     7,   118,     7,   116,    78,    -1,    34,
      77,   138,   113,     7,   118,    78,    -1,    35,    77,   116,
      78,    -1,    36,    77,   116,    78,    -1,    37,    77,   116,
       7,   115,     7,   115,     7,   115,     7,   115,    78,    -1,
      38,    77,   116,     7,   115,     7,   115,     7,   115,     7,
     115,    78,    -1,    39,    77,   116,     7,   115,     7,   115,
       7,   115,     7,   115,    78,    -1,    40,    77,   116,     7,
     109,    78,    -1,    41,    77,   116,     7,   109,    78,    -1,
      42,    77,   116,     7,   109,    78,    -1,    44,    77,   116,
       7,   115,     7,   115,    78,    -1,    43,    77,   116,     7,
     115,     7,   115,    78,    -1,   138,   136,    77,   137,    78,
      -1,   138,   136,    77,    78,    -1,    90,    -1,   138,    -1,
     137,     7,   138,    -1,    31,    -1,    32,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const unsigned short yyrline[] =
{
       0,   237,   237,   240,   241,   244,   245,   246,   247,   247,
     248,   248,   249,   249,   250,   250,   251,   251,   252,   255,
     258,   259,   262,   263,   264,   265,   266,   267,   268,   271,
     272,   273,   274,   275,   276,   277,   278,   280,   281,   282,
     284,   285,   287,   288,   289,   290,   291,   292,   294,   296,
     299,   300,   302,   303,   305,   306,   308,   309,   311,   312,
     314,   315,   317,   318,   319,   320,   321,   322,   324,   325,
     326,   328,   329,   331,   332,   333,   334,   335,   336,   338,
     340,   341,   342,   343,   344,   345,   346,   348,   349,   350,
     351,   352,   354,   355,   356,   358,   359,   361,   362,   363,
     366,   367,   369,   370,   372,   374,   375,   377,   378,   379,
     381,   382,   383,   384,   385,   386,   387,   388,   389,   390,
     392,   393,   394,   395,   399,   402,   407,   408,   411,   412,
     413,   414,   415,   418,   421,   424,   425,   430,   434,   438,
     442,   449,   453,   458,   461,   464,   467,   470,   473,   476,
     479,   483,   486,   491,   492,   495,   498,   499,   502,   503
};
#endif

#if YYDEBUG || YYERROR_VERBOSE
/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "WITH", "MIX", "SPLIT", "SEQ", "PAR", 
  "REC", "NE", "GE", "GT", "EQ", "LE", "LT", "OR", "SUB", "ADD", "RSH", 
  "LSH", "XOR", "AND", "MOD", "DIV", "MUL", "FDELAY", "DELAY1", "DOT", 
  "APPL", "MEM", "PREFIX", "INTCAST", "FLOATCAST", "FFUNCTION", 
  "FCONSTANT", "BUTTON", "CHECKBOX", "VSLIDER", "HSLIDER", "NENTRY", 
  "VGROUP", "HGROUP", "TGROUP", "HBARGRAPH", "VBARGRAPH", "ATTACH", 
  "ACOS", "ASIN", "ATAN", "ATAN2", "COS", "SIN", "TAN", "EXP", "LOG", 
  "LOG10", "POW", "SQRT", "ABS", "MIN", "MAX", "FMOD", "REMAINDER", 
  "FLOOR", "CEIL", "RINT", "RDTBL", "RWTBL", "SELECT2", "SELECT3", "INT", 
  "FLOAT", "LAMBDA", "WIRE", "CUT", "ENDDEF", "VIRG", "LPAR", "RPAR", 
  "LBRAQ", "RBRAQ", "DEF", "IMPORT", "COMPONENT", "IPAR", "ISEQ", "ISUM", 
  "IPROD", "STRING", "FSTRING", "IDENT", "EXTRA", "DECLARE", "NAMEPROP", 
  "AUTHORPROP", "COPYRIGHTPROP", "VERSIONPROP", "LICENSEPROP", "$accept", 
  "program", "eqlist", "equation", "@1", "@2", "@3", "@4", "@5", "eqname", 
  "params", "diagram", "expression", "primitive", "ident", "name", 
  "arglist", "argument", "string", "uqstring", "fstring", "fpar", "fseq", 
  "fsum", "fprod", "ffunction", "fconst", "button", "checkbox", "vslider", 
  "hslider", "nentry", "vgroup", "hgroup", "tgroup", "vbargraph", 
  "hbargraph", "signature", "fun", "typelist", "type", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const unsigned short yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,
     345,   346,   347,   348,   349,   350,   351,   352
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const unsigned char yyr1[] =
{
       0,    98,    99,   100,   100,   101,   101,   101,   102,   101,
     103,   101,   104,   101,   105,   101,   106,   101,   101,   107,
     108,   108,   109,   109,   109,   109,   109,   109,   109,   110,
     110,   110,   110,   110,   110,   110,   110,   110,   110,   110,
     110,   110,   110,   110,   110,   110,   110,   110,   110,   110,
     111,   111,   111,   111,   111,   111,   111,   111,   111,   111,
     111,   111,   111,   111,   111,   111,   111,   111,   111,   111,
     111,   111,   111,   111,   111,   111,   111,   111,   111,   111,
     111,   111,   111,   111,   111,   111,   111,   111,   111,   111,
     111,   111,   111,   111,   111,   111,   111,   111,   111,   111,
     111,   111,   111,   111,   111,   111,   111,   111,   111,   111,
     111,   111,   111,   111,   111,   111,   111,   111,   111,   111,
     111,   111,   111,   111,   112,   113,   114,   114,   115,   115,
     115,   115,   115,   116,   117,   118,   118,   119,   120,   121,
     122,   123,   124,   125,   126,   127,   128,   129,   130,   131,
     132,   133,   134,   135,   135,   136,   137,   137,   138,   138
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const unsigned char yyr2[] =
{
       0,     2,     1,     0,     2,     7,     4,     5,     0,     5,
       0,     5,     0,     5,     0,     5,     0,     5,     2,     1,
       1,     3,     5,     3,     3,     3,     3,     3,     1,     3,
       3,     3,     3,     3,     3,     2,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     3,     3,     3,     4,     1,
       1,     1,     2,     2,     2,     2,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     3,     8,     1,     1,     4,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     3,     3,     3,
       3,     3,     1,     1,     1,     1,     1,     8,     8,     8,
       8,     8,     7,     4,     4,    12,    12,    12,     6,     6,
       6,     8,     8,     5,     4,     1,     1,     3,     1,     1
};

/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
static const unsigned char yydefact[] =
{
       3,     0,     0,     1,     0,     0,   124,     0,     4,     0,
      19,    18,     0,     0,     0,     0,     0,     0,     0,     0,
     134,     0,     8,    10,    12,    14,    16,     0,    20,    78,
      76,    75,    77,    74,    73,    69,    63,    62,    72,    71,
      70,    68,    66,    65,    64,    67,    58,    59,    60,    61,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    79,    80,    81,    82,    83,    84,    85,    86,
      87,    88,    89,    90,    91,    92,    93,    94,    95,    96,
      97,    98,    99,   100,   101,   102,   103,    50,    51,     0,
      56,    57,     0,     0,     0,     0,     0,     0,     0,    28,
      49,   104,   120,   121,   122,   123,   107,   108,   110,   111,
     112,   113,   114,   115,   116,   117,   118,   119,     0,     0,
       0,     0,     0,     0,     0,     0,    54,    55,    52,    53,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     6,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    35,     0,     0,     7,     9,    11,    13,
      15,    17,    21,     0,   158,   159,     0,     0,     0,   133,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   105,     0,     0,     0,     0,     0,     3,    26,    25,
      24,    23,    27,    47,    45,    44,    46,    43,    42,    38,
      30,    29,    41,    40,    39,    37,    33,    32,    31,    34,
      36,   132,     0,   126,     0,     0,   155,     0,   125,     0,
     143,   144,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   109,     0,     0,     0,     0,     0,     0,    48,     0,
       0,     0,     0,     5,   135,   136,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    22,   127,   130,   129,   128,   131,     0,   154,
       0,   156,     0,     0,     0,     0,   148,   149,   150,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   153,   142,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     141,   157,     0,     0,     0,   152,   151,   106,   137,   138,
     139,   140,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   145,   146,   147
};

/* YYDEFGOTO[NTERM-NUM]. */
static const short yydefgoto[] =
{
      -1,     1,     2,     8,   119,   120,   121,   122,   123,     9,
      27,    98,   231,   100,   101,   239,   232,   233,   190,    21,
     266,   102,   103,   104,   105,   106,   107,   108,   109,   110,
     111,   112,   113,   114,   115,   116,   117,   186,   237,   290,
     187
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -212
static const short yypact[] =
{
    -212,     2,     3,  -212,   -62,   -48,  -212,   142,  -212,   -41,
    -212,  -212,   -43,   -23,   -17,     6,    13,    21,    39,   278,
    -212,   -31,  -212,  -212,  -212,  -212,  -212,    -6,  -212,  -212,
    -212,  -212,  -212,  -212,  -212,  -212,   -36,    52,  -212,  -212,
    -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,
      14,    79,   108,   116,   137,   138,   139,   145,   146,   147,
     148,   175,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,
    -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,
    -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,   183,
    -212,  -212,   278,   189,   190,   192,   201,   202,    55,   373,
    -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,
    -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,   102,   178,
     195,   206,   230,   231,    39,   272,  -212,  -212,  -212,  -212,
      43,    43,   266,   266,   266,   266,   266,   266,   266,   266,
     266,   266,    39,    49,   -43,    39,    39,    39,    39,   280,
     278,   278,   278,   278,   278,  -212,   278,   278,   278,   278,
     278,   278,   278,   278,   278,   278,   278,   278,   278,   278,
     278,   278,   278,  -212,    39,   278,  -212,  -212,  -212,  -212,
    -212,  -212,  -212,   278,  -212,  -212,   359,   277,   288,  -212,
     302,   303,   422,   434,   435,   436,   438,   439,   440,   441,
       8,  -212,   383,   455,   462,   463,   464,  -212,    90,    90,
      73,   491,  -212,   386,   386,   386,   386,   386,   386,   396,
     396,   396,    51,    51,    51,    51,    51,    51,    51,    94,
    -212,   373,     9,   257,   205,    99,  -212,   395,  -212,   493,
    -212,  -212,   278,   278,   278,   278,   278,   278,   278,   278,
     474,  -212,   278,   278,   278,   278,    10,   278,  -212,   278,
     278,   278,   278,  -212,  -212,  -212,   495,   -14,    99,   237,
     243,   251,   100,   111,   162,   268,   420,   426,   427,   432,
     447,   452,  -212,   257,     4,     4,   496,  -212,   266,  -212,
      32,  -212,   428,   278,   278,   278,  -212,  -212,  -212,   278,
     278,   278,   278,   278,   278,   278,   429,    43,  -212,  -212,
     460,   470,   475,     1,   168,   176,   193,   199,   226,   366,
    -212,  -212,   278,   278,   278,  -212,  -212,  -212,  -212,  -212,
    -212,  -212,   480,   485,   490,   278,   278,   278,   186,   352,
     371,  -212,  -212,  -212
};

/* YYPGOTO[NTERM-NUM].  */
static const short yypgoto[] =
{
    -212,  -212,   298,  -212,  -212,  -212,  -212,  -212,  -212,  -212,
     367,   -84,   -19,  -212,    12,  -212,  -212,  -211,  -113,   364,
     242,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,
    -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,  -212,
    -112
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -3
static const short yytable[] =
{
      99,   124,     3,    -2,     4,   259,   260,   261,   143,   262,
     261,     4,   262,    11,    10,   124,   257,   184,   185,   188,
     191,   192,   193,   194,   195,   196,   197,   198,   199,    12,
      28,   269,   270,   271,   126,   127,    18,   275,   276,   307,
      19,   278,   279,   280,   281,    20,   283,   118,   284,   285,
     286,   287,   149,   150,   151,   152,   153,   154,   149,   150,
     151,   152,   153,   154,   289,    22,   208,   209,   210,   211,
     212,    23,   125,    99,   184,   185,   172,   173,   174,   325,
     153,   154,   310,   311,   312,     5,   250,   258,   313,   314,
     282,   130,     5,     6,    24,     7,   152,   153,   154,   234,
       6,    25,     7,   149,   150,   151,   152,   153,   154,    26,
     308,   332,   333,   334,   149,   150,   151,   152,   153,   154,
     173,   174,   128,   129,   338,   339,   340,   201,   175,     6,
     155,    99,    99,    99,    99,    99,   182,   213,   214,   215,
     216,   217,   218,   219,   220,   221,   222,   223,   224,   225,
     226,   227,   228,   229,    28,   291,   131,   203,   204,   205,
     206,   272,   273,   274,    99,   149,   150,   151,   152,   153,
     154,   175,   259,   260,   261,   306,   262,   176,   296,   149,
     150,   151,   152,   153,   154,   132,   230,   264,   265,   297,
     259,   260,   261,   133,   262,   321,   149,   150,   151,   152,
     153,   154,   149,   150,   151,   152,   153,   154,   149,   150,
     151,   152,   153,   154,   134,   135,   136,   315,   316,   317,
     318,   319,   137,   138,   139,   140,    99,    99,    99,   149,
     150,   151,   152,   153,   154,    13,    14,    15,    16,    17,
     298,   259,   260,   261,   293,   262,   326,   259,   260,   261,
     294,   262,   141,   177,   327,   259,   260,   261,   295,   262,
     142,   259,   260,   261,   341,   262,   144,   145,    10,   146,
     178,   328,   259,   260,   261,   299,   262,   329,   147,   148,
     263,   179,    99,    99,    99,    99,    99,    29,    30,    31,
      32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
      42,    43,    44,    45,   330,   180,   181,    46,    47,    48,
      49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
      59,    60,    61,    62,    63,    64,    65,    66,    67,    68,
      69,    70,    71,    72,    73,    74,    75,    76,    77,    78,
      79,    80,    81,    82,    83,    84,    85,    86,    87,    88,
      89,    90,    91,   183,   189,    92,   259,   260,   261,   207,
     262,    93,    94,    95,    96,    97,   235,   236,     6,   149,
     150,   151,   152,   153,   154,   259,   260,   261,   238,   262,
     240,   241,   156,   157,   158,   159,   160,   161,   162,   163,
     164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
     174,   162,   163,   164,   165,   166,   167,   168,   169,   170,
     171,   172,   173,   174,   165,   166,   167,   168,   169,   170,
     171,   172,   173,   174,   259,   260,   261,   300,   262,   242,
     342,   259,   260,   261,   302,   262,   259,   260,   261,   303,
     262,   243,   244,   245,   331,   246,   247,   248,   249,   343,
     175,   259,   260,   261,   304,   262,   259,   260,   261,   305,
     262,   251,   252,   175,   259,   260,   261,   322,   262,   253,
     254,   255,   267,   175,   259,   260,   261,   323,   262,   259,
     260,   261,   324,   262,   259,   260,   261,   335,   262,   259,
     260,   261,   336,   262,   259,   260,   261,   337,   262,   154,
     268,   277,   288,   301,   262,   256,   309,   320,   202,   200,
     292
};

static const unsigned short yycheck[] =
{
      19,     7,     0,     0,     1,     4,     5,     6,    92,     8,
       6,     1,     8,    75,     2,     7,     7,    31,    32,   131,
     133,   134,   135,   136,   137,   138,   139,   140,   141,    77,
      18,   242,   243,   244,    70,    71,    77,   248,   249,     7,
      81,   252,   253,   254,   255,    88,   257,    78,   259,   260,
     261,   262,     3,     4,     5,     6,     7,     8,     3,     4,
       5,     6,     7,     8,    78,    88,   150,   151,   152,   153,
     154,    88,    78,    92,    31,    32,    25,    26,    27,    78,
       7,     8,   293,   294,   295,    82,    78,    78,   299,   300,
      80,    77,    82,    90,    88,    92,     6,     7,     8,   183,
      90,    88,    92,     3,     4,     5,     6,     7,     8,    88,
      78,   322,   323,   324,     3,     4,     5,     6,     7,     8,
      26,    27,    70,    71,   335,   336,   337,    78,    77,    90,
      75,   150,   151,   152,   153,   154,   124,   156,   157,   158,
     159,   160,   161,   162,   163,   164,   165,   166,   167,   168,
     169,   170,   171,   172,   142,   267,    77,   145,   146,   147,
     148,   245,   246,   247,   183,     3,     4,     5,     6,     7,
       8,    77,     4,     5,     6,   288,     8,    75,    78,     3,
       4,     5,     6,     7,     8,    77,   174,    88,    89,    78,
       4,     5,     6,    77,     8,   307,     3,     4,     5,     6,
       7,     8,     3,     4,     5,     6,     7,     8,     3,     4,
       5,     6,     7,     8,    77,    77,    77,   301,   302,   303,
     304,   305,    77,    77,    77,    77,   245,   246,   247,     3,
       4,     5,     6,     7,     8,    93,    94,    95,    96,    97,
      78,     4,     5,     6,     7,     8,    78,     4,     5,     6,
       7,     8,    77,    75,    78,     4,     5,     6,     7,     8,
      77,     4,     5,     6,    78,     8,    77,    77,   256,    77,
      75,    78,     4,     5,     6,     7,     8,    78,    77,    77,
      75,    75,   301,   302,   303,   304,   305,     9,    10,    11,
      12,    13,    14,    15,    16,    17,    18,    19,    20,    21,
      22,    23,    24,    25,    78,    75,    75,    29,    30,    31,
      32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      52,    53,    54,    55,    56,    57,    58,    59,    60,    61,
      62,    63,    64,    65,    66,    67,    68,    69,    70,    71,
      72,    73,    74,    81,    88,    77,     4,     5,     6,    79,
       8,    83,    84,    85,    86,    87,     7,    90,    90,     3,
       4,     5,     6,     7,     8,     4,     5,     6,    90,     8,
      78,    78,     9,    10,    11,    12,    13,    14,    15,    16,
      17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
      27,    15,    16,    17,    18,    19,    20,    21,    22,    23,
      24,    25,    26,    27,    18,    19,    20,    21,    22,    23,
      24,    25,    26,    27,     4,     5,     6,     7,     8,     7,
      78,     4,     5,     6,     7,     8,     4,     5,     6,     7,
       8,     7,     7,     7,    78,     7,     7,     7,     7,    78,
      77,     4,     5,     6,     7,     8,     4,     5,     6,     7,
       8,    78,     7,    77,     4,     5,     6,     7,     8,     7,
       7,     7,    77,    77,     4,     5,     6,     7,     8,     4,
       5,     6,     7,     8,     4,     5,     6,     7,     8,     4,
       5,     6,     7,     8,     4,     5,     6,     7,     8,     8,
       7,    27,     7,    77,     8,   207,    78,    78,   144,   142,
     268
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const unsigned char yystos[] =
{
       0,    99,   100,     0,     1,    82,    90,    92,   101,   107,
     112,    75,    77,    93,    94,    95,    96,    97,    77,    81,
      88,   117,    88,    88,    88,    88,    88,   108,   112,     9,
      10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
      20,    21,    22,    23,    24,    25,    29,    30,    31,    32,
      33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    51,    52,
      53,    54,    55,    56,    57,    58,    59,    60,    61,    62,
      63,    64,    65,    66,    67,    68,    69,    70,    71,    72,
      73,    74,    77,    83,    84,    85,    86,    87,   109,   110,
     111,   112,   119,   120,   121,   122,   123,   124,   125,   126,
     127,   128,   129,   130,   131,   132,   133,   134,    78,   102,
     103,   104,   105,   106,     7,    78,    70,    71,    70,    71,
      77,    77,    77,    77,    77,    77,    77,    77,    77,    77,
      77,    77,    77,   109,    77,    77,    77,    77,    77,     3,
       4,     5,     6,     7,     8,    75,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      23,    24,    25,    26,    27,    77,    75,    75,    75,    75,
      75,    75,   112,    81,    31,    32,   135,   138,   138,    88,
     116,   116,   116,   116,   116,   116,   116,   116,   116,   116,
     108,    78,   117,   112,   112,   112,   112,    79,   109,   109,
     109,   109,   109,   110,   110,   110,   110,   110,   110,   110,
     110,   110,   110,   110,   110,   110,   110,   110,   110,   110,
     112,   110,   114,   115,   109,     7,    90,   136,    90,   113,
      78,    78,     7,     7,     7,     7,     7,     7,     7,     7,
      78,    78,     7,     7,     7,     7,   100,     7,    78,     4,
       5,     6,     8,    75,    88,    89,   118,    77,     7,   115,
     115,   115,   109,   109,   109,   115,   115,    27,   115,   115,
     115,   115,    80,   115,   115,   115,   115,   115,     7,    78,
     137,   138,   118,     7,     7,     7,    78,    78,    78,     7,
       7,    77,     7,     7,     7,     7,   116,     7,    78,    78,
     115,   115,   115,   115,   115,   109,   109,   109,   109,   109,
      78,   138,     7,     7,     7,    78,    78,    78,    78,    78,
      78,    78,   115,   115,   115,     7,     7,     7,   115,   115,
     115,    78,    78,    78
};

#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
#endif
#if ! defined (YYSIZE_T) && defined (size_t)
# define YYSIZE_T size_t
#endif
#if ! defined (YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# endif
#endif
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
#endif

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		(-2)
#define YYEOF		0

#define YYACCEPT	goto yyacceptlab
#define YYABORT		goto yyabortlab
#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);						\
      yytoken = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { 								\
      yyerror ("syntax error: cannot back up");\
      YYERROR;							\
    }								\
while (0)

#define YYTERROR	1
#define YYERRCODE	256

/* YYLLOC_DEFAULT -- Compute the default location (before the actions
   are run).  */

#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)         \
  Current.first_line   = Rhs[1].first_line;      \
  Current.first_column = Rhs[1].first_column;    \
  Current.last_line    = Rhs[N].last_line;       \
  Current.last_column  = Rhs[N].last_column;
#endif

/* YYLEX -- calling `yylex' with the right arguments.  */

#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#endif

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
} while (0)

# define YYDSYMPRINT(Args)			\
do {						\
  if (yydebug)					\
    yysymprint Args;				\
} while (0)

# define YYDSYMPRINTF(Title, Token, Value, Location)		\
do {								\
  if (yydebug)							\
    {								\
      YYFPRINTF (stderr, "%s ", Title);				\
      yysymprint (stderr, 					\
                  Token, Value);	\
      YYFPRINTF (stderr, "\n");					\
    }								\
} while (0)

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (cinluded).                                                   |
`------------------------------------------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yy_stack_print (short *bottom, short *top)
#else
static void
yy_stack_print (bottom, top)
    short *bottom;
    short *top;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (/* Nothing. */; bottom <= top; ++bottom)
    YYFPRINTF (stderr, " %d", *bottom);
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)				\
do {								\
  if (yydebug)							\
    yy_stack_print ((Bottom), (Top));				\
} while (0)


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yy_reduce_print (int yyrule)
#else
static void
yy_reduce_print (yyrule)
    int yyrule;
#endif
{
  int yyi;
  unsigned int yylineno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
             yyrule - 1, yylineno);
  /* Print the symbols being reduced, and their result.  */
  for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
    YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
}

# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
    yy_reduce_print (Rule);		\
} while (0)

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YYDSYMPRINT(Args)
# define YYDSYMPRINTF(Title, Token, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef	YYINITDEPTH
# define YYINITDEPTH 200
#endif

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

   Do not make this value too large; the results are undefined if
   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#if YYMAXDEPTH == 0
# undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined (__GLIBC__) && defined (_STRING_H)
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
static YYSIZE_T
#   if defined (__STDC__) || defined (__cplusplus)
yystrlen (const char *yystr)
#   else
yystrlen (yystr)
     const char *yystr;
#   endif
{
  register const char *yys = yystr;

  while (*yys++ != '\0')
    continue;

  return yys - yystr - 1;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
static char *
#   if defined (__STDC__) || defined (__cplusplus)
yystpcpy (char *yydest, const char *yysrc)
#   else
yystpcpy (yydest, yysrc)
     char *yydest;
     const char *yysrc;
#   endif
{
  register char *yyd = yydest;
  register const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

#endif /* !YYERROR_VERBOSE */



#if YYDEBUG
/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
#else
static void
yysymprint (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  if (yytype < YYNTOKENS)
    {
      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
# ifdef YYPRINT
      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
    }
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  switch (yytype)
    {
      default:
        break;
    }
  YYFPRINTF (yyoutput, ")");
}

#endif /* ! YYDEBUG */
/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yydestruct (int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yytype, yyvaluep)
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  switch (yytype)
    {

      default:
        break;
    }
}


/* Prevent warnings from -Wmissing-prototypes.  */

#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
int yyparse (void *YYPARSE_PARAM);
# else
int yyparse ();
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */



/* The lookahead symbol.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;

/* Number of syntax errors so far.  */
int yynerrs;



/*----------.
| yyparse.  |
`----------*/

#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
int yyparse (void *YYPARSE_PARAM)
# else
int yyparse (YYPARSE_PARAM)
  void *YYPARSE_PARAM;
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int
yyparse (void)
#else
int
yyparse ()

#endif
#endif
{
  
  register int yystate;
  register int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken = 0;

  /* Three stacks and their tools:
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyls': related to locations.

     Refer to the stacks thru separate pointers, to allow yyoverflow
     to reallocate them elsewhere.  */

  /* The state stack.  */
  short	yyssa[YYINITDEPTH];
  short *yyss = yyssa;
  register short *yyssp;

  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs = yyvsa;
  register YYSTYPE *yyvsp;



#define YYPOPSTACK   (yyvsp--, yyssp--)

  YYSIZE_T yystacksize = YYINITDEPTH;

  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;


  /* When reducing, the number of symbols on the RHS of the reduced
     rule.  */
  int yylen;

  YYDPRINTF ((stderr, "Starting parse\n"));

  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;
  yyvsp = yyvs;

  goto yysetstate;

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

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;

#ifdef yyoverflow
      {
	/* 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;


	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  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, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),

		    &yystacksize);

	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyoverflowlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyoverflowlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

      {
	short *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyoverflowlab;
	YYSTACK_RELOCATE (yyss);
	YYSTACK_RELOCATE (yyvs);

#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;


      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
		  (unsigned long int) yystacksize));

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

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  goto yybackup;

/*-----------.
| 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 == YYPACT_NINF)
    goto yydefault;

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

  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yyn == 0 || yyn == YYTABLE_NINF)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */
  YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));

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

  *++yyvsp = yylval;


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

  yystate = yyn;
  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 2:
#line 237 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp; gResult = yyval.exp; ;}
    break;

  case 3:
#line 240 "parser/faustparser.y"
    {yyval.exp = nil; ;}
    break;

  case 4:
#line 241 "parser/faustparser.y"
    {yyval.exp = cons (yyvsp[0].exp,yyvsp[-1].exp); ;}
    break;

  case 5:
#line 244 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[-6].exp,buildBoxAbstr(yyvsp[-4].exp,yyvsp[-1].exp)); ;}
    break;

  case 6:
#line 245 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[-3].exp,yyvsp[-1].exp); ;}
    break;

  case 7:
#line 246 "parser/faustparser.y"
    {yyval.exp = importFile(yyvsp[-2].exp); ;}
    break;

  case 8:
#line 247 "parser/faustparser.y"
    {gNameProperty.push_back(yytext); ;}
    break;

  case 9:
#line 247 "parser/faustparser.y"
    {yyval.exp = nil; ;}
    break;

  case 10:
#line 248 "parser/faustparser.y"
    {gAuthorProperty.push_back(yytext); ;}
    break;

  case 11:
#line 248 "parser/faustparser.y"
    {yyval.exp = nil; ;}
    break;

  case 12:
#line 249 "parser/faustparser.y"
    {gCopyrightProperty.push_back(yytext); ;}
    break;

  case 13:
#line 249 "parser/faustparser.y"
    {yyval.exp = nil; ;}
    break;

  case 14:
#line 250 "parser/faustparser.y"
    {gVersionProperty.push_back(yytext); ;}
    break;

  case 15:
#line 250 "parser/faustparser.y"
    {yyval.exp = nil; ;}
    break;

  case 16:
#line 251 "parser/faustparser.y"
    {gLicenseProperty.push_back(yytext); ;}
    break;

  case 17:
#line 251 "parser/faustparser.y"
    {yyval.exp = nil; ;}
    break;

  case 18:
#line 252 "parser/faustparser.y"
    {yyval.exp = nil; yyerr++;;}
    break;

  case 19:
#line 255 "parser/faustparser.y"
    {yyval.exp=yyvsp[0].exp; setDefProp(yyvsp[0].exp, yyfilename, yylineno); ;}
    break;

  case 20:
#line 258 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[0].exp,nil); ;}
    break;

  case 21:
#line 259 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[0].exp,yyvsp[-2].exp); ;}
    break;

  case 22:
#line 262 "parser/faustparser.y"
    {yyval.exp = boxWithLocalDef(yyvsp[-4].exp,yyvsp[-1].exp); ;}
    break;

  case 23:
#line 263 "parser/faustparser.y"
    {yyval.exp = boxPar(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 24:
#line 264 "parser/faustparser.y"
    {yyval.exp = boxSeq(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 25:
#line 265 "parser/faustparser.y"
    {yyval.exp = boxSplit(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 26:
#line 266 "parser/faustparser.y"
    {yyval.exp = boxMerge(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 27:
#line 267 "parser/faustparser.y"
    {yyval.exp = boxRec(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 28:
#line 268 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp; ;}
    break;

  case 29:
#line 271 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigAdd)); ;}
    break;

  case 30:
#line 272 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigSub)); ;}
    break;

  case 31:
#line 273 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigMul)); ;}
    break;

  case 32:
#line 274 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigDiv)); ;}
    break;

  case 33:
#line 275 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigRem)); ;}
    break;

  case 34:
#line 276 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigFixDelay)); ;}
    break;

  case 35:
#line 277 "parser/faustparser.y"
    {yyval.exp = boxSeq(yyvsp[-1].exp,boxPrim1(sigDelay1)); ;}
    break;

  case 36:
#line 278 "parser/faustparser.y"
    {yyval.exp = boxAccess(yyvsp[-2].exp,yyvsp[0].exp); ;}
    break;

  case 37:
#line 280 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigAND)); ;}
    break;

  case 38:
#line 281 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigOR)); ;}
    break;

  case 39:
#line 282 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigXOR)); ;}
    break;

  case 40:
#line 284 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigLeftShift)); ;}
    break;

  case 41:
#line 285 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigRightShift)); ;}
    break;

  case 42:
#line 287 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigLT)); ;}
    break;

  case 43:
#line 288 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigLE)); ;}
    break;

  case 44:
#line 289 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigGT)); ;}
    break;

  case 45:
#line 290 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigGE)); ;}
    break;

  case 46:
#line 291 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigEQ)); ;}
    break;

  case 47:
#line 292 "parser/faustparser.y"
    {yyval.exp = boxSeq(boxPar(yyvsp[-2].exp,yyvsp[0].exp),boxPrim2(sigNE)); ;}
    break;

  case 48:
#line 294 "parser/faustparser.y"
    {yyval.exp = buildBoxAppl(yyvsp[-3].exp,yyvsp[-1].exp); ;}
    break;

  case 49:
#line 296 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 50:
#line 299 "parser/faustparser.y"
    {yyval.exp = boxInt(atoi(yytext));;}
    break;

  case 51:
#line 300 "parser/faustparser.y"
    {yyval.exp = boxReal(float(atof(yytext)));;}
    break;

  case 52:
#line 302 "parser/faustparser.y"
    {yyval.exp = boxInt(atoi(yytext));;}
    break;

  case 53:
#line 303 "parser/faustparser.y"
    {yyval.exp = boxReal(float(atof(yytext)));;}
    break;

  case 54:
#line 305 "parser/faustparser.y"
    {yyval.exp = boxInt(0 - atoi(yytext));;}
    break;

  case 55:
#line 306 "parser/faustparser.y"
    {yyval.exp = boxReal(0.0f - float(atof(yytext)));;}
    break;

  case 56:
#line 308 "parser/faustparser.y"
    {yyval.exp = boxWire();;}
    break;

  case 57:
#line 309 "parser/faustparser.y"
    {yyval.exp = boxCut();;}
    break;

  case 58:
#line 311 "parser/faustparser.y"
    {yyval.exp = boxPrim1(sigDelay1);;}
    break;

  case 59:
#line 312 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigPrefix);;}
    break;

  case 60:
#line 314 "parser/faustparser.y"
    {yyval.exp = boxPrim1(sigIntCast);;}
    break;

  case 61:
#line 315 "parser/faustparser.y"
    {yyval.exp = boxPrim1(sigFloatCast);;}
    break;

  case 62:
#line 317 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigAdd);;}
    break;

  case 63:
#line 318 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigSub);;}
    break;

  case 64:
#line 319 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigMul);;}
    break;

  case 65:
#line 320 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigDiv);;}
    break;

  case 66:
#line 321 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigRem);;}
    break;

  case 67:
#line 322 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigFixDelay);;}
    break;

  case 68:
#line 324 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigAND);;}
    break;

  case 69:
#line 325 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigOR);;}
    break;

  case 70:
#line 326 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigXOR);;}
    break;

  case 71:
#line 328 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigLeftShift);;}
    break;

  case 72:
#line 329 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigRightShift);;}
    break;

  case 73:
#line 331 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigLT);;}
    break;

  case 74:
#line 332 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigLE);;}
    break;

  case 75:
#line 333 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigGT);;}
    break;

  case 76:
#line 334 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigGE);;}
    break;

  case 77:
#line 335 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigEQ);;}
    break;

  case 78:
#line 336 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigNE);;}
    break;

  case 79:
#line 338 "parser/faustparser.y"
    {yyval.exp = boxPrim2(sigAttach);;}
    break;

  case 80:
#line 340 "parser/faustparser.y"
    {yyval.exp = gAcosPrim->box(); ;}
    break;

  case 81:
#line 341 "parser/faustparser.y"
    {yyval.exp = gAsinPrim->box(); ;}
    break;

  case 82:
#line 342 "parser/faustparser.y"
    {yyval.exp = gAtanPrim->box(); ;}
    break;

  case 83:
#line 343 "parser/faustparser.y"
    {yyval.exp = gAtan2Prim->box(); ;}
    break;

  case 84:
#line 344 "parser/faustparser.y"
    {yyval.exp = gCosPrim->box(); ;}
    break;

  case 85:
#line 345 "parser/faustparser.y"
    {yyval.exp = gSinPrim->box(); ;}
    break;

  case 86:
#line 346 "parser/faustparser.y"
    {yyval.exp = gTanPrim->box(); ;}
    break;

  case 87:
#line 348 "parser/faustparser.y"
    {yyval.exp = gExpPrim->box(); ;}
    break;

  case 88:
#line 349 "parser/faustparser.y"
    {yyval.exp = gLogPrim->box(); ;}
    break;

  case 89:
#line 350 "parser/faustparser.y"
    {yyval.exp = gLog10Prim->box(); ;}
    break;

  case 90:
#line 351 "parser/faustparser.y"
    {yyval.exp = gPowPrim->box(); ;}
    break;

  case 91:
#line 352 "parser/faustparser.y"
    {yyval.exp = gSqrtPrim->box(); ;}
    break;

  case 92:
#line 354 "parser/faustparser.y"
    {yyval.exp = gAbsPrim->box(); ;}
    break;

  case 93:
#line 355 "parser/faustparser.y"
    {yyval.exp = gMinPrim->box(); ;}
    break;

  case 94:
#line 356 "parser/faustparser.y"
    {yyval.exp = gMaxPrim->box(); ;}
    break;

  case 95:
#line 358 "parser/faustparser.y"
    {yyval.exp = gFmodPrim->box(); ;}
    break;

  case 96:
#line 359 "parser/faustparser.y"
    {yyval.exp = gRemainderPrim->box(); ;}
    break;

  case 97:
#line 361 "parser/faustparser.y"
    {yyval.exp = gFloorPrim->box(); ;}
    break;

  case 98:
#line 362 "parser/faustparser.y"
    {yyval.exp = gCeilPrim->box(); ;}
    break;

  case 99:
#line 363 "parser/faustparser.y"
    {yyval.exp = gRintPrim->box(); ;}
    break;

  case 100:
#line 366 "parser/faustparser.y"
    {yyval.exp = boxPrim3(sigReadOnlyTable);;}
    break;

  case 101:
#line 367 "parser/faustparser.y"
    {yyval.exp = boxPrim5(sigWriteReadTable);;}
    break;

  case 102:
#line 369 "parser/faustparser.y"
    {yyval.exp = boxPrim3(sigSelect2);;}
    break;

  case 103:
#line 370 "parser/faustparser.y"
    {yyval.exp = boxPrim4(sigSelect3);;}
    break;

  case 104:
#line 372 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 105:
#line 374 "parser/faustparser.y"
    {yyval.exp = yyvsp[-1].exp;;}
    break;

  case 106:
#line 376 "parser/faustparser.y"
    {yyval.exp = buildBoxAbstr(yyvsp[-5].exp,yyvsp[-1].exp);;}
    break;

  case 107:
#line 377 "parser/faustparser.y"
    {yyval.exp = boxFFun(yyvsp[0].exp); ;}
    break;

  case 108:
#line 378 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 109:
#line 379 "parser/faustparser.y"
    {yyval.exp = boxComponent(yyvsp[-1].exp); ;}
    break;

  case 110:
#line 381 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 111:
#line 382 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 112:
#line 383 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 113:
#line 384 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 114:
#line 385 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 115:
#line 386 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 116:
#line 387 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 117:
#line 388 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 118:
#line 389 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 119:
#line 390 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 120:
#line 392 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 121:
#line 393 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 122:
#line 394 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 123:
#line 395 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 124:
#line 399 "parser/faustparser.y"
    {yyval.exp = boxIdent(yytext);;}
    break;

  case 125:
#line 402 "parser/faustparser.y"
    {yyval.exp = tree(yytext);;}
    break;

  case 126:
#line 407 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[0].exp,nil); ;}
    break;

  case 127:
#line 408 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[0].exp,yyvsp[-2].exp); ;}
    break;

  case 128:
#line 411 "parser/faustparser.y"
    {yyval.exp = boxSeq(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 129:
#line 412 "parser/faustparser.y"
    {yyval.exp = boxSplit(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 130:
#line 413 "parser/faustparser.y"
    {yyval.exp = boxMerge(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 131:
#line 414 "parser/faustparser.y"
    {yyval.exp = boxRec(yyvsp[-2].exp,yyvsp[0].exp);;}
    break;

  case 132:
#line 415 "parser/faustparser.y"
    {yyval.exp = yyvsp[0].exp;;}
    break;

  case 133:
#line 418 "parser/faustparser.y"
    {yyval.exp = tree(yytext); ;}
    break;

  case 134:
#line 421 "parser/faustparser.y"
    {yyval.exp = unquote(yytext); ;}
    break;

  case 135:
#line 424 "parser/faustparser.y"
    {yyval.exp = tree(yytext); ;}
    break;

  case 136:
#line 425 "parser/faustparser.y"
    {yyval.exp = tree(yytext); ;}
    break;

  case 137:
#line 431 "parser/faustparser.y"
    {yyval.exp = boxIPar(yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp);;}
    break;

  case 138:
#line 435 "parser/faustparser.y"
    {yyval.exp = boxISeq(yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp);;}
    break;

  case 139:
#line 439 "parser/faustparser.y"
    {yyval.exp = boxISum(yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp);;}
    break;

  case 140:
#line 443 "parser/faustparser.y"
    {yyval.exp = boxIProd(yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp);;}
    break;

  case 141:
#line 450 "parser/faustparser.y"
    {yyval.exp = ffunction(yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp);;}
    break;

  case 142:
#line 454 "parser/faustparser.y"
    {yyval.exp = boxFConst(yyvsp[-4].exp,yyvsp[-3].exp,yyvsp[-1].exp);;}
    break;

  case 143:
#line 458 "parser/faustparser.y"
    {yyval.exp = boxButton(yyvsp[-1].exp); ;}
    break;

  case 144:
#line 461 "parser/faustparser.y"
    {yyval.exp = boxCheckbox(yyvsp[-1].exp); ;}
    break;

  case 145:
#line 465 "parser/faustparser.y"
    {yyval.exp = boxVSlider(yyvsp[-9].exp,yyvsp[-7].exp,yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp); ;}
    break;

  case 146:
#line 468 "parser/faustparser.y"
    {yyval.exp = boxHSlider(yyvsp[-9].exp,yyvsp[-7].exp,yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp); ;}
    break;

  case 147:
#line 471 "parser/faustparser.y"
    {yyval.exp = boxNumEntry(yyvsp[-9].exp,yyvsp[-7].exp,yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp); ;}
    break;

  case 148:
#line 474 "parser/faustparser.y"
    {yyval.exp = boxVGroup(yyvsp[-3].exp, yyvsp[-1].exp); ;}
    break;

  case 149:
#line 477 "parser/faustparser.y"
    {yyval.exp = boxHGroup(yyvsp[-3].exp, yyvsp[-1].exp); ;}
    break;

  case 150:
#line 480 "parser/faustparser.y"
    {yyval.exp = boxTGroup(yyvsp[-3].exp, yyvsp[-1].exp); ;}
    break;

  case 151:
#line 484 "parser/faustparser.y"
    {yyval.exp = boxVBargraph(yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp); ;}
    break;

  case 152:
#line 487 "parser/faustparser.y"
    {yyval.exp = boxHBargraph(yyvsp[-5].exp,yyvsp[-3].exp,yyvsp[-1].exp); ;}
    break;

  case 153:
#line 491 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[-4].exp, cons(yyvsp[-3].exp, yyvsp[-1].exp)); ;}
    break;

  case 154:
#line 492 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[-3].exp, cons(yyvsp[-2].exp, nil)); ;}
    break;

  case 155:
#line 495 "parser/faustparser.y"
    {yyval.exp = tree(yytext);;}
    break;

  case 156:
#line 498 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[0].exp,nil); ;}
    break;

  case 157:
#line 499 "parser/faustparser.y"
    {yyval.exp = cons(yyvsp[0].exp,yyvsp[-2].exp); ;}
    break;

  case 158:
#line 502 "parser/faustparser.y"
    {yyval.exp = tree(0); ;}
    break;

  case 159:
#line 503 "parser/faustparser.y"
    {yyval.exp = tree(1); ;}
    break;


    }

/* Line 991 of yacc.c.  */
#line 2353 "parser/faustparser.cpp"

  yyvsp -= yylen;
  yyssp -= yylen;


  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;


  /* 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 - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTOKENS];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (YYPACT_NINF < yyn && yyn < YYLAST)
	{
	  YYSIZE_T yysize = 0;
	  int yytype = YYTRANSLATE (yychar);
	  char *yymsg;
	  int yyx, yycount;

	  yycount = 0;
	  /* Start YYX at -YYN if negative to avoid negative indexes in
	     YYCHECK.  */
	  for (yyx = yyn < 0 ? -yyn : 0;
	       yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
	    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	      yysize += yystrlen (yytname[yyx]) + 15, yycount++;
	  yysize += yystrlen ("syntax error, unexpected ") + 1;
	  yysize += yystrlen (yytname[yytype]);
	  yymsg = (char *) YYSTACK_ALLOC (yysize);
	  if (yymsg != 0)
	    {
	      char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
	      yyp = yystpcpy (yyp, yytname[yytype]);

	      if (yycount < 5)
		{
		  yycount = 0;
		  for (yyx = yyn < 0 ? -yyn : 0;
		       yyx < (int) (sizeof (yytname) / sizeof (char *));
		       yyx++)
		    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
		      {
			const char *yyq = ! yycount ? ", expecting " : " or ";
			yyp = yystpcpy (yyp, yyq);
			yyp = yystpcpy (yyp, yytname[yyx]);
			yycount++;
		      }
		}
	      yyerror (yymsg);
	      YYSTACK_FREE (yymsg);
	    }
	  else
	    yyerror ("syntax error; also virtual memory exhausted");
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror ("syntax error");
    }



  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)
        {
	  /* Pop the error token.  */
          YYPOPSTACK;
	  /* Pop the rest of the stack.  */
	  while (yyss < yyssp)
	    {
	      YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
	      yydestruct (yystos[*yyssp], yyvsp);
	      YYPOPSTACK;
	    }
	  YYABORT;
        }

      YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
      yydestruct (yytoken, &yylval);
      yychar = YYEMPTY;

    }

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


/*----------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action.  |
`----------------------------------------------------*/
yyerrlab1:

  /* Suppress GCC warning that yyerrlab1 is unused when no action
     invokes YYERROR.  */
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) \
    && !defined __cplusplus
  __attribute__ ((__unused__))
#endif


  goto yyerrlab2;


/*---------------------------------------------------------------.
| yyerrlab2 -- pop states until the error token can be shifted.  |
`---------------------------------------------------------------*/
yyerrlab2:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
	YYABORT;

      YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
      yydestruct (yystos[yystate], yyvsp);
      yyvsp--;
      yystate = *--yyssp;

      YY_STACK_PRINT (yyss, yyssp);
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  YYDPRINTF ((stderr, "Shifting error token, "));

  *++yyvsp = yylval;


  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#ifndef yyoverflow
/*----------------------------------------------.
| yyoverflowlab -- parser overflow comes here.  |
`----------------------------------------------*/
yyoverflowlab:
  yyerror ("parser stack overflow");
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
  return yyresult;
}


#line 506 "parser/faustparser.y"



