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

/* Skeleton implementation for Bison's Yacc-like parsers in C

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   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., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton 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

/* Bison version.  */
#define YYBISON_VERSION "2.3"

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

/* Pure parsers.  */
#define YYPURE 1

/* Using locations.  */
#define YYLSP_NEEDED 1



/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     PREC_TOP = 258,
     ADDLYRICS = 259,
     PREC_BOT = 260,
     ACCEPTS = 261,
     ALIAS = 262,
     ALTERNATIVE = 263,
     BOOK = 264,
     CHANGE = 265,
     CHORDMODE = 266,
     CHORDS = 267,
     CONSISTS = 268,
     CONTEXT = 269,
     DEFAULT = 270,
     DEFAULTCHILD = 271,
     DENIES = 272,
     DESCRIPTION = 273,
     DRUMMODE = 274,
     DRUMS = 275,
     FIGUREMODE = 276,
     FIGURES = 277,
     GROBDESCRIPTIONS = 278,
     HEADER = 279,
     INVALID = 280,
     KEY = 281,
     LAYOUT = 282,
     LYRICMODE = 283,
     LYRICS = 284,
     LYRICSTO = 285,
     MARK = 286,
     MARKUP = 287,
     MARKUPLINES = 288,
     MIDI = 289,
     NAME = 290,
     NOTEMODE = 291,
     OBJECTID = 292,
     OCTAVE = 293,
     ONCE = 294,
     OVERRIDE = 295,
     PAPER = 296,
     PARTIAL = 297,
     RELATIVE = 298,
     REMOVE = 299,
     REPEAT = 300,
     REST = 301,
     REVERT = 302,
     SCORE = 303,
     SEQUENTIAL = 304,
     SET = 305,
     SIMULTANEOUS = 306,
     SKIP = 307,
     TEMPO = 308,
     TIMES = 309,
     TRANSPOSE = 310,
     TYPE = 311,
     UNSET = 312,
     WITH = 313,
     TIME_T = 314,
     NEWCONTEXT = 315,
     CHORD_BASS = 316,
     CHORD_CARET = 317,
     CHORD_COLON = 318,
     CHORD_MINUS = 319,
     CHORD_SLASH = 320,
     ANGLE_OPEN = 321,
     ANGLE_CLOSE = 322,
     DOUBLE_ANGLE_OPEN = 323,
     DOUBLE_ANGLE_CLOSE = 324,
     E_BACKSLASH = 325,
     E_ANGLE_CLOSE = 326,
     E_CHAR = 327,
     E_CLOSE = 328,
     E_EXCLAMATION = 329,
     E_BRACKET_OPEN = 330,
     E_OPEN = 331,
     E_BRACKET_CLOSE = 332,
     E_ANGLE_OPEN = 333,
     E_PLUS = 334,
     E_TILDE = 335,
     EXTENDER = 336,
     FIGURE_CLOSE = 337,
     FIGURE_OPEN = 338,
     FIGURE_SPACE = 339,
     HYPHEN = 340,
     CHORDMODIFIERS = 341,
     LYRIC_MARKUP = 342,
     MULTI_MEASURE_REST = 343,
     DIGIT = 344,
     E_UNSIGNED = 345,
     UNSIGNED = 346,
     EXPECT_MARKUP = 347,
     EXPECT_MUSIC = 348,
     EXPECT_SCM = 349,
     EXPECT_NO_MORE_ARGS = 350,
     BOOK_IDENTIFIER = 351,
     CHORDMODIFIER_PITCH = 352,
     CHORD_MODIFIER = 353,
     CONTEXT_DEF_IDENTIFIER = 354,
     DRUM_PITCH = 355,
     DURATION_IDENTIFIER = 356,
     EVENT_IDENTIFIER = 357,
     FRACTION = 358,
     LYRICS_STRING = 359,
     LYRIC_MARKUP_IDENTIFIER = 360,
     MARKUP_HEAD_EMPTY = 361,
     MARKUP_HEAD_LIST0 = 362,
     MARKUP_HEAD_MARKUP0 = 363,
     MARKUP_HEAD_MARKUP0_MARKUP1 = 364,
     MARKUP_HEAD_SCM0 = 365,
     MARKUP_HEAD_SCM0_MARKUP1 = 366,
     MARKUP_HEAD_SCM0_SCM1 = 367,
     MARKUP_HEAD_SCM0_SCM1_MARKUP2 = 368,
     MARKUP_HEAD_SCM0_MARKUP1_MARKUP2 = 369,
     MARKUP_HEAD_SCM0_SCM1_SCM2 = 370,
     MARKUP_LIST_HEAD_EMPTY = 371,
     MARKUP_LIST_HEAD_LIST0 = 372,
     MARKUP_LIST_HEAD_SCM0 = 373,
     MARKUP_LIST_HEAD_SCM0_LIST1 = 374,
     MARKUP_LIST_HEAD_SCM0_SCM1_LIST2 = 375,
     MARKUP_IDENTIFIER = 376,
     MUSIC_FUNCTION = 377,
     MUSIC_IDENTIFIER = 378,
     NOTENAME_PITCH = 379,
     NUMBER_IDENTIFIER = 380,
     OUTPUT_DEF_IDENTIFIER = 381,
     REAL = 382,
     RESTNAME = 383,
     SCM_IDENTIFIER = 384,
     SCM_TOKEN = 385,
     SCORE_IDENTIFIER = 386,
     STRING = 387,
     STRING_IDENTIFIER = 388,
     TONICNAME_PITCH = 389,
     UNARY_MINUS = 390
   };
#endif
/* Tokens.  */
#define PREC_TOP 258
#define ADDLYRICS 259
#define PREC_BOT 260
#define ACCEPTS 261
#define ALIAS 262
#define ALTERNATIVE 263
#define BOOK 264
#define CHANGE 265
#define CHORDMODE 266
#define CHORDS 267
#define CONSISTS 268
#define CONTEXT 269
#define DEFAULT 270
#define DEFAULTCHILD 271
#define DENIES 272
#define DESCRIPTION 273
#define DRUMMODE 274
#define DRUMS 275
#define FIGUREMODE 276
#define FIGURES 277
#define GROBDESCRIPTIONS 278
#define HEADER 279
#define INVALID 280
#define KEY 281
#define LAYOUT 282
#define LYRICMODE 283
#define LYRICS 284
#define LYRICSTO 285
#define MARK 286
#define MARKUP 287
#define MARKUPLINES 288
#define MIDI 289
#define NAME 290
#define NOTEMODE 291
#define OBJECTID 292
#define OCTAVE 293
#define ONCE 294
#define OVERRIDE 295
#define PAPER 296
#define PARTIAL 297
#define RELATIVE 298
#define REMOVE 299
#define REPEAT 300
#define REST 301
#define REVERT 302
#define SCORE 303
#define SEQUENTIAL 304
#define SET 305
#define SIMULTANEOUS 306
#define SKIP 307
#define TEMPO 308
#define TIMES 309
#define TRANSPOSE 310
#define TYPE 311
#define UNSET 312
#define WITH 313
#define TIME_T 314
#define NEWCONTEXT 315
#define CHORD_BASS 316
#define CHORD_CARET 317
#define CHORD_COLON 318
#define CHORD_MINUS 319
#define CHORD_SLASH 320
#define ANGLE_OPEN 321
#define ANGLE_CLOSE 322
#define DOUBLE_ANGLE_OPEN 323
#define DOUBLE_ANGLE_CLOSE 324
#define E_BACKSLASH 325
#define E_ANGLE_CLOSE 326
#define E_CHAR 327
#define E_CLOSE 328
#define E_EXCLAMATION 329
#define E_BRACKET_OPEN 330
#define E_OPEN 331
#define E_BRACKET_CLOSE 332
#define E_ANGLE_OPEN 333
#define E_PLUS 334
#define E_TILDE 335
#define EXTENDER 336
#define FIGURE_CLOSE 337
#define FIGURE_OPEN 338
#define FIGURE_SPACE 339
#define HYPHEN 340
#define CHORDMODIFIERS 341
#define LYRIC_MARKUP 342
#define MULTI_MEASURE_REST 343
#define DIGIT 344
#define E_UNSIGNED 345
#define UNSIGNED 346
#define EXPECT_MARKUP 347
#define EXPECT_MUSIC 348
#define EXPECT_SCM 349
#define EXPECT_NO_MORE_ARGS 350
#define BOOK_IDENTIFIER 351
#define CHORDMODIFIER_PITCH 352
#define CHORD_MODIFIER 353
#define CONTEXT_DEF_IDENTIFIER 354
#define DRUM_PITCH 355
#define DURATION_IDENTIFIER 356
#define EVENT_IDENTIFIER 357
#define FRACTION 358
#define LYRICS_STRING 359
#define LYRIC_MARKUP_IDENTIFIER 360
#define MARKUP_HEAD_EMPTY 361
#define MARKUP_HEAD_LIST0 362
#define MARKUP_HEAD_MARKUP0 363
#define MARKUP_HEAD_MARKUP0_MARKUP1 364
#define MARKUP_HEAD_SCM0 365
#define MARKUP_HEAD_SCM0_MARKUP1 366
#define MARKUP_HEAD_SCM0_SCM1 367
#define MARKUP_HEAD_SCM0_SCM1_MARKUP2 368
#define MARKUP_HEAD_SCM0_MARKUP1_MARKUP2 369
#define MARKUP_HEAD_SCM0_SCM1_SCM2 370
#define MARKUP_LIST_HEAD_EMPTY 371
#define MARKUP_LIST_HEAD_LIST0 372
#define MARKUP_LIST_HEAD_SCM0 373
#define MARKUP_LIST_HEAD_SCM0_LIST1 374
#define MARKUP_LIST_HEAD_SCM0_SCM1_LIST2 375
#define MARKUP_IDENTIFIER 376
#define MUSIC_FUNCTION 377
#define MUSIC_IDENTIFIER 378
#define NOTENAME_PITCH 379
#define NUMBER_IDENTIFIER 380
#define OUTPUT_DEF_IDENTIFIER 381
#define REAL 382
#define RESTNAME 383
#define SCM_IDENTIFIER 384
#define SCM_TOKEN 385
#define SCORE_IDENTIFIER 386
#define STRING 387
#define STRING_IDENTIFIER 388
#define TONICNAME_PITCH 389
#define UNARY_MINUS 390




/* Copy the first part of user declarations.  */
#line 10 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"


#define YYDEBUG 1
#define YYERROR_VERBOSE 1
#define YYPARSE_PARAM my_lily_parser
#define YYLEX_PARAM my_lily_parser
#define PARSER ((Lily_parser *) my_lily_parser)

#define yyerror PARSER->parser_error

/* We use custom location type: Input objects */
#define YYLTYPE Input
#define YYLLOC_DEFAULT(Current,Rhs,N) \
	((Current).set_location ((Rhs)[1], (Rhs)[N]))


#line 56 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
 // -*-Fundamental-*-

/*
FIXME:

   * The rules for who is protecting what are very shady.  Uniformise
     this.

   * There are too many lexical modes?
*/

#include "config.hh"

#include <cctype>
#include <cstdlib>
#include <cstdio>
using namespace std;

#include "book.hh"
#include "context-def.hh"
#include "dimensions.hh"
#include "file-path.hh"
#include "input.hh"
#include "international.hh"
#include "lily-guile.hh"
#include "lily-lexer.hh"
#include "lily-parser.hh"
#include "main.hh"
#include "misc.hh"
#include "music.hh"
#include "music.hh"
#include "output-def.hh"
#include "paper-book.hh"
#include "program-option.hh"
#include "scm-hash.hh"
#include "score.hh"
#include "text-interface.hh"
#include "warn.hh"



/* 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

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif

#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 98 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
{
	Book *book;
	Output_def *outputdef;
	SCM scm;
	std::string *string;
 	Music *music;
 	Score *score;
 	int i;
}
/* Line 187 of yacc.c.  */
#line 434 "out/parser.cc"
	YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif

#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{
  int first_line;
  int first_column;
  int last_line;
  int last_column;
} YYLTYPE;
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif


/* Copy the second part of user declarations.  */
#line 108 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"


#define MY_MAKE_MUSIC(x, spot)  make_music_with_input (ly_symbol2scm (x), spot)

/* ES TODO:
- Don't use lily module, create a new module instead.
- delay application of the function
*/
#define LOWLEVEL_MAKE_SYNTAX(proc, args)	\
  scm_apply_0 (proc, args)
/* Syntactic Sugar. */
#define MAKE_SYNTAX(name, location, ...)	\
  LOWLEVEL_MAKE_SYNTAX (ly_lily_module_constant (name), scm_list_n (PARSER->self_scm (), make_input (location), __VA_ARGS__, SCM_UNDEFINED));

SCM get_next_unique_context_id ();
SCM get_next_unique_lyrics_context_id ();

#undef _
#if !HAVE_GETTEXT
#define _(x) x
#else
#include <libintl.h>
#define _(x) gettext (x)
#endif


static Music *make_music_with_input (SCM name, Input where);
SCM make_music_relative (Pitch start, SCM music, Input loc);
SCM run_music_function (Lily_parser *, SCM expr);
SCM get_first_context_id (SCM type, Music *m);
SCM make_chord_elements (SCM pitch, SCM dur, SCM modification_list);
SCM make_chord_step (int step, Rational alter);
SCM make_simple_markup (SCM a);
bool is_duration (int t);
bool is_regular_identifier (SCM id);
bool ly_input_procedure_p (SCM x);
int yylex (YYSTYPE *s, YYLTYPE *loc, void *v);
void set_music_properties (Music *p, SCM a);



/* Line 216 of yacc.c.  */
#line 499 "out/parser.cc"

#ifdef short
# undef short
#endif

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif

#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif

#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif

#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned int
# endif
#endif

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif

/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int i)
#else
static int
YYID (i)
    int i;
#endif
{
  return i;
}
#endif

#if ! defined yyoverflow || YYERROR_VERBOSE

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

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef _STDLIB_H
#      define _STDLIB_H 1
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined _STDLIB_H \
       && ! ((defined YYMALLOC || defined malloc) \
	     && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef _STDLIB_H
#    define _STDLIB_H 1
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


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

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

/* 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 (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
      + 2 * YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  YYSIZE_T yyi;				\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (YYID (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 (YYID (0))

#endif

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

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  157
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  138
/* YYNRULES -- Number of rules.  */
#define YYNRULES  393
/* YYNRULES -- Number of states.  */
#define YYNSTATES  568

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

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

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint8 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,   155,     2,     2,     2,     2,     2,   148,
     146,   147,   152,   136,   149,   135,   141,   153,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,   154,     2,
       2,   140,     2,   156,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   143,     2,   144,   150,   151,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   138,   142,   139,   145,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,    98,    99,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,   112,   113,   114,
     115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
     125,   126,   127,   128,   129,   130,   131,   132,   133,   134,
     137
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     4,     7,    10,    13,    16,    19,    21,
      23,    25,    27,    29,    31,    33,    35,    37,    38,    41,
      46,    48,    50,    54,    56,    58,    60,    62,    64,    66,
      68,    70,    72,    74,    76,    78,    83,    84,    86,    90,
      93,    98,    99,   101,   104,   107,   110,   113,   116,   119,
     122,   125,   130,   132,   134,   137,   140,   143,   146,   148,
     151,   153,   155,   157,   159,   162,   166,   169,   172,   175,
     180,   186,   192,   195,   198,   199,   202,   205,   208,   210,
     212,   213,   218,   224,   229,   233,   238,   242,   244,   246,
     248,   250,   251,   252,   258,   259,   262,   264,   266,   268,
     270,   272,   274,   278,   282,   286,   288,   292,   296,   298,
     300,   302,   305,   306,   309,   311,   317,   323,   327,   329,
     334,   337,   341,   343,   345,   347,   349,   351,   353,   355,
     357,   359,   361,   363,   367,   370,   371,   375,   376,   381,
     384,   385,   390,   395,   397,   400,   402,   406,   409,   415,
     419,   421,   423,   425,   427,   429,   431,   433,   435,   437,
     439,   442,   444,   448,   454,   458,   463,   466,   468,   471,
     473,   475,   479,   481,   483,   485,   487,   489,   491,   493,
     495,   497,   500,   504,   506,   508,   512,   516,   517,   520,
     526,   529,   531,   533,   538,   541,   546,   549,   551,   554,
     556,   558,   560,   562,   565,   568,   571,   573,   576,   578,
     581,   585,   586,   589,   591,   594,   596,   598,   601,   604,
     606,   608,   610,   612,   614,   616,   618,   620,   622,   624,
     626,   628,   630,   632,   634,   636,   638,   639,   641,   644,
     647,   649,   652,   654,   657,   659,   662,   665,   667,   670,
     673,   675,   677,   679,   681,   683,   685,   687,   689,   691,
     693,   695,   697,   699,   701,   703,   705,   707,   709,   710,
     712,   715,   718,   720,   724,   728,   730,   734,   735,   738,
     740,   743,   745,   747,   749,   751,   753,   755,   757,   759,
     761,   764,   767,   770,   772,   774,   776,   778,   780,   783,
     784,   787,   791,   792,   794,   801,   804,   807,   810,   812,
     814,   817,   819,   821,   824,   829,   830,   833,   835,   837,
     840,   843,   845,   847,   849,   851,   855,   857,   860,   863,
     867,   871,   873,   875,   879,   883,   886,   888,   890,   892,
     894,   897,   900,   902,   904,   906,   908,   909,   912,   913,
     916,   918,   919,   923,   924,   928,   930,   931,   935,   937,
     940,   942,   944,   946,   948,   951,   955,   956,   959,   962,
     964,   967,   970,   974,   979,   981,   984,   988,   990,   993,
     995,   997,   999,  1001,  1002,  1008,  1011,  1016,  1020,  1025,
    1027,  1030,  1034,  1037
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
     158,     0,    -1,    -1,   158,   160,    -1,   158,   165,    -1,
     158,     1,    -1,   158,    25,    -1,    37,   132,    -1,   163,
      -1,   169,    -1,   171,    -1,   189,    -1,   282,    -1,   280,
      -1,   174,    -1,   130,    -1,   129,    -1,    -1,   162,   165,
      -1,    24,   138,   162,   139,    -1,   132,    -1,   104,    -1,
     164,   140,   166,    -1,   161,    -1,   171,    -1,   169,    -1,
     174,    -1,   167,    -1,   180,    -1,   230,    -1,   270,    -1,
     216,    -1,   161,    -1,   282,    -1,    89,    -1,    14,   138,
     168,   139,    -1,    -1,    99,    -1,   168,    23,   161,    -1,
     168,   212,    -1,     9,   138,   170,   139,    -1,    -1,    96,
      -1,   170,   173,    -1,   170,   171,    -1,   170,   189,    -1,
     170,   282,    -1,   170,   280,    -1,   170,   163,    -1,   170,
       1,    -1,   170,   159,    -1,    48,   138,   172,   139,    -1,
     180,    -1,   131,    -1,   172,   159,    -1,   172,   163,    -1,
     172,   174,    -1,   172,     1,    -1,   174,    -1,   177,   139,
      -1,    41,    -1,    34,    -1,    27,    -1,   175,    -1,   176,
     138,    -1,   176,   138,   126,    -1,   177,   165,    -1,   177,
     167,    -1,   177,     1,    -1,    53,   248,   140,   274,    -1,
      53,   216,   248,   140,   274,    -1,    53,   282,   248,   140,
     274,    -1,    53,   216,    -1,    53,   282,    -1,    -1,   179,
     180,    -1,   179,   161,    -1,   179,     1,    -1,   185,    -1,
     189,    -1,    -1,     8,   138,   179,   139,    -1,    45,   217,
     275,   180,   181,    -1,    49,   138,   179,   139,    -1,   138,
     179,   139,    -1,    51,   138,   179,   139,    -1,    68,   179,
      69,    -1,   219,    -1,   123,    -1,   215,    -1,   207,    -1,
      -1,    -1,    58,   187,   138,   188,   139,    -1,    -1,   188,
     212,    -1,   198,    -1,   190,    -1,   184,    -1,   183,    -1,
     161,    -1,   217,    -1,    93,   195,   180,    -1,    92,   195,
     282,    -1,    94,   195,   191,    -1,    95,    -1,    92,   194,
     282,    -1,    94,   194,   191,    -1,    95,    -1,   192,    -1,
     193,    -1,   122,   195,    -1,    -1,   140,   217,    -1,   196,
      -1,    14,   217,   197,   186,   180,    -1,    60,   217,   197,
     186,   180,    -1,    54,   250,   180,    -1,   182,    -1,    55,
     241,   241,   180,    -1,   199,   190,    -1,   200,   186,   190,
      -1,   201,    -1,   205,    -1,    36,    -1,    19,    -1,    21,
      -1,    11,    -1,    28,    -1,    20,    -1,    22,    -1,    12,
      -1,    29,    -1,    43,   245,   180,    -1,    43,   189,    -1,
      -1,     4,   203,   190,    -1,    -1,   202,     4,   204,   190,
      -1,   190,   202,    -1,    -1,    30,   217,   206,   180,    -1,
      10,   132,   140,   132,    -1,   161,    -1,   208,   161,    -1,
     208,    -1,   132,   140,   218,    -1,    57,   217,    -1,    40,
     217,   209,   140,   161,    -1,    47,   217,   161,    -1,    13,
      -1,    44,    -1,     6,    -1,    16,    -1,    17,    -1,     7,
      -1,    56,    -1,    18,    -1,    35,    -1,   210,    -1,   211,
     132,    -1,   217,    -1,   217,   141,   217,    -1,    40,   213,
     209,   140,   218,    -1,    47,   213,   161,    -1,    50,   213,
     140,   218,    -1,    57,   213,    -1,   214,    -1,    39,   214,
      -1,   132,    -1,   133,    -1,   216,   136,   216,    -1,   132,
      -1,   104,    -1,   133,    -1,   216,    -1,   104,    -1,   273,
      -1,   161,    -1,   282,    -1,    89,    -1,   262,   229,    -1,
      88,   247,   229,    -1,   227,    -1,   220,    -1,   221,   247,
     229,    -1,    66,   222,    67,    -1,    -1,   222,   223,    -1,
     240,   276,   277,   235,   229,    -1,   100,   229,    -1,   225,
      -1,   122,    -1,   224,    93,   194,   223,    -1,   224,   194,
      -1,   224,    93,   194,   230,    -1,   224,   194,    -1,   228,
      -1,    52,   246,    -1,    75,    -1,    77,    -1,    70,    -1,
     142,    -1,    42,   246,    -1,    59,   250,    -1,    31,   218,
      -1,    80,    -1,    31,    15,    -1,   178,    -1,    26,    15,
      -1,    26,   124,   129,    -1,    -1,   229,   230,    -1,   233,
      -1,   135,   226,    -1,    85,    -1,    81,    -1,   244,   234,
      -1,   244,   233,    -1,   231,    -1,    90,    -1,   143,    -1,
     144,    -1,   145,    -1,   146,    -1,   147,    -1,    74,    -1,
      76,    -1,    73,    -1,    71,    -1,    78,    -1,   232,    -1,
     102,    -1,   252,    -1,   242,    -1,   243,    -1,    -1,   140,
      -1,   140,   237,    -1,   140,   236,    -1,   148,    -1,   236,
     148,    -1,   149,    -1,   237,   149,    -1,   124,    -1,   124,
     236,    -1,   124,   237,    -1,   134,    -1,   134,   236,    -1,
     134,   237,    -1,   238,    -1,   240,    -1,   239,    -1,   282,
      -1,   216,    -1,    89,    -1,   150,    -1,   136,    -1,   135,
      -1,   142,    -1,    67,    -1,   141,    -1,   151,    -1,   151,
      -1,   150,    -1,   135,    -1,   238,    -1,   249,    -1,    -1,
     249,    -1,   274,   251,    -1,   101,   251,    -1,   248,    -1,
     249,   152,   274,    -1,   249,   152,   103,    -1,   103,    -1,
      91,   153,    91,    -1,    -1,   251,   141,    -1,   154,    -1,
     154,   274,    -1,    89,    -1,    91,    -1,   132,    -1,   282,
      -1,   135,    -1,   136,    -1,   155,    -1,    84,    -1,   253,
      -1,   255,   144,    -1,   255,   254,    -1,   255,   256,    -1,
      79,    -1,    74,    -1,   153,    -1,    70,    -1,   255,    -1,
     143,   255,    -1,    -1,   258,   257,    -1,    83,   258,    82,
      -1,    -1,    46,    -1,   240,   276,   277,   235,   247,   260,
      -1,   100,   247,    -1,   128,   247,    -1,   263,   247,    -1,
     261,    -1,   264,    -1,   259,   247,    -1,   278,    -1,   104,
      -1,   239,   247,    -1,   239,   247,   266,   265,    -1,    -1,
     265,   267,    -1,    63,    -1,    62,    -1,    65,   239,    -1,
      61,   239,    -1,   266,    -1,   268,    -1,    98,    -1,   269,
      -1,   268,   141,   269,    -1,   274,    -1,   274,   136,    -1,
     274,    64,    -1,   270,   136,   271,    -1,   270,   135,   271,
      -1,   271,    -1,   272,    -1,   272,   152,   272,    -1,   272,
     153,   272,    -1,   135,   272,    -1,   273,    -1,    91,    -1,
     127,    -1,   125,    -1,   127,   125,    -1,    91,   125,    -1,
      91,    -1,    89,    -1,   274,    -1,   125,    -1,    -1,   276,
     155,    -1,    -1,   277,   156,    -1,   105,    -1,    -1,    87,
     279,   284,    -1,    -1,    33,   281,   285,    -1,   121,    -1,
      -1,    32,   283,   284,    -1,   285,    -1,   291,   292,    -1,
     292,    -1,   286,    -1,   287,    -1,   289,    -1,   291,   287,
      -1,   138,   288,   139,    -1,    -1,   288,   294,    -1,   288,
     285,    -1,   116,    -1,   117,   285,    -1,   118,   161,    -1,
     119,   161,   285,    -1,   120,   161,   161,   285,    -1,   108,
      -1,   111,   161,    -1,   113,   161,   161,    -1,   290,    -1,
     291,   290,    -1,   132,    -1,   121,    -1,   105,    -1,   133,
      -1,    -1,    48,   293,   138,   172,   139,    -1,   110,   161,
      -1,   115,   161,   161,   161,    -1,   112,   161,   161,    -1,
     114,   161,   294,   294,    -1,   106,    -1,   107,   285,    -1,
     109,   294,   294,    -1,   291,   292,    -1,   292,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   448,   448,   449,   451,   453,   456,   463,   467,   470,
     476,   483,   488,   492,   496,   513,   514,   519,   523,   529,
     538,   539,   543,   554,   559,   563,   567,   571,   574,   586,
     589,   592,   595,   598,   601,   607,   614,   618,   622,   633,
     641,   650,   657,   662,   666,   672,   677,   681,   685,   688,
     692,   698,   704,   714,   719,   722,   725,   737,   748,   761,
     770,   775,   780,   789,   796,   800,   810,   813,   816,   822,
     825,   828,   831,   834,   847,   850,   860,   863,   880,   881,
     885,   888,   895,   902,   905,   911,   914,   920,   921,   922,
     923,   927,   928,   928,   937,   938,   944,   945,   949,   950,
     954,   955,   963,   969,   972,   977,   980,   983,   988,   993,
     994,   998,  1005,  1006,  1013,  1016,  1019,  1023,  1026,  1027,
    1033,  1044,  1052,  1053,  1057,  1063,  1070,  1075,  1083,  1090,
    1096,  1101,  1108,  1116,  1120,  1127,  1127,  1136,  1136,  1145,
    1148,  1148,  1157,  1164,  1167,  1173,  1179,  1183,  1187,  1192,
    1199,  1200,  1202,  1203,  1204,  1206,  1207,  1208,  1209,  1213,
    1214,  1220,  1229,  1236,  1243,  1249,  1255,  1263,  1266,  1272,
    1275,  1278,  1283,  1286,  1289,  1294,  1297,  1300,  1303,  1306,
    1309,  1318,  1327,  1332,  1333,  1338,  1356,  1363,  1364,  1370,
    1396,  1407,  1412,  1425,  1428,  1437,  1440,  1446,  1449,  1452,
    1457,  1462,  1465,  1479,  1485,  1490,  1498,  1501,  1505,  1508,
    1512,  1530,  1533,  1540,  1543,  1546,  1551,  1556,  1564,  1572,
    1576,  1584,  1587,  1590,  1593,  1596,  1599,  1602,  1605,  1608,
    1611,  1617,  1631,  1634,  1642,  1645,  1656,  1657,  1658,  1659,
    1663,  1666,  1672,  1675,  1681,  1684,  1689,  1701,  1704,  1709,
    1718,  1724,  1725,  1729,  1734,  1740,  1748,  1751,  1754,  1757,
    1760,  1763,  1766,  1772,  1773,  1774,  1779,  1785,  1791,  1795,
    1802,  1811,  1820,  1823,  1826,  1834,  1835,  1841,  1844,  1850,
    1853,  1861,  1864,  1867,  1868,  1872,  1873,  1874,  1878,  1882,
    1893,  1897,  1908,  1931,  1934,  1937,  1940,  1946,  1949,  1956,
    1959,  1965,  1972,  1973,  1977,  2003,  2010,  2023,  2035,  2038,
    2043,  2053,  2056,  2062,  2065,  2072,  2075,  2081,  2084,  2087,
    2090,  2096,  2099,  2102,  2108,  2109,  2115,  2118,  2121,  2133,
    2136,  2139,  2143,  2146,  2149,  2155,  2158,  2163,  2166,  2169,
    2172,  2175,  2182,  2185,  2191,  2192,  2199,  2200,  2204,  2205,
    2213,  2217,  2216,  2226,  2225,  2234,  2238,  2237,  2246,  2249,
    2252,  2258,  2261,  2264,  2270,  2277,  2283,  2284,  2287,  2293,
    2296,  2299,  2302,  2305,  2311,  2314,  2317,  2323,  2326,  2332,
    2335,  2338,  2341,  2344,  2344,  2353,  2356,  2359,  2362,  2365,
    2368,  2371,  2377,  2381
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[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", "PREC_TOP", "\"\\\\addlyrics\"",
  "PREC_BOT", "\"\\\\accepts\"", "\"\\\\alias\"", "\"\\\\alternative\"",
  "\"\\\\book\"", "\"\\\\change\"", "\"\\\\chordmode\"", "\"\\\\chords\"",
  "\"\\\\consists\"", "\"\\\\context\"", "\"\\\\default\"",
  "\"\\\\defaultchild\"", "\"\\\\denies\"", "\"\\\\description\"",
  "\"\\\\drummode\"", "\"\\\\drums\"", "\"\\\\figuremode\"",
  "\"\\\\figures\"", "\"\\\\grobdescriptions\"", "\"\\\\header\"",
  "\"\\\\invalid\"", "\"\\\\key\"", "\"\\\\layout\"", "\"\\\\lyricmode\"",
  "\"\\\\lyrics\"", "\"\\\\lyricsto\"", "\"\\\\mark\"", "\"\\\\markup\"",
  "\"\\\\markuplines\"", "\"\\\\midi\"", "\"\\\\name\"",
  "\"\\\\notemode\"", "\"\\\\objectid\"", "\"\\\\octave\"", "\"\\\\once\"",
  "\"\\\\override\"", "\"\\\\paper\"", "\"\\\\partial\"",
  "\"\\\\relative\"", "\"\\\\remove\"", "\"\\\\repeat\"", "\"\\\\rest\"",
  "\"\\\\revert\"", "\"\\\\score\"", "\"\\\\sequential\"", "\"\\\\set\"",
  "\"\\\\simultaneous\"", "\"\\\\skip\"", "\"\\\\tempo\"", "\"\\\\times\"",
  "\"\\\\transpose\"", "\"\\\\type\"", "\"\\\\unset\"", "\"\\\\with\"",
  "\"\\\\time\"", "\"\\\\new\"", "\"/+\"", "\"^\"", "\":\"", "\"-\"",
  "\"/\"", "\"<\"", "\">\"", "\"<<\"", "\">>\"", "\"\\\\\"", "\"\\\\>\"",
  "\"\\\\C[haracter]\"", "\"\\\\)\"", "\"\\\\!\"", "\"\\\\[\"",
  "\"\\\\(\"", "\"\\\\]\"", "\"\\\\<\"", "\"\\\\+\"", "\"\\\\~\"",
  "\"__\"", "FIGURE_CLOSE", "FIGURE_OPEN", "\"_\"", "\"--\"",
  "CHORDMODIFIERS", "LYRIC_MARKUP", "MULTI_MEASURE_REST", "DIGIT",
  "E_UNSIGNED", "UNSIGNED", "EXPECT_MARKUP", "EXPECT_MUSIC", "EXPECT_SCM",
  "EXPECT_NO_MORE_ARGS", "BOOK_IDENTIFIER", "CHORDMODIFIER_PITCH",
  "CHORD_MODIFIER", "CONTEXT_DEF_IDENTIFIER", "DRUM_PITCH",
  "DURATION_IDENTIFIER", "EVENT_IDENTIFIER", "FRACTION", "LYRICS_STRING",
  "LYRIC_MARKUP_IDENTIFIER", "MARKUP_HEAD_EMPTY", "MARKUP_HEAD_LIST0",
  "MARKUP_HEAD_MARKUP0", "MARKUP_HEAD_MARKUP0_MARKUP1", "MARKUP_HEAD_SCM0",
  "MARKUP_HEAD_SCM0_MARKUP1", "MARKUP_HEAD_SCM0_SCM1",
  "MARKUP_HEAD_SCM0_SCM1_MARKUP2", "MARKUP_HEAD_SCM0_MARKUP1_MARKUP2",
  "MARKUP_HEAD_SCM0_SCM1_SCM2", "MARKUP_LIST_HEAD_EMPTY",
  "MARKUP_LIST_HEAD_LIST0", "MARKUP_LIST_HEAD_SCM0",
  "MARKUP_LIST_HEAD_SCM0_LIST1", "MARKUP_LIST_HEAD_SCM0_SCM1_LIST2",
  "MARKUP_IDENTIFIER", "MUSIC_FUNCTION", "MUSIC_IDENTIFIER",
  "NOTENAME_PITCH", "NUMBER_IDENTIFIER", "OUTPUT_DEF_IDENTIFIER", "REAL",
  "RESTNAME", "SCM_IDENTIFIER", "SCM_TOKEN", "SCORE_IDENTIFIER", "STRING",
  "STRING_IDENTIFIER", "TONICNAME_PITCH", "'-'", "'+'", "UNARY_MINUS",
  "'{'", "'}'", "'='", "'.'", "'|'", "'['", "']'", "'~'", "'('", "')'",
  "'''", "','", "'^'", "'_'", "'*'", "'/'", "':'", "'!'", "'?'", "$accept",
  "lilypond", "object_id_setting", "toplevel_expression", "embedded_scm",
  "lilypond_header_body", "lilypond_header", "assignment_id", "assignment",
  "identifier_init", "context_def_spec_block", "context_def_spec_body",
  "book_block", "book_body", "score_block", "score_body", "paper_block",
  "output_def", "output_def_head", "output_def_head_with_mode_switch",
  "output_def_body", "tempo_event", "music_list", "music",
  "alternative_music", "repeated_music", "sequential_music",
  "simultaneous_music", "simple_music", "optional_context_mod", "@1",
  "context_mod_list", "composite_music", "grouped_music_list",
  "function_scm_argument", "function_arglist_music_last",
  "function_arglist_nonmusic_last", "function_arglist_nonmusic",
  "function_arglist", "generic_prefix_music_scm", "optional_id",
  "prefix_composite_music", "mode_changing_head",
  "mode_changing_head_with_context", "relative_music", "new_lyrics", "@2",
  "@3", "re_rhythmed_music", "@4", "context_change",
  "property_path_revved", "property_path", "property_operation",
  "context_def_mod", "context_mod", "context_prop_spec",
  "simple_music_property_def", "music_property_def", "string",
  "simple_string", "scalar", "event_chord", "note_chord_element",
  "chord_body", "chord_body_elements", "chord_body_element",
  "music_function_identifier_musicless_prefix",
  "music_function_chord_body", "music_function_event", "command_element",
  "command_event", "post_events", "post_event", "string_number_event",
  "direction_less_char", "direction_less_event", "direction_reqd_event",
  "octave_check", "sup_quotes", "sub_quotes", "steno_pitch",
  "steno_tonic_pitch", "pitch", "pitch_also_in_chords", "gen_text_def",
  "script_abbreviation", "script_dir", "absolute_pitch", "duration_length",
  "optional_notemode_duration", "steno_duration", "multiplied_duration",
  "fraction", "dots", "tremolo_type", "bass_number",
  "figured_bass_alteration", "bass_figure", "figured_bass_modification",
  "br_bass_figure", "figure_list", "figure_spec", "optional_rest",
  "simple_element", "simple_chord_elements", "lyric_element", "new_chord",
  "chord_items", "chord_separator", "chord_item", "step_numbers",
  "step_number", "number_expression", "number_term", "number_factor",
  "bare_number", "bare_unsigned", "unsigned_number", "exclamations",
  "questions", "lyric_markup", "@5", "full_markup_list", "@6",
  "full_markup", "@7", "markup_top", "markup_list", "markup_composed_list",
  "markup_braced_list", "markup_braced_list_body", "markup_command_list",
  "markup_head_1_item", "markup_head_1_list", "simple_markup", "@8",
  "markup", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 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,   353,   354,
     355,   356,   357,   358,   359,   360,   361,   362,   363,   364,
     365,   366,   367,   368,   369,   370,   371,   372,   373,   374,
     375,   376,   377,   378,   379,   380,   381,   382,   383,   384,
     385,   386,   387,   388,   389,    45,    43,   390,   123,   125,
      61,    46,   124,    91,    93,   126,    40,    41,    39,    44,
      94,    95,    42,    47,    58,    33,    63
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint16 yyr1[] =
{
       0,   157,   158,   158,   158,   158,   158,   159,   160,   160,
     160,   160,   160,   160,   160,   161,   161,   162,   162,   163,
     164,   164,   165,   165,   166,   166,   166,   166,   166,   166,
     166,   166,   166,   166,   166,   167,   168,   168,   168,   168,
     169,   170,   170,   170,   170,   170,   170,   170,   170,   170,
     170,   171,   172,   172,   172,   172,   172,   172,   173,   174,
     175,   175,   175,   176,   177,   177,   177,   177,   177,   178,
     178,   178,   178,   178,   179,   179,   179,   179,   180,   180,
     181,   181,   182,   183,   183,   184,   184,   185,   185,   185,
     185,   186,   187,   186,   188,   188,   189,   189,   190,   190,
     191,   191,   192,   193,   193,   194,   194,   194,   195,   195,
     195,   196,   197,   197,   198,   198,   198,   198,   198,   198,
     198,   198,   198,   198,   199,   199,   199,   199,   199,   200,
     200,   200,   200,   201,   201,   203,   202,   204,   202,   205,
     206,   205,   207,   208,   208,   209,   210,   210,   210,   210,
     211,   211,   211,   211,   211,   211,   211,   211,   211,   212,
     212,   213,   213,   214,   214,   214,   214,   215,   215,   216,
     216,   216,   217,   217,   217,   218,   218,   218,   218,   218,
     218,   219,   219,   219,   219,   220,   221,   222,   222,   223,
     223,   223,   224,   225,   225,   226,   226,   227,   227,   227,
     227,   227,   227,   227,   227,   227,   228,   228,   228,   228,
     228,   229,   229,   230,   230,   230,   230,   230,   230,   230,
     231,   232,   232,   232,   232,   232,   232,   232,   232,   232,
     232,   233,   233,   233,   234,   234,   235,   235,   235,   235,
     236,   236,   237,   237,   238,   238,   238,   239,   239,   239,
     240,   241,   241,   242,   242,   242,   243,   243,   243,   243,
     243,   243,   243,   244,   244,   244,   245,   246,   247,   247,
     248,   248,   249,   249,   249,   250,   250,   251,   251,   252,
     252,   253,   253,   253,   253,   254,   254,   254,   255,   255,
     255,   255,   255,   256,   256,   256,   256,   257,   257,   258,
     258,   259,   260,   260,   261,   261,   261,   261,   262,   262,
     262,   263,   263,   264,   264,   265,   265,   266,   266,   266,
     266,   267,   267,   267,   268,   268,   269,   269,   269,   270,
     270,   270,   271,   271,   271,   272,   272,   273,   273,   273,
     273,   273,   274,   274,   275,   275,   276,   276,   277,   277,
     278,   279,   278,   281,   280,   282,   283,   282,   284,   284,
     284,   285,   285,   285,   286,   287,   288,   288,   288,   289,
     289,   289,   289,   289,   290,   290,   290,   291,   291,   292,
     292,   292,   292,   293,   292,   292,   292,   292,   292,   292,
     292,   292,   294,   294
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     0,     2,     2,     2,     2,     2,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     0,     2,     4,
       1,     1,     3,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     4,     0,     1,     3,     2,
       4,     0,     1,     2,     2,     2,     2,     2,     2,     2,
       2,     4,     1,     1,     2,     2,     2,     2,     1,     2,
       1,     1,     1,     1,     2,     3,     2,     2,     2,     4,
       5,     5,     2,     2,     0,     2,     2,     2,     1,     1,
       0,     4,     5,     4,     3,     4,     3,     1,     1,     1,
       1,     0,     0,     5,     0,     2,     1,     1,     1,     1,
       1,     1,     3,     3,     3,     1,     3,     3,     1,     1,
       1,     2,     0,     2,     1,     5,     5,     3,     1,     4,
       2,     3,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     3,     2,     0,     3,     0,     4,     2,
       0,     4,     4,     1,     2,     1,     3,     2,     5,     3,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       2,     1,     3,     5,     3,     4,     2,     1,     2,     1,
       1,     3,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     2,     3,     1,     1,     3,     3,     0,     2,     5,
       2,     1,     1,     4,     2,     4,     2,     1,     2,     1,
       1,     1,     1,     2,     2,     2,     1,     2,     1,     2,
       3,     0,     2,     1,     2,     1,     1,     2,     2,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     0,     1,     2,     2,
       1,     2,     1,     2,     1,     2,     2,     1,     2,     2,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     0,     1,
       2,     2,     1,     3,     3,     1,     3,     0,     2,     1,
       2,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       2,     2,     2,     1,     1,     1,     1,     1,     2,     0,
       2,     3,     0,     1,     6,     2,     2,     2,     1,     1,
       2,     1,     1,     2,     4,     0,     2,     1,     1,     2,
       2,     1,     1,     1,     1,     3,     1,     2,     2,     3,
       3,     1,     1,     3,     3,     2,     1,     1,     1,     1,
       2,     2,     1,     1,     1,     1,     0,     2,     0,     2,
       1,     0,     3,     0,     3,     1,     0,     3,     1,     2,
       1,     1,     1,     1,     2,     3,     0,     2,     2,     1,
       2,     2,     3,     4,     1,     2,     3,     1,     2,     1,
       1,     1,     1,     0,     5,     2,     4,     3,     4,     1,
       2,     3,     2,     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 yytype_uint16 yydefact[] =
{
       2,     0,     1,     5,     0,   127,   131,     0,   125,   129,
     126,   130,     0,     6,    62,   128,   132,     0,   356,   353,
      61,   124,    60,     0,     0,     0,     0,     0,     0,     0,
       0,    74,    21,   355,     0,    16,    15,    20,    74,     3,
      23,     8,     0,     4,     9,    10,    14,    63,     0,     0,
     118,    99,    98,    11,    97,   114,    96,     0,    91,   122,
     123,    13,    12,    41,   173,   172,   174,   112,    17,   140,
       0,     0,   244,   134,   266,     0,     0,     0,    74,    74,
       0,   275,     0,   247,   250,   252,   251,     0,   112,     0,
       0,     0,     0,   108,   109,   110,   111,     0,     0,    64,
      68,     0,    59,    66,    67,   135,   139,   120,    92,     0,
      42,     0,     0,    91,     0,     0,   383,   381,   389,     0,
     374,     0,     0,     0,     0,     0,     0,     0,   369,     0,
       0,     0,     0,   380,   379,   382,   366,   357,   358,   361,
     362,   363,   377,     0,   360,   354,     0,   240,   242,   245,
     246,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   187,   201,   199,   200,   206,   299,   351,
     268,   268,   312,   350,    88,   268,   202,   208,   133,    78,
      79,    90,   167,    89,    87,   184,   268,   183,   197,   268,
     346,   268,   308,   211,   268,   309,   311,   343,   342,   345,
     344,     0,    53,     0,    52,     0,     0,     0,   117,   248,
     249,     0,    91,    77,    86,    76,    75,     0,     0,     0,
      84,     0,   229,   228,   226,   227,   230,   216,   215,    34,
     220,   337,   232,   339,   338,   169,   170,   265,   221,   222,
     223,   224,   225,   264,   263,   279,    32,    22,    27,    25,
      24,    26,    28,    31,    29,   219,   231,   213,     0,   233,
      30,   331,   332,   336,    33,    65,    36,     0,   137,     0,
     121,    49,     0,    40,    50,    48,    44,    43,    58,    45,
      47,    46,   113,     0,    19,    18,   141,     0,   390,     0,
     393,     0,   385,   375,     0,     0,     0,     0,   370,   371,
       0,     0,     0,   364,   378,   359,   241,   243,     0,   209,
       0,   207,   180,   176,   178,   175,   205,   177,   179,   168,
       0,   161,   277,   203,   272,   267,   277,     0,     0,   198,
      72,     0,    73,   166,   204,     0,     0,     0,   211,   269,
     305,   306,   211,   313,   348,   310,   181,   307,    80,    57,
      51,    54,    55,    56,    83,    85,   276,   119,     0,   103,
     102,   100,   104,   101,   341,   340,   192,     0,     0,   214,
     335,   280,     0,   260,   255,   258,   257,   261,   259,   256,
     262,   254,   218,   217,   234,   235,   253,     0,     0,     0,
       0,    37,     0,   136,     0,    94,     7,   115,     0,   392,
     391,   387,   376,     0,     0,   372,     0,   365,   368,     0,
     367,     0,   210,   143,   145,     0,     0,   271,     0,   270,
     164,     0,     0,     0,     0,   186,   211,   188,     0,   191,
     346,   301,   288,   281,   282,   283,     0,   289,   297,   300,
     284,   352,   182,   185,     0,   318,   317,     0,   315,   347,
     236,   265,   212,     0,    82,   116,     0,     0,     0,   105,
     196,   171,   330,   329,   333,   334,   152,   155,   150,   153,
     154,   157,     0,   158,     0,   151,     0,   156,     0,     0,
      35,   159,     0,    39,   138,     0,     0,   388,   386,   373,
     142,   144,     0,   162,   278,   274,   273,   165,     0,    69,
       0,   190,     0,   194,   348,   298,   296,   294,   293,   285,
     286,   290,   295,   287,   291,   292,   320,   319,   314,   237,
     349,   268,    74,     0,     0,     0,    38,     0,     0,   147,
       0,   160,    93,    95,   384,   163,    70,    71,     0,   236,
     323,   321,   316,   322,   324,   326,   239,   238,   302,     0,
     106,   195,   107,     0,   149,   146,   193,   211,     0,   328,
     327,   303,   304,    81,     0,   189,   325,   148
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     1,   351,    39,   215,   114,   352,    42,    43,   247,
     104,   392,    44,   111,    45,   203,   277,   353,    47,    48,
      49,   177,    89,   216,   454,    50,    51,    52,   179,   109,
     269,   485,   180,    54,   362,    94,    95,   460,    96,    55,
     113,    56,    57,    58,    59,   106,   267,   394,    60,   115,
     181,   414,   415,   481,   482,   483,   320,   182,   183,   315,
     321,   316,   184,   185,   186,   335,   427,   368,   429,   369,
     187,   188,   346,   452,   255,   256,   257,   383,   521,   149,
     150,    84,   189,   190,    87,   384,   385,   258,    75,   323,
     338,   324,   339,    82,   417,   259,   437,   514,   438,   515,
     439,   336,   191,   562,   192,   193,   194,   195,   518,   448,
     542,   543,   544,   260,   261,   262,   263,   326,   201,   344,
     450,   196,   337,    61,    71,   318,    70,   137,   138,   139,
     140,   302,   141,   142,   146,   290,   287,   291
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -365
static const yytype_int16 yypact[] =
{
    -365,  1331,  -365,  -365,   -76,  -365,  -365,   -39,  -365,  -365,
    -365,  -365,   -46,  -365,  -365,  -365,  -365,   -39,  -365,  -365,
    -365,  -365,  -365,   361,   -39,   -42,   -26,     6,   -14,   -70,
     -39,  -365,  -365,  -365,    88,  -365,  -365,  -365,  -365,  -365,
    -365,  -365,     9,  -365,  -365,  -365,  -365,  -365,    21,    38,
    -365,  -365,  -365,  -365,   159,  -365,  -365,    51,   141,  -365,
    -365,  -365,  -365,   115,  -365,  -365,  -365,    89,  -365,  -365,
    1688,   384,   -44,  -365,  -365,  1561,    -7,  1436,  -365,  -365,
      82,  -365,  1561,   -44,  -365,  -365,  -365,   -70,    89,   672,
      88,    88,    88,  -365,  -365,  -365,  -365,   797,   525,   114,
    -365,   111,  -365,  -365,  -365,  -365,   251,  -365,  -365,    51,
    -365,  1376,   -39,   141,   124,  1561,  -365,  -365,  -365,   384,
    -365,  1607,     7,     7,     7,     7,     7,     7,  -365,   384,
       7,     7,     7,  -365,  -365,  -365,  -365,  -365,  -365,  -365,
    -365,  -365,  -365,  1726,  -365,  -365,   193,  -365,  -365,   112,
     125,   155,    15,   318,   162,   -39,   168,   -39,   -39,   168,
     216,   -39,   -14,  -365,  -365,  -365,  -365,  -365,  -365,  -365,
     168,   168,  -365,  -365,  -365,   168,  -365,  -365,  -365,  -365,
    -365,  -365,  -365,  -365,  -365,  -365,   168,  -365,  -365,   168,
    -365,   168,  -365,  -365,   168,  -365,  -365,  -365,  -365,  -365,
    -365,  1561,  -365,    46,  -365,   931,  1065,   198,  -365,   112,
     125,  1561,   141,  -365,  -365,  -365,  -365,    17,  1561,   230,
    -365,   132,  -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,
    -365,   167,  -365,  -365,   178,  -365,  -365,    73,  -365,  -365,
    -365,  -365,  -365,  -365,  -365,    25,  -365,  -365,  -365,  -365,
    -365,  -365,  -365,   173,  -365,  -365,  -365,  -365,  1602,  -365,
     -64,  -365,    62,  -365,  -365,  -365,   211,    51,  -365,   182,
    -365,  -365,   189,  -365,  -365,  -365,  -365,  -365,  -365,  -365,
    -365,  -365,  -365,  1561,  -365,  -365,  -365,   192,  -365,  1607,
    -365,  1607,  -365,  -365,     7,     7,  1607,     7,  -365,  -365,
     384,     7,  1652,  -365,  -365,  -365,  -365,  -365,   188,  -365,
     203,  -365,  -365,  -365,  -365,   173,  -365,  -365,  -365,  -365,
       7,   194,  -365,  -365,  -365,   186,  -365,     7,   202,  -365,
     103,   204,   168,  -365,  -365,    32,    19,  1688,  -365,   186,
    -365,  -365,  -365,   262,   199,  -365,  1772,  -365,   347,  -365,
    -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,  1561,  -365,
    -365,  -365,  -365,  -365,  -365,  -365,  -365,    96,   221,  -365,
    -365,  -365,   145,  -365,  -365,  -365,  -365,  -365,  -365,  -365,
    -365,   173,  -365,  -365,  -365,  -365,  -365,    96,    96,    96,
      96,  -365,   190,  -365,    51,  -365,  -365,  -365,  1436,  -365,
    -365,  -365,  -365,  1607,     7,  -365,   384,  -365,  -365,  1726,
    -365,   225,  -365,  -365,     7,   224,   -39,   233,    52,   233,
    -365,   334,   237,    25,   238,  -365,  -365,  -365,   306,  -365,
    -365,  -365,  -365,  -365,  -365,  -365,    95,  -365,   131,  -365,
    -365,  -365,  1772,  1772,   231,  -365,  -365,   231,  -365,  -365,
     -66,   257,  -365,   246,  -365,  -365,   276,   276,   276,  -365,
    -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,
    -365,  -365,     7,  -365,   -39,  -365,   -39,  -365,   -39,   248,
    -365,  -365,   254,  -365,  -365,   255,    54,  -365,  -365,  -365,
    -365,  -365,   334,  -365,  -365,  -365,  -365,  -365,    25,  -365,
      25,  1772,   276,  -365,   199,   131,  -365,  -365,  -365,  -365,
    -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,   278,   -44,
    -365,   168,  -365,    17,  1772,   230,  -365,     7,     7,  -365,
     334,  -365,  -365,  -365,  -365,  -365,  -365,  -365,   -15,   -66,
    -365,  -365,  -365,   252,  -365,    -3,   112,   125,   346,  1199,
    -365,  -365,  -365,   256,  -365,  -365,  -365,  -365,    25,  -365,
    -365,  -365,  -365,  -365,     7,  1772,  -365,  -365
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -365,  -365,   284,  -365,    -1,  -365,    39,  -365,    -8,  -365,
     304,  -365,   307,  -365,   -45,    10,  -365,    37,  -365,  -365,
    -365,  -365,   -35,   -40,  -365,  -365,  -365,  -365,  -365,   -54,
    -365,  -365,    23,   -41,  -114,  -365,  -365,  -311,   191,  -365,
     326,  -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,
    -365,  -365,  -110,  -365,  -365,   -67,    84,   277,  -365,   -84,
       3,  -364,  -365,  -365,  -365,  -365,  -108,  -318,  -365,  -365,
    -365,  -365,  -306,   -91,  -365,  -365,   174,  -365,  -105,   -78,
     -77,   412,   -20,   -27,   350,  -365,  -365,  -365,  -365,   281,
    -160,  -142,    13,   282,   123,  -365,  -365,  -365,    16,  -365,
    -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,  -365,   -65,
    -365,  -365,  -104,  -365,   -90,  -214,  -145,   -72,  -365,    26,
     -47,  -365,  -365,   349,  -365,     0,  -365,   121,   -50,  -365,
    -118,  -365,  -365,  -124,   -58,   -57,  -365,  -246
};

/* 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 -1
static const yytype_uint16 yytable[] =
{
      40,    62,    86,    97,   200,   209,   210,   254,   317,    85,
      67,   340,   143,   144,   253,   341,   107,   428,   331,   304,
      69,   145,   304,   370,    53,   303,   342,    76,   303,   343,
     309,   345,   442,    88,   347,   178,   443,   204,    46,   100,
      41,   103,   208,   205,   206,   400,    73,   349,    40,    18,
     403,    18,   101,   250,    72,   349,   410,   497,   252,   283,
      86,   559,    63,   289,    83,    64,   276,    85,   270,   288,
      12,   387,   388,    14,   519,   286,   330,    80,    12,   298,
      20,    14,   197,   272,   198,   426,   305,    22,    20,    81,
     520,   272,    68,    65,    66,    22,    77,   246,   264,   425,
      26,   431,    27,   432,   147,   148,   285,   366,   433,    72,
     434,   281,    78,    40,   197,   282,   198,   503,   199,    31,
     501,   292,   293,   294,   295,   296,   297,    18,   535,   299,
     300,   301,   426,   560,   279,   251,    35,    36,    33,   310,
      33,   197,    32,   198,    79,   523,   524,   525,   278,    98,
     275,   435,   314,   370,   366,   495,    72,   487,   358,    99,
     332,   348,   436,   105,   231,   304,   555,    35,    36,   325,
      37,   357,   325,   371,   381,   464,   465,   102,   360,   432,
      90,    91,    92,    93,   433,   350,   434,   231,   422,    38,
     424,   538,   197,   534,   198,   366,   466,   467,   233,   108,
     234,   506,   155,   468,   322,   507,   469,   470,   471,   157,
     508,   110,   158,   472,   389,   390,    33,   359,   361,   161,
     428,   233,   363,   234,    67,   473,   393,   435,    32,   112,
     474,   367,   399,   289,   475,   207,    64,   476,   289,   372,
     265,   327,   328,   397,   409,   333,   477,   478,    18,   266,
     405,   565,   408,    35,    36,   268,    37,   197,   386,   198,
     306,   466,   467,   284,    65,    66,   509,   510,   468,   322,
     266,   469,   470,   471,   307,   511,   317,   235,   236,   143,
     144,   217,   218,   219,   512,   304,   513,   308,   461,   356,
     473,   303,   364,   401,   402,   474,   404,   462,   463,   475,
     406,   120,   476,   365,   123,   197,   125,   198,   430,   372,
     391,   477,   478,   456,   457,   458,   459,   322,   455,   413,
     395,   396,   479,   444,   445,   446,   420,   447,   411,   480,
     398,   136,   412,   311,    64,   416,   440,    33,   418,   444,
     445,   446,   421,   447,   423,   289,   496,   317,   235,   236,
      18,   499,   399,   484,   449,   453,   489,   490,   204,    35,
      36,   548,    65,    66,   492,    83,    18,   197,   456,   198,
     458,   459,     5,     6,   494,     7,   540,   498,   500,   366,
       8,     9,    10,    11,   522,   317,   531,   479,   530,    15,
      16,    17,   561,   558,   532,   274,   564,    21,   456,   502,
     458,   459,   248,   488,    23,   249,    24,   312,   486,   231,
      26,   552,    27,   491,   212,    28,    29,   553,   533,   493,
     314,    30,   313,   312,   516,   231,   536,   517,   537,    31,
     556,   319,   382,   551,   557,    74,   440,   211,   313,    33,
     329,   546,   547,   233,   334,   234,   545,    35,    36,   419,
     235,   236,   505,   541,   566,    33,   504,   539,   441,   233,
     280,   234,     0,    35,    36,     0,   235,   236,     0,     0,
       0,   526,     0,     0,     0,     0,     0,   527,     0,   528,
       0,   529,     0,    34,     0,    72,   545,   549,     0,     0,
       0,   314,   120,     0,     0,   123,     0,   125,     0,    38,
     128,   129,   130,   131,   132,     0,     0,     0,     0,     0,
       0,   430,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   136,   550,   361,     0,   413,   554,   363,   314,
       0,     0,     0,     0,     4,   151,     5,     6,     0,   221,
       0,     0,     0,     0,     8,     9,    10,    11,     0,     0,
       0,   152,    14,    15,    16,    17,   153,    18,     0,    20,
       0,    21,     0,   567,   154,   155,    22,   156,    23,     0,
      24,     0,   157,    25,    26,   158,    27,   159,   160,    28,
      29,     0,   161,     0,   162,    30,     0,     0,     0,     0,
       0,   163,     0,    31,     0,   164,   222,     0,   223,   224,
     165,   225,   166,   226,     0,   167,   227,     0,   168,     0,
     228,     0,   169,   170,   229,   230,   231,     0,     0,     0,
       0,     0,     0,     0,     0,   171,     0,   232,     0,   172,
     173,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    33,    34,   174,    72,
     233,     0,   234,   175,    35,    36,     0,   235,   236,    83,
     237,     0,     0,    38,     0,     0,     0,   176,   238,   239,
     240,   241,   242,   213,     0,   243,   244,     0,     0,   245,
       0,     0,   151,     5,     6,     0,     7,     0,     0,     0,
       0,     8,     9,    10,    11,     0,     0,     0,   152,     0,
      15,    16,    17,   153,     0,     0,     0,     0,    21,     0,
       0,   154,   155,     0,   156,    23,     0,    24,     0,   157,
       0,    26,   158,    27,   159,   160,    28,    29,     0,   161,
       0,   162,    30,     0,     0,     0,     0,     0,   163,     0,
      31,   214,   164,     0,     0,     0,     0,   165,     0,   166,
       0,     0,   167,     0,     0,   168,     0,     0,     0,   169,
     170,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   171,     0,     0,     0,   172,   173,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    34,   174,    72,     0,   213,     0,
     175,    35,    36,     0,     0,     0,    83,   151,     5,     6,
      38,     7,     0,     0,   176,     0,     8,     9,    10,    11,
       0,     0,     0,   152,     0,    15,    16,    17,   153,     0,
       0,     0,     0,    21,     0,     0,   154,   155,     0,   156,
      23,     0,    24,     0,   157,     0,    26,   158,    27,   159,
     160,    28,    29,     0,   161,     0,   162,    30,     0,     0,
       0,     0,     0,   163,     0,    31,     0,   164,     0,     0,
       0,     0,   165,     0,   166,     0,     0,   167,     0,     0,
     168,     0,     0,     0,   169,   170,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   171,     0,     0,
       0,   172,   173,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,    34,
     174,    72,     0,     0,     0,   175,    35,    36,     0,     0,
       0,    83,   213,     0,     0,    38,   220,     0,     0,   176,
       0,   151,     5,     6,     0,     7,     0,     0,     0,     0,
       8,     9,    10,    11,     0,     0,     0,   152,     0,    15,
      16,    17,   153,     0,     0,     0,     0,    21,     0,     0,
     154,   155,     0,   156,    23,     0,    24,     0,   157,     0,
      26,   158,    27,   159,   160,    28,    29,     0,   161,     0,
     162,    30,     0,     0,     0,     0,     0,   163,     0,    31,
       0,   164,     0,     0,     0,     0,   165,     0,   166,     0,
       0,   167,     0,     0,   168,     0,     0,     0,   169,   170,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   171,     0,     0,     0,   172,   173,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    34,   174,    72,     0,     0,     0,   175,
      35,    36,     0,     0,     0,    83,   213,     0,     0,    38,
     354,     0,     0,   176,     0,   151,     5,     6,     0,     7,
       0,     0,     0,     0,     8,     9,    10,    11,     0,     0,
       0,   152,     0,    15,    16,    17,   153,     0,     0,     0,
       0,    21,     0,     0,   154,   155,     0,   156,    23,     0,
      24,     0,   157,     0,    26,   158,    27,   159,   160,    28,
      29,     0,   161,     0,   162,    30,     0,     0,     0,     0,
       0,   163,     0,    31,     0,   164,     0,     0,     0,     0,
     165,     0,   166,     0,     0,   167,     0,     0,   168,     0,
       0,     0,   169,   170,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   171,     0,     0,     0,   172,
     173,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    34,   174,    72,
       0,     0,     0,   175,    35,    36,     0,     0,     0,    83,
     213,     0,     0,    38,   355,     0,     0,   176,     0,   151,
       5,     6,     0,     7,     0,     0,     0,     0,     8,     9,
      10,    11,     0,     0,     0,   152,     0,    15,    16,    17,
     153,     0,     0,     0,     0,    21,     0,     0,   154,   155,
       0,   156,    23,     0,    24,     0,   157,     0,    26,   158,
      27,   159,   160,    28,    29,     0,   161,     0,   162,    30,
       0,     0,     0,     0,     0,   163,     0,    31,     0,   164,
       0,     0,     0,     0,   165,     0,   166,     0,     0,   167,
       0,     0,   168,     0,     0,     0,   169,   170,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   171,
       0,     0,     0,   172,   173,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    34,   174,    72,     0,     0,     0,   175,    35,    36,
       0,     2,     3,    83,     0,     0,     0,    38,   563,     0,
       4,   176,     5,     6,     0,     7,     0,     0,     0,     0,
       8,     9,    10,    11,     0,    12,    13,     0,    14,    15,
      16,    17,     0,    18,    19,    20,     0,    21,     0,     0,
       0,     0,    22,     0,    23,     0,    24,   271,     0,    25,
      26,     0,    27,     0,     0,    28,    29,     5,     6,     0,
       7,    30,     0,     0,     0,     8,     9,    10,    11,    31,
      12,     0,     0,    14,    15,    16,    17,     0,    18,    19,
      20,     0,    21,   272,     0,     0,     0,    22,     0,    23,
       0,    24,     0,     0,    25,    26,     0,    27,     0,     0,
      28,    29,     0,     0,     0,    32,    30,     0,     0,     0,
       0,     0,     0,     0,    31,     0,   151,     5,     6,     0,
       7,     0,    33,    34,     0,     8,     9,    10,    11,     0,
      35,    36,   152,    37,    15,    16,    17,   153,     0,    38,
       0,     0,    21,     0,     0,   154,   155,     0,   156,    23,
       0,    24,     0,   157,     0,    26,   158,    27,   159,   160,
      28,    29,     0,   161,     0,   162,    30,    33,    34,     0,
       0,     0,   163,     0,    31,     0,   164,     0,     0,     0,
       0,   165,     0,   166,    38,   273,   167,     0,     0,   168,
       0,     0,     0,   169,   170,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   171,     0,     0,     0,
     172,   173,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    34,   174,
      72,     0,     0,     0,   175,     0,     0,   202,     0,     0,
      83,   151,     5,     6,    38,     7,     0,     0,   176,     0,
       8,     9,    10,    11,     0,     0,     0,   152,     0,    15,
      16,    17,   153,     0,     0,     0,     0,    21,     0,     0,
     154,   155,     0,   156,    23,     0,    24,     0,   157,     0,
      26,   158,    27,   159,   160,    28,    29,     0,   161,     0,
     162,    30,     0,     0,     0,     0,     0,   163,     0,    31,
       0,   164,     0,     0,    18,     0,   165,     0,   166,     0,
       0,   167,     0,     0,   168,     0,     0,     0,   169,   170,
       0,     0,     0,     0,     0,   116,     0,     0,     0,     0,
       0,   171,     0,     0,     0,   172,   173,     0,     0,   373,
       0,     0,     0,   222,     0,   223,   224,     0,   225,     0,
     226,     0,     0,    34,   174,    72,     0,     0,     0,   175,
       0,   374,     0,     0,     0,    83,     0,     0,     0,    38,
     116,     0,     0,   176,   232,     0,     0,     0,     0,     0,
       0,     0,   117,   118,   119,   120,   121,   122,   123,   124,
     125,   126,   127,    33,     0,     0,     0,     0,   133,     0,
       0,     0,     0,     0,   235,   236,   116,   375,   376,   134,
     135,     0,     0,   377,   378,   238,   239,   240,   241,   242,
       0,     0,   379,   380,     0,     0,   245,   117,   118,   119,
     120,   121,   122,   123,   124,   125,   126,   127,   128,   129,
     130,   131,   132,   133,   116,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   134,   135,     0,     0,     0,     0,
     136,   407,     0,   117,   118,   119,   120,   121,   122,   123,
     124,   125,   126,   127,   128,   129,   130,   131,   132,   133,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     134,   135,     0,     0,     0,     0,   136,     0,     0,     0,
       0,   117,   118,   119,   120,   121,   122,   123,   124,   125,
     126,   127,     0,   222,     0,   223,   224,   133,   225,     0,
     226,     0,     0,   227,     0,     0,     0,   228,   134,   135,
       0,     0,   230,     0,   136,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   232,     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,
       0,     0,     0,     0,     0,     0,     0,   451,     0,     0,
       0,     0,     0,     0,     0,   238,   239,   240,   241,   242,
       0,     0,   243,   244,     0,     0,   245
};

static const yytype_int16 yycheck[] =
{
       1,     1,    29,    38,    76,    83,    83,    98,   153,    29,
       7,   171,    70,    70,    98,   175,    57,   335,   160,   143,
      17,    71,   146,   237,     1,   143,   186,    24,   146,   189,
      15,   191,   338,    30,   194,    75,   342,    77,     1,     1,
       1,    49,    82,    78,    79,   291,    23,     1,    49,    32,
     296,    32,    14,    98,   124,     1,   302,   421,    98,   113,
      87,    64,   138,   121,   134,   104,   111,    87,   109,   119,
      24,   135,   136,    27,   140,   115,   160,    91,    24,   129,
      34,    27,    89,    37,    91,   100,   143,    41,    34,   103,
     156,    37,   138,   132,   133,    41,   138,    98,    98,    67,
      49,    82,    51,    84,   148,   149,   114,   122,    89,   124,
      91,   111,   138,   114,    89,   112,    91,   428,   125,    68,
     426,   122,   123,   124,   125,   126,   127,    32,   492,   130,
     131,   132,   100,   136,   111,    98,   129,   130,   121,   124,
     121,    89,   104,    91,   138,   456,   457,   458,   111,   140,
     111,   132,   153,   367,   122,   103,   124,   403,   212,   138,
     160,   201,   143,     4,    91,   289,   530,   129,   130,   156,
     132,   211,   159,   245,   258,   389,   390,   139,   218,    84,
      92,    93,    94,    95,    89,   139,    91,    91,   330,   138,
     332,   502,    89,   139,    91,   122,     6,     7,   125,    58,
     127,    70,    40,    13,   101,    74,    16,    17,    18,    47,
      79,    96,    50,    23,   152,   153,   121,   217,   219,    57,
     538,   125,   219,   127,   221,    35,   267,   132,   104,   140,
      40,   135,   289,   291,    44,   153,   104,    47,   296,   136,
     126,   157,   158,   283,   302,   161,    56,    57,    32,   138,
     300,   557,   302,   129,   130,     4,   132,    89,   258,    91,
     148,     6,     7,   139,   132,   133,   135,   136,    13,   101,
     138,    16,    17,    18,   149,   144,   421,   132,   133,   337,
     337,    90,    91,    92,   153,   409,   155,   132,   372,    91,
      35,   409,   125,   294,   295,    40,   297,   387,   388,    44,
     301,   108,    47,   125,   111,    89,   113,    91,   335,   136,
      99,    56,    57,    92,    93,    94,    95,   101,   358,   320,
     138,   132,   132,    61,    62,    63,   327,    65,   140,   139,
     138,   138,   129,    15,   104,   141,   336,   121,   152,    61,
      62,    63,   140,    65,   140,   403,   418,   492,   132,   133,
      32,   423,   409,   394,   155,     8,   406,   132,   398,   129,
     130,   521,   132,   133,   140,   134,    32,    89,    92,    91,
      94,    95,    11,    12,   141,    14,    98,   140,   140,   122,
      19,    20,    21,    22,   138,   530,   132,   132,   140,    28,
      29,    30,    46,   141,   139,   111,   140,    36,    92,    93,
      94,    95,    98,   404,    43,    98,    45,    89,   398,    91,
      49,   525,    51,   414,    88,    54,    55,   527,   485,   416,
     421,    60,   104,    89,   444,    91,   498,   447,   500,    68,
     538,   154,   258,   524,   539,    23,   436,    87,   104,   121,
     159,   519,   519,   125,   162,   127,   518,   129,   130,   326,
     132,   133,   436,   518,   558,   121,   430,   504,   337,   125,
     111,   127,    -1,   129,   130,    -1,   132,   133,    -1,    -1,
      -1,   472,    -1,    -1,    -1,    -1,    -1,   474,    -1,   476,
      -1,   478,    -1,   122,    -1,   124,   558,   522,    -1,    -1,
      -1,   492,   108,    -1,    -1,   111,    -1,   113,    -1,   138,
     116,   117,   118,   119,   120,    -1,    -1,    -1,    -1,    -1,
      -1,   538,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   138,   523,   525,    -1,   527,   528,   525,   530,
      -1,    -1,    -1,    -1,     9,    10,    11,    12,    -1,    14,
      -1,    -1,    -1,    -1,    19,    20,    21,    22,    -1,    -1,
      -1,    26,    27,    28,    29,    30,    31,    32,    -1,    34,
      -1,    36,    -1,   564,    39,    40,    41,    42,    43,    -1,
      45,    -1,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    -1,    57,    -1,    59,    60,    -1,    -1,    -1,    -1,
      -1,    66,    -1,    68,    -1,    70,    71,    -1,    73,    74,
      75,    76,    77,    78,    -1,    80,    81,    -1,    83,    -1,
      85,    -1,    87,    88,    89,    90,    91,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   100,    -1,   102,    -1,   104,
     105,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   121,   122,   123,   124,
     125,    -1,   127,   128,   129,   130,    -1,   132,   133,   134,
     135,    -1,    -1,   138,    -1,    -1,    -1,   142,   143,   144,
     145,   146,   147,     1,    -1,   150,   151,    -1,    -1,   154,
      -1,    -1,    10,    11,    12,    -1,    14,    -1,    -1,    -1,
      -1,    19,    20,    21,    22,    -1,    -1,    -1,    26,    -1,
      28,    29,    30,    31,    -1,    -1,    -1,    -1,    36,    -1,
      -1,    39,    40,    -1,    42,    43,    -1,    45,    -1,    47,
      -1,    49,    50,    51,    52,    53,    54,    55,    -1,    57,
      -1,    59,    60,    -1,    -1,    -1,    -1,    -1,    66,    -1,
      68,    69,    70,    -1,    -1,    -1,    -1,    75,    -1,    77,
      -1,    -1,    80,    -1,    -1,    83,    -1,    -1,    -1,    87,
      88,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   100,    -1,    -1,    -1,   104,   105,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,   122,   123,   124,    -1,     1,    -1,
     128,   129,   130,    -1,    -1,    -1,   134,    10,    11,    12,
     138,    14,    -1,    -1,   142,    -1,    19,    20,    21,    22,
      -1,    -1,    -1,    26,    -1,    28,    29,    30,    31,    -1,
      -1,    -1,    -1,    36,    -1,    -1,    39,    40,    -1,    42,
      43,    -1,    45,    -1,    47,    -1,    49,    50,    51,    52,
      53,    54,    55,    -1,    57,    -1,    59,    60,    -1,    -1,
      -1,    -1,    -1,    66,    -1,    68,    -1,    70,    -1,    -1,
      -1,    -1,    75,    -1,    77,    -1,    -1,    80,    -1,    -1,
      83,    -1,    -1,    -1,    87,    88,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   100,    -1,    -1,
      -1,   104,   105,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   122,
     123,   124,    -1,    -1,    -1,   128,   129,   130,    -1,    -1,
      -1,   134,     1,    -1,    -1,   138,   139,    -1,    -1,   142,
      -1,    10,    11,    12,    -1,    14,    -1,    -1,    -1,    -1,
      19,    20,    21,    22,    -1,    -1,    -1,    26,    -1,    28,
      29,    30,    31,    -1,    -1,    -1,    -1,    36,    -1,    -1,
      39,    40,    -1,    42,    43,    -1,    45,    -1,    47,    -1,
      49,    50,    51,    52,    53,    54,    55,    -1,    57,    -1,
      59,    60,    -1,    -1,    -1,    -1,    -1,    66,    -1,    68,
      -1,    70,    -1,    -1,    -1,    -1,    75,    -1,    77,    -1,
      -1,    80,    -1,    -1,    83,    -1,    -1,    -1,    87,    88,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,   100,    -1,    -1,    -1,   104,   105,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,   122,   123,   124,    -1,    -1,    -1,   128,
     129,   130,    -1,    -1,    -1,   134,     1,    -1,    -1,   138,
     139,    -1,    -1,   142,    -1,    10,    11,    12,    -1,    14,
      -1,    -1,    -1,    -1,    19,    20,    21,    22,    -1,    -1,
      -1,    26,    -1,    28,    29,    30,    31,    -1,    -1,    -1,
      -1,    36,    -1,    -1,    39,    40,    -1,    42,    43,    -1,
      45,    -1,    47,    -1,    49,    50,    51,    52,    53,    54,
      55,    -1,    57,    -1,    59,    60,    -1,    -1,    -1,    -1,
      -1,    66,    -1,    68,    -1,    70,    -1,    -1,    -1,    -1,
      75,    -1,    77,    -1,    -1,    80,    -1,    -1,    83,    -1,
      -1,    -1,    87,    88,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   100,    -1,    -1,    -1,   104,
     105,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   122,   123,   124,
      -1,    -1,    -1,   128,   129,   130,    -1,    -1,    -1,   134,
       1,    -1,    -1,   138,   139,    -1,    -1,   142,    -1,    10,
      11,    12,    -1,    14,    -1,    -1,    -1,    -1,    19,    20,
      21,    22,    -1,    -1,    -1,    26,    -1,    28,    29,    30,
      31,    -1,    -1,    -1,    -1,    36,    -1,    -1,    39,    40,
      -1,    42,    43,    -1,    45,    -1,    47,    -1,    49,    50,
      51,    52,    53,    54,    55,    -1,    57,    -1,    59,    60,
      -1,    -1,    -1,    -1,    -1,    66,    -1,    68,    -1,    70,
      -1,    -1,    -1,    -1,    75,    -1,    77,    -1,    -1,    80,
      -1,    -1,    83,    -1,    -1,    -1,    87,    88,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   100,
      -1,    -1,    -1,   104,   105,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,   122,   123,   124,    -1,    -1,    -1,   128,   129,   130,
      -1,     0,     1,   134,    -1,    -1,    -1,   138,   139,    -1,
       9,   142,    11,    12,    -1,    14,    -1,    -1,    -1,    -1,
      19,    20,    21,    22,    -1,    24,    25,    -1,    27,    28,
      29,    30,    -1,    32,    33,    34,    -1,    36,    -1,    -1,
      -1,    -1,    41,    -1,    43,    -1,    45,     1,    -1,    48,
      49,    -1,    51,    -1,    -1,    54,    55,    11,    12,    -1,
      14,    60,    -1,    -1,    -1,    19,    20,    21,    22,    68,
      24,    -1,    -1,    27,    28,    29,    30,    -1,    32,    33,
      34,    -1,    36,    37,    -1,    -1,    -1,    41,    -1,    43,
      -1,    45,    -1,    -1,    48,    49,    -1,    51,    -1,    -1,
      54,    55,    -1,    -1,    -1,   104,    60,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    68,    -1,    10,    11,    12,    -1,
      14,    -1,   121,   122,    -1,    19,    20,    21,    22,    -1,
     129,   130,    26,   132,    28,    29,    30,    31,    -1,   138,
      -1,    -1,    36,    -1,    -1,    39,    40,    -1,    42,    43,
      -1,    45,    -1,    47,    -1,    49,    50,    51,    52,    53,
      54,    55,    -1,    57,    -1,    59,    60,   121,   122,    -1,
      -1,    -1,    66,    -1,    68,    -1,    70,    -1,    -1,    -1,
      -1,    75,    -1,    77,   138,   139,    80,    -1,    -1,    83,
      -1,    -1,    -1,    87,    88,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   100,    -1,    -1,    -1,
     104,   105,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   122,   123,
     124,    -1,    -1,    -1,   128,    -1,    -1,   131,    -1,    -1,
     134,    10,    11,    12,   138,    14,    -1,    -1,   142,    -1,
      19,    20,    21,    22,    -1,    -1,    -1,    26,    -1,    28,
      29,    30,    31,    -1,    -1,    -1,    -1,    36,    -1,    -1,
      39,    40,    -1,    42,    43,    -1,    45,    -1,    47,    -1,
      49,    50,    51,    52,    53,    54,    55,    -1,    57,    -1,
      59,    60,    -1,    -1,    -1,    -1,    -1,    66,    -1,    68,
      -1,    70,    -1,    -1,    32,    -1,    75,    -1,    77,    -1,
      -1,    80,    -1,    -1,    83,    -1,    -1,    -1,    87,    88,
      -1,    -1,    -1,    -1,    -1,    48,    -1,    -1,    -1,    -1,
      -1,   100,    -1,    -1,    -1,   104,   105,    -1,    -1,    67,
      -1,    -1,    -1,    71,    -1,    73,    74,    -1,    76,    -1,
      78,    -1,    -1,   122,   123,   124,    -1,    -1,    -1,   128,
      -1,    89,    -1,    -1,    -1,   134,    -1,    -1,    -1,   138,
      48,    -1,    -1,   142,   102,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   105,   106,   107,   108,   109,   110,   111,   112,
     113,   114,   115,   121,    -1,    -1,    -1,    -1,   121,    -1,
      -1,    -1,    -1,    -1,   132,   133,    48,   135,   136,   132,
     133,    -1,    -1,   141,   142,   143,   144,   145,   146,   147,
      -1,    -1,   150,   151,    -1,    -1,   154,   105,   106,   107,
     108,   109,   110,   111,   112,   113,   114,   115,   116,   117,
     118,   119,   120,   121,    48,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,   132,   133,    -1,    -1,    -1,    -1,
     138,   139,    -1,   105,   106,   107,   108,   109,   110,   111,
     112,   113,   114,   115,   116,   117,   118,   119,   120,   121,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     132,   133,    -1,    -1,    -1,    -1,   138,    -1,    -1,    -1,
      -1,   105,   106,   107,   108,   109,   110,   111,   112,   113,
     114,   115,    -1,    71,    -1,    73,    74,   121,    76,    -1,
      78,    -1,    -1,    81,    -1,    -1,    -1,    85,   132,   133,
      -1,    -1,    90,    -1,   138,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,   102,    -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,   135,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   143,   144,   145,   146,   147,
      -1,    -1,   150,   151,    -1,    -1,   154
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const yytype_uint16 yystos[] =
{
       0,   158,     0,     1,     9,    11,    12,    14,    19,    20,
      21,    22,    24,    25,    27,    28,    29,    30,    32,    33,
      34,    36,    41,    43,    45,    48,    49,    51,    54,    55,
      60,    68,   104,   121,   122,   129,   130,   132,   138,   160,
     161,   163,   164,   165,   169,   171,   174,   175,   176,   177,
     182,   183,   184,   189,   190,   196,   198,   199,   200,   201,
     205,   280,   282,   138,   104,   132,   133,   217,   138,   217,
     283,   281,   124,   189,   238,   245,   217,   138,   138,   138,
      91,   103,   250,   134,   238,   239,   240,   241,   217,   179,
      92,    93,    94,    95,   192,   193,   195,   179,   140,   138,
       1,    14,   139,   165,   167,     4,   202,   190,    58,   186,
      96,   170,   140,   197,   162,   206,    48,   105,   106,   107,
     108,   109,   110,   111,   112,   113,   114,   115,   116,   117,
     118,   119,   120,   121,   132,   133,   138,   284,   285,   286,
     287,   289,   290,   291,   292,   285,   291,   148,   149,   236,
     237,    10,    26,    31,    39,    40,    42,    47,    50,    52,
      53,    57,    59,    66,    70,    75,    77,    80,    83,    87,
      88,   100,   104,   105,   123,   128,   142,   178,   180,   185,
     189,   207,   214,   215,   219,   220,   221,   227,   228,   239,
     240,   259,   261,   262,   263,   264,   278,    89,    91,   125,
     274,   275,   131,   172,   180,   179,   179,   153,   180,   236,
     237,   241,   197,     1,    69,   161,   180,   195,   195,   195,
     139,    14,    71,    73,    74,    76,    78,    81,    85,    89,
      90,    91,   102,   125,   127,   132,   133,   135,   143,   144,
     145,   146,   147,   150,   151,   154,   161,   166,   167,   169,
     171,   174,   180,   216,   230,   231,   232,   233,   244,   252,
     270,   271,   272,   273,   282,   126,   138,   203,     4,   187,
     190,     1,    37,   139,   159,   163,   171,   173,   174,   189,
     280,   282,   217,   186,   139,   165,   180,   293,   285,   291,
     292,   294,   161,   161,   161,   161,   161,   161,   285,   161,
     161,   161,   288,   287,   290,   292,   148,   149,   132,    15,
     124,    15,    89,   104,   161,   216,   218,   273,   282,   214,
     213,   217,   101,   246,   248,   249,   274,   213,   213,   246,
     216,   248,   282,   213,   250,   222,   258,   279,   247,   249,
     247,   247,   247,   247,   276,   247,   229,   247,   180,     1,
     139,   159,   163,   174,   139,   139,    91,   180,   186,   282,
     180,   161,   191,   217,   125,   125,   122,   135,   224,   226,
     272,   274,   136,    67,    89,   135,   136,   141,   142,   150,
     151,   216,   233,   234,   242,   243,   282,   135,   136,   152,
     153,    99,   168,   190,   204,   138,   132,   180,   138,   292,
     294,   161,   161,   294,   161,   285,   161,   139,   285,   291,
     294,   140,   129,   161,   208,   209,   141,   251,   152,   251,
     161,   140,   248,   140,   248,    67,   100,   223,   224,   225,
     240,    82,    84,    89,    91,   132,   143,   253,   255,   257,
     282,   284,   229,   229,    61,    62,    63,    65,   266,   155,
     277,   135,   230,     8,   181,   180,    92,    93,    94,    95,
     194,   216,   271,   271,   272,   272,     6,     7,    13,    16,
      17,    18,    23,    35,    40,    44,    47,    56,    57,   132,
     139,   210,   211,   212,   190,   188,   172,   294,   161,   285,
     132,   161,   140,   217,   141,   103,   274,   218,   140,   274,
     140,   229,    93,   194,   276,   255,    70,    74,    79,   135,
     136,   144,   153,   155,   254,   256,   239,   239,   265,   140,
     156,   235,   138,   194,   194,   194,   161,   217,   217,   217,
     140,   132,   139,   212,   139,   218,   274,   274,   194,   277,
      98,   266,   267,   268,   269,   274,   236,   237,   247,   179,
     282,   230,   191,   209,   161,   218,   223,   235,   141,    64,
     136,    46,   260,   139,   140,   229,   269,   161
};

#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 yyerrorlab


/* 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 (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;							\
    }								\
while (YYID (0))


#define YYTERROR	1
#define YYERRCODE	256


/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */

#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)				\
    do									\
      if (YYID (N))                                                    \
	{								\
	  (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;	\
	  (Current).first_column = YYRHSLOC (Rhs, 1).first_column;	\
	  (Current).last_line    = YYRHSLOC (Rhs, N).last_line;		\
	  (Current).last_column  = YYRHSLOC (Rhs, N).last_column;	\
	}								\
      else								\
	{								\
	  (Current).first_line   = (Current).last_line   =		\
	    YYRHSLOC (Rhs, 0).last_line;				\
	  (Current).first_column = (Current).last_column =		\
	    YYRHSLOC (Rhs, 0).last_column;				\
	}								\
    while (YYID (0))
#endif


/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

#ifndef YY_LOCATION_PRINT
# if YYLTYPE_IS_TRIVIAL
#  define YY_LOCATION_PRINT(File, Loc)			\
     fprintf (File, "%d.%d-%d.%d",			\
	      (Loc).first_line, (Loc).first_column,	\
	      (Loc).last_line,  (Loc).last_column)
# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif


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

#ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
#else
# define YYLEX yylex (&yylval, &yylloc)
#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 (YYID (0))

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)			  \
do {									  \
  if (yydebug)								  \
    {									  \
      YYFPRINTF (stderr, "%s ", Title);					  \
      yy_symbol_print (stderr,						  \
		  Type, Value, Location); \
      YYFPRINTF (stderr, "\n");						  \
    }									  \
} while (YYID (0))


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    YYLTYPE const * const yylocationp;
#endif
{
  if (!yyvaluep)
    return;
  YYUSE (yylocationp);
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
	break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    YYLTYPE const * const yylocationp;
#endif
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  YY_LOCATION_PRINT (yyoutput, *yylocationp);
  YYFPRINTF (yyoutput, ": ");
  yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp);
  YYFPRINTF (yyoutput, ")");
}

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

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
#else
static void
yy_stack_print (bottom, top)
    yytype_int16 *bottom;
    yytype_int16 *top;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (; 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 (YYID (0))


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

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule)
#else
static void
yy_reduce_print (yyvsp, yylsp, yyrule)
    YYSTYPE *yyvsp;
    YYLTYPE *yylsp;
    int yyrule;
#endif
{
  int yynrhs = yyr2[yyrule];
  int yyi;
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
	     yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      fprintf (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
		       &(yyvsp[(yyi + 1) - (yynrhs)])
		       , &(yylsp[(yyi + 1) - (yynrhs)])		       );
      fprintf (stderr, "\n");
    }
}

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

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, 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
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#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.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
    const char *yystr;
#endif
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  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.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
    char *yydest;
    const char *yysrc;
#endif
{
  char *yyd = yydest;
  const char *yys = yysrc;

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

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
	switch (*++yyp)
	  {
	  case '\'':
	  case ',':
	    goto do_not_strip_quotes;

	  case '\\':
	    if (*++yyp != '\\')
	      goto do_not_strip_quotes;
	    /* Fall through.  */
	  default:
	    if (yyres)
	      yyres[yyn] = *yyp;
	    yyn++;
	    break;

	  case '"':
	    if (yyres)
	      yyres[yyn] = '\0';
	    return yyn;
	  }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return yystrlen (yystr);

  return yystpcpy (yyres, yystr) - yyres;
}
# endif

/* Copy into YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
  int yyn = yypact[yystate];

  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    return 0;
  else
    {
      int yytype = YYTRANSLATE (yychar);
      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
      YYSIZE_T yysize = yysize0;
      YYSIZE_T yysize1;
      int yysize_overflow = 0;
      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
      int yyx;

# if 0
      /* This is so xgettext sees the translatable formats that are
	 constructed on the fly.  */
      YY_("syntax error, unexpected %s");
      YY_("syntax error, unexpected %s, expecting %s");
      YY_("syntax error, unexpected %s, expecting %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
      char *yyfmt;
      char const *yyf;
      static char const yyunexpected[] = "syntax error, unexpected %s";
      static char const yyexpecting[] = ", expecting %s";
      static char const yyor[] = " or %s";
      char yyformat[sizeof yyunexpected
		    + sizeof yyexpecting - 1
		    + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
		       * (sizeof yyor - 1))];
      char const *yyprefix = yyexpecting;

      /* Start YYX at -YYN if negative to avoid negative indexes in
	 YYCHECK.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;

      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yycount = 1;

      yyarg[0] = yytname[yytype];
      yyfmt = yystpcpy (yyformat, yyunexpected);

      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	  {
	    if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
	      {
		yycount = 1;
		yysize = yysize0;
		yyformat[sizeof yyunexpected - 1] = '\0';
		break;
	      }
	    yyarg[yycount++] = yytname[yyx];
	    yysize1 = yysize + yytnamerr (0, yytname[yyx]);
	    yysize_overflow |= (yysize1 < yysize);
	    yysize = yysize1;
	    yyfmt = yystpcpy (yyfmt, yyprefix);
	    yyprefix = yyor;
	  }

      yyf = YY_(yyformat);
      yysize1 = yysize + yystrlen (yyf);
      yysize_overflow |= (yysize1 < yysize);
      yysize = yysize1;

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

      if (yyresult)
	{
	  /* Avoid sprintf, as that infringes on the user's name space.
	     Don't have undefined behavior even if the translation
	     produced a string with the wrong number of "%s"s.  */
	  char *yyp = yyresult;
	  int yyi = 0;
	  while ((*yyp = *yyf) != '\0')
	    {
	      if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
		{
		  yyp += yytnamerr (yyp, yyarg[yyi++]);
		  yyf += 2;
		}
	      else
		{
		  yyp++;
		  yyf++;
		}
	    }
	}
      return yysize;
    }
}
#endif /* YYERROR_VERBOSE */


/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
#else
static void
yydestruct (yymsg, yytype, yyvaluep, yylocationp)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
    YYLTYPE *yylocationp;
#endif
{
  YYUSE (yyvaluep);
  YYUSE (yylocationp);

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  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 */






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

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

#endif
#endif
{
  /* The look-ahead symbol.  */
int yychar;

/* The semantic value of the look-ahead symbol.  */
YYSTYPE yylval;

/* Number of syntax errors so far.  */
int yynerrs;
/* Location data for the look-ahead symbol.  */
YYLTYPE yylloc;

  int yystate;
  int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Look-ahead token as an internal (translated) token number.  */
  int yytoken = 0;
#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

  /* 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.  */
  yytype_int16 yyssa[YYINITDEPTH];
  yytype_int16 *yyss = yyssa;
  yytype_int16 *yyssp;

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

  /* The location stack.  */
  YYLTYPE yylsa[YYINITDEPTH];
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;
  /* The locations where the error started and ended.  */
  YYLTYPE yyerror_range[2];

#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))

  YYSIZE_T yystacksize = YYINITDEPTH;

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

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  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;
  yylsp = yyls;
#if YYLTYPE_IS_TRIVIAL
  /* Initialize the default location before parsing starts.  */
  yylloc.first_line   = yylloc.last_line   = 1;
  yylloc.first_column = yylloc.last_column = 0;
#endif

  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;
	yytype_int16 *yyss1 = yyss;
	YYLTYPE *yyls1 = yyls;

	/* 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 (YY_("memory exhausted"),
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),
		    &yyls1, yysize * sizeof (*yylsp),
		    &yystacksize);
	yyls = yyls1;
	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

      {
	yytype_int16 *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyexhaustedlab;
	YYSTACK_RELOCATE (yyss);
	YYSTACK_RELOCATE (yyvs);
	YYSTACK_RELOCATE (yyls);
#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;
      yylsp = yyls + 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
     look-ahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to look-ahead token.  */
  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
    goto yydefault;

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

  /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead 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);
      YY_SYMBOL_PRINT ("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;

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

  /* Shift the look-ahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);

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

  yystate = yyn;
  *++yyvsp = yylval;
  *++yylsp = yylloc;
  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];

  /* Default location.  */
  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 3:
#line 449 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
	;}
    break;

  case 4:
#line 451 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
	;}
    break;

  case 5:
#line 453 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->error_level_ = 1;
	;}
    break;

  case 6:
#line 456 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->error_level_ = 1;
	;}
    break;

  case 7:
#line 463 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(2) - (2)].scm); ;}
    break;

  case 8:
#line 467 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$defaultheader"), (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 9:
#line 470 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Book *book = (yyvsp[(1) - (1)].book);
		SCM proc = PARSER->lexer_->lookup_identifier ("toplevel-book-handler");
		scm_call_2 (proc, PARSER->self_scm (), book->self_scm ());
		book->unprotect ();
	;}
    break;

  case 10:
#line 476 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Score *score = (yyvsp[(1) - (1)].score);
		
		SCM proc = PARSER->lexer_->lookup_identifier ("toplevel-score-handler");
		scm_call_2 (proc, PARSER->self_scm (), score->self_scm ());
		score->unprotect ();
	;}
    break;

  case 11:
#line 483 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *music = unsmob_music ((yyvsp[(1) - (1)].scm));
		SCM proc = PARSER->lexer_->lookup_identifier ("toplevel-music-handler");
		scm_call_2 (proc, PARSER->self_scm (), music->self_scm ());
	;}
    break;

  case 12:
#line 488 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM proc = PARSER->lexer_->lookup_identifier ("toplevel-text-handler");
		scm_call_2 (proc, PARSER->self_scm (), scm_list_1 ((yyvsp[(1) - (1)].scm)));
	;}
    break;

  case 13:
#line 492 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM proc = PARSER->lexer_->lookup_identifier ("toplevel-text-handler");
		scm_call_2 (proc, PARSER->self_scm (), (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 14:
#line 496 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM id = SCM_EOL;
		Output_def * od = (yyvsp[(1) - (1)].outputdef);

		if ((yyvsp[(1) - (1)].outputdef)->c_variable ("is-paper") == SCM_BOOL_T)
			id = ly_symbol2scm ("$defaultpaper");
		else if ((yyvsp[(1) - (1)].outputdef)->c_variable ("is-midi") == SCM_BOOL_T)
			id = ly_symbol2scm ("$defaultmidi");
		else if ((yyvsp[(1) - (1)].outputdef)->c_variable ("is-layout") == SCM_BOOL_T)
			id = ly_symbol2scm ("$defaultlayout");

		PARSER->lexer_->set_identifier (id, od->self_scm ());
		od->unprotect();
	;}
    break;

  case 17:
#line 519 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = get_header (PARSER);
		PARSER->lexer_->add_scope ((yyval.scm));
	;}
    break;

  case 18:
#line 523 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		
	;}
    break;

  case 19:
#line 529 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = PARSER->lexer_->remove_scope ();
	;}
    break;

  case 20:
#line 538 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 21:
#line 539 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 22:
#line 543 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
	        PARSER->lexer_->set_identifier ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));

/*
 TODO: devise standard for protection in parser.

  The parser stack lives on the C-stack, which means that
all objects can be unprotected as soon as they're here.

*/
	;}
    break;

  case 23:
#line 554 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { ;}
    break;

  case 24:
#line 559 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].score)->self_scm ();
		(yyvsp[(1) - (1)].score)->unprotect ();
	;}
    break;

  case 25:
#line 563 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].book)->self_scm ();
		(yyvsp[(1) - (1)].book)->unprotect ();
	;}
    break;

  case 26:
#line 567 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].outputdef)->self_scm ();
		(yyvsp[(1) - (1)].outputdef)->unprotect ();
	;}
    break;

  case 27:
#line 571 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 28:
#line 574 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		/* Hack: Create event-chord around standalone events.
		   Prevents the identifier from being interpreted as a post-event. */
		Music *mus = unsmob_music ((yyvsp[(1) - (1)].scm));
		bool is_event = mus &&
			(scm_memq (ly_symbol2scm ("event"), mus->get_property ("types"))
				!= SCM_BOOL_F);
		if (!is_event)
			(yyval.scm) = (yyvsp[(1) - (1)].scm);
		else
			(yyval.scm) = MAKE_SYNTAX ("event-chord", (yyloc), scm_list_1 ((yyvsp[(1) - (1)].scm)));
	;}
    break;

  case 29:
#line 586 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 30:
#line 589 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
 		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 31:
#line 592 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 32:
#line 595 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 33:
#line 598 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 34:
#line 601 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 35:
#line 608 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (4)].scm);
	;}
    break;

  case 36:
#line 614 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = Context_def::make_scm ();
		unsmob_context_def ((yyval.scm))->origin ()->set_spot ((yyloc));
	;}
    break;

  case 37:
#line 618 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
		unsmob_context_def ((yyval.scm))->origin ()->set_spot ((yyloc));
	;}
    break;

  case 38:
#line 622 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Context_def*td = unsmob_context_def ((yyval.scm));

		for (SCM p = (yyvsp[(3) - (3)].scm); scm_is_pair (p); p = scm_cdr (p)) {
			SCM tag = scm_caar (p);

			/* TODO: should make new tag "grob-definition" ? */
			td->add_context_mod (scm_list_3 (ly_symbol2scm ("assign"),
							tag, scm_cons (scm_cdar (p), SCM_EOL)));
		}
	;}
    break;

  case 39:
#line 633 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		unsmob_context_def ((yyval.scm))->add_context_mod ((yyvsp[(2) - (2)].scm));		
	;}
    break;

  case 40:
#line 641 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.book) = (yyvsp[(3) - (4)].book);
	;}
    break;

  case 41:
#line 650 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.book) = new Book;
		(yyval.book)->origin ()->set_spot ((yyloc));
		(yyval.book)->paper_ = dynamic_cast<Output_def*> (unsmob_output_def (PARSER->lexer_->lookup_identifier ("$defaultpaper"))->clone ());
		(yyval.book)->paper_->unprotect ();
		(yyval.book)->header_ = PARSER->lexer_->lookup_identifier ("$defaultheader"); 
	;}
    break;

  case 42:
#line 657 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.book) = unsmob_book ((yyvsp[(1) - (1)].scm));
		(yyval.book)->protect ();
		(yyval.book)->origin ()->set_spot ((yyloc));
	;}
    break;

  case 43:
#line 662 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.book)->paper_ = (yyvsp[(2) - (2)].outputdef);
		(yyvsp[(2) - (2)].outputdef)->unprotect ();
	;}
    break;

  case 44:
#line 666 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Score *score = (yyvsp[(2) - (2)].score);
		SCM proc = PARSER->lexer_->lookup_identifier ("book-score-handler");
		scm_call_2 (proc, (yyval.book)->self_scm (), score->self_scm ());
		score->unprotect ();
	;}
    break;

  case 45:
#line 672 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *music = unsmob_music ((yyvsp[(2) - (2)].scm));
		SCM proc = PARSER->lexer_->lookup_identifier ("book-music-handler");
		scm_call_3 (proc, PARSER->self_scm (), (yyval.book)->self_scm (), music->self_scm ());
	;}
    break;

  case 46:
#line 677 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM proc = PARSER->lexer_->lookup_identifier ("book-text-handler");
		scm_call_2 (proc, (yyval.book)->self_scm (), scm_list_1 ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 47:
#line 681 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM proc = PARSER->lexer_->lookup_identifier ("book-text-handler");
		scm_call_2 (proc, (yyval.book)->self_scm (), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 48:
#line 685 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.book)->header_ = (yyvsp[(2) - (2)].scm);
	;}
    break;

  case 49:
#line 688 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.book)->paper_ = 0;
		(yyval.book)->scores_ = SCM_EOL;
	;}
    break;

  case 50:
#line 692 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.book)->user_key_ = ly_scm2string ((yyvsp[(2) - (2)].scm));
	;}
    break;

  case 51:
#line 698 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.score) = (yyvsp[(3) - (4)].score);
	;}
    break;

  case 52:
#line 704 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM m = (yyvsp[(1) - (1)].scm);
		SCM scorify = ly_lily_module_constant ("scorify-music");
		SCM score = scm_call_2 (scorify, m, PARSER->self_scm ());

		// pass ownernship to C++ again.
		(yyval.score) = unsmob_score (score);
		(yyval.score)->protect ();
		(yyval.score)->origin ()->set_spot ((yyloc));
	;}
    break;

  case 53:
#line 714 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.score) = unsmob_score ((yyvsp[(1) - (1)].scm));
		(yyval.score)->protect ();
		(yyval.score)->origin ()->set_spot ((yyloc));
	;}
    break;

  case 54:
#line 719 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.score)->user_key_ = ly_scm2string ((yyvsp[(2) - (2)].scm));
	;}
    break;

  case 55:
#line 722 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.score)->set_header ((yyvsp[(2) - (2)].scm));
	;}
    break;

  case 56:
#line 725 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if ((yyvsp[(2) - (2)].outputdef)->lookup_variable (ly_symbol2scm ("is-paper")) == SCM_BOOL_T)
		{
			PARSER->parser_error ((yylsp[(2) - (2)]), _("\\paper cannot be used in \\score, use \\layout instead"));
		
		}
		else
		{
			(yyval.score)->add_output_def ((yyvsp[(2) - (2)].outputdef));
		}
		(yyvsp[(2) - (2)].outputdef)->unprotect ();
	;}
    break;

  case 57:
#line 737 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.score)->error_found_ = true;
	;}
    break;

  case 58:
#line 748 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.outputdef) = (yyvsp[(1) - (1)].outputdef);
		if ((yyval.outputdef)->lookup_variable (ly_symbol2scm ("is-paper")) != SCM_BOOL_T)
		{
			PARSER->parser_error ((yylsp[(1) - (1)]), _ ("need \\paper for paper block"));
			(yyvsp[(1) - (1)].outputdef)->unprotect ();
			(yyval.outputdef) = get_paper (PARSER);
		}
	;}
    break;

  case 59:
#line 761 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.outputdef) = (yyvsp[(1) - (2)].outputdef);

		PARSER->lexer_->remove_scope ();
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 60:
#line 770 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.outputdef) = get_paper (PARSER);
		(yyval.outputdef)->input_origin_ = (yyloc);
		PARSER->lexer_->add_scope ((yyval.outputdef)->scope_);
	;}
    break;

  case 61:
#line 775 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Output_def *p = get_midi (PARSER);
		(yyval.outputdef) = p;
		PARSER->lexer_->add_scope (p->scope_);
	;}
    break;

  case 62:
#line 780 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Output_def *p = get_layout (PARSER);

		PARSER->lexer_->add_scope (p->scope_);
		(yyval.outputdef) = p;
	;}
    break;

  case 63:
#line 789 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->push_initial_state ();
		(yyval.outputdef) = (yyvsp[(1) - (1)].outputdef);
	;}
    break;

  case 64:
#line 796 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.outputdef) = (yyvsp[(1) - (2)].outputdef);
		(yyval.outputdef)->input_origin_.set_spot ((yyloc));
	;}
    break;

  case 65:
#line 800 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyvsp[(1) - (3)].outputdef)->unprotect ();

		Output_def *o = unsmob_output_def ((yyvsp[(3) - (3)].scm));
		o->input_origin_.set_spot ((yyloc));
		(yyval.outputdef) = o;
		(yyval.outputdef)->protect ();
		PARSER->lexer_->remove_scope ();
		PARSER->lexer_->add_scope (o->scope_);
	;}
    break;

  case 66:
#line 810 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {

	;}
    break;

  case 67:
#line 813 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		assign_context_def ((yyval.outputdef), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 68:
#line 816 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {

	;}
    break;

  case 69:
#line 822 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("tempo", (yyloc), SCM_BOOL_F, (yyvsp[(2) - (4)].scm), scm_int2num ((yyvsp[(4) - (4)].i)));
	;}
    break;

  case 70:
#line 825 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("tempo", (yyloc), make_simple_markup((yyvsp[(2) - (5)].scm)), (yyvsp[(3) - (5)].scm), scm_int2num ((yyvsp[(5) - (5)].i)));
	;}
    break;

  case 71:
#line 828 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("tempo", (yyloc), (yyvsp[(2) - (5)].scm), (yyvsp[(3) - (5)].scm), scm_int2num ((yyvsp[(5) - (5)].i)));
	;}
    break;

  case 72:
#line 831 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("tempoText", (yyloc), make_simple_markup((yyvsp[(2) - (2)].scm)) );
	;}
    break;

  case 73:
#line 834 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("tempoText", (yyloc), (yyvsp[(2) - (2)].scm) );
	;}
    break;

  case 74:
#line 847 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons (SCM_EOL, SCM_EOL);
	;}
    break;

  case 75:
#line 850 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM s = (yyval.scm);
 		SCM c = scm_cons ((yyvsp[(2) - (2)].scm), SCM_EOL);

		if (scm_is_pair (scm_cdr (s)))
			scm_set_cdr_x (scm_cdr (s), c); /* append */
		else
			scm_set_car_x (s, c); /* set first cons */
		scm_set_cdr_x (s, c);  /* remember last cell */
	;}
    break;

  case 76:
#line 860 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {

	;}
    break;

  case 77:
#line 863 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *m = MY_MAKE_MUSIC("Music", (yyloc));
		// ugh. code dup 
		m->set_property ("error-found", SCM_BOOL_T);
		SCM s = (yyval.scm);
 		SCM c = scm_cons (m->self_scm (), SCM_EOL);
		m->unprotect (); /* UGH */

		if (scm_is_pair (scm_cdr (s)))
			scm_set_cdr_x (scm_cdr (s), c); /* append */
		else
			scm_set_car_x (s, c); /* set first cons */
		scm_set_cdr_x (s, c);  /* remember last cell */
	;}
    break;

  case 80:
#line 885 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 81:
#line 888 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_car ((yyvsp[(3) - (4)].scm));
	;}
    break;

  case 82:
#line 896 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("repeat", (yyloc), (yyvsp[(2) - (5)].scm), (yyvsp[(3) - (5)].scm), (yyvsp[(4) - (5)].scm), (yyvsp[(5) - (5)].scm));
	;}
    break;

  case 83:
#line 902 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("sequential-music", (yyloc), scm_car ((yyvsp[(3) - (4)].scm)));
	;}
    break;

  case 84:
#line 905 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("sequential-music", (yyloc), scm_car ((yyvsp[(2) - (3)].scm)));
	;}
    break;

  case 85:
#line 911 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("simultaneous-music", (yyloc), scm_car ((yyvsp[(3) - (4)].scm)));
	;}
    break;

  case 86:
#line 914 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("simultaneous-music", (yyloc), scm_car ((yyvsp[(2) - (3)].scm)));
	;}
    break;

  case 91:
#line 927 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 92:
#line 928 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { PARSER->lexer_->push_initial_state (); ;}
    break;

  case 93:
#line 930 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->pop_state ();
		(yyval.scm) = (yyvsp[(4) - (5)].scm);
	;}
    break;

  case 94:
#line 937 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 95:
#line 938 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		 (yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 96:
#line 944 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 97:
#line 945 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 98:
#line 949 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 99:
#line 950 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 102:
#line 963 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 103:
#line 969 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 104:
#line 972 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 105:
#line 977 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 106:
#line 980 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 107:
#line 983 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 108:
#line 988 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		/* This is for 0-ary functions, so they don't need to
		   read a lookahead token */
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 111:
#line 998 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_append2 (scm_list_2 ((yyvsp[(1) - (2)].scm), make_input ((yyloc))), scm_reverse_x ((yyvsp[(2) - (2)].scm), SCM_EOL));
	;}
    break;

  case 112:
#line 1005 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 113:
#line 1006 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(2) - (2)].scm);
	;}
    break;

  case 114:
#line 1013 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = run_music_function (PARSER, (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 115:
#line 1016 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("context-specification", (yyloc), (yyvsp[(2) - (5)].scm), (yyvsp[(3) - (5)].scm), (yyvsp[(5) - (5)].scm), (yyvsp[(4) - (5)].scm), SCM_BOOL_F);
	;}
    break;

  case 116:
#line 1019 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("context-specification", (yyloc), (yyvsp[(2) - (5)].scm), (yyvsp[(3) - (5)].scm), (yyvsp[(5) - (5)].scm), (yyvsp[(4) - (5)].scm), SCM_BOOL_T);
	;}
    break;

  case 117:
#line 1023 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
                (yyval.scm) = MAKE_SYNTAX ("time-scaled-music", (yyloc), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 118:
#line 1026 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 119:
#line 1027 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Pitch from = *unsmob_pitch ((yyvsp[(2) - (4)].scm));
		Pitch to = *unsmob_pitch ((yyvsp[(3) - (4)].scm));
		SCM pitch = pitch_interval (from, to).smobbed_copy ();
		(yyval.scm) = MAKE_SYNTAX ("transpose-music", (yyloc), pitch, (yyvsp[(4) - (4)].scm));
	;}
    break;

  case 120:
#line 1033 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if ((yyvsp[(1) - (2)].scm) == ly_symbol2scm ("chords"))
		{
		  (yyval.scm) = MAKE_SYNTAX ("unrelativable-music", (yyloc), (yyvsp[(2) - (2)].scm));
		}
		else
		{
		  (yyval.scm) = (yyvsp[(2) - (2)].scm);
		}
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 121:
#line 1044 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("context-specification", (yyloc), (yyvsp[(1) - (3)].scm), SCM_EOL, (yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm), SCM_BOOL_T);
		if ((yyvsp[(1) - (3)].scm) == ly_symbol2scm ("ChordNames"))
		{
		  (yyval.scm) = MAKE_SYNTAX ("unrelativable-music", (yyloc), (yyval.scm));
		}
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 122:
#line 1052 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 123:
#line 1053 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 124:
#line 1057 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("pitchnames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));

		(yyval.scm) = ly_symbol2scm ("notes");
	;}
    break;

  case 125:
#line 1064 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("drumPitchNames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));

		(yyval.scm) = ly_symbol2scm ("drums");
	;}
    break;

  case 126:
#line 1070 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->push_figuredbass_state ();

		(yyval.scm) = ly_symbol2scm ("figures");
	;}
    break;

  case 127:
#line 1075 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("chordmodifiers");
		PARSER->lexer_->chordmodifier_tab_ = alist_to_hashq (nn);
		nn = PARSER->lexer_->lookup_identifier ("pitchnames");
		PARSER->lexer_->push_chord_state (alist_to_hashq (nn));
		(yyval.scm) = ly_symbol2scm ("chords");

	;}
    break;

  case 128:
#line 1084 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { PARSER->lexer_->push_lyric_state ();
		(yyval.scm) = ly_symbol2scm ("lyrics");
	;}
    break;

  case 129:
#line 1090 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("drumPitchNames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));

		(yyval.scm) = ly_symbol2scm ("DrumStaff");
	;}
    break;

  case 130:
#line 1096 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->push_figuredbass_state ();

		(yyval.scm) = ly_symbol2scm ("FiguredBass");
	;}
    break;

  case 131:
#line 1101 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("chordmodifiers");
		PARSER->lexer_->chordmodifier_tab_ = alist_to_hashq (nn);
		nn = PARSER->lexer_->lookup_identifier ("pitchnames");
		PARSER->lexer_->push_chord_state (alist_to_hashq (nn));
		(yyval.scm) = ly_symbol2scm ("ChordNames");
	;}
    break;

  case 132:
#line 1109 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { PARSER->lexer_->push_lyric_state ();
		(yyval.scm) = ly_symbol2scm ("Lyrics");
	;}
    break;

  case 133:
#line 1116 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Pitch start = *unsmob_pitch ((yyvsp[(2) - (3)].scm));
		(yyval.scm) = make_music_relative (start, (yyvsp[(3) - (3)].scm), (yyloc));
	;}
    break;

  case 134:
#line 1120 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Pitch middle_c (0, 0, 0);
		(yyval.scm) = make_music_relative (middle_c, (yyvsp[(2) - (2)].scm), (yyloc));
	;}
    break;

  case 135:
#line 1127 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { PARSER->lexer_->push_lyric_state (); ;}
    break;

  case 136:
#line 1129 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
	/* Can also use music at the expensive of two S/Rs similar to
           \repeat \alternative */
		PARSER->lexer_->pop_state ();

		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), SCM_EOL);
	;}
    break;

  case 137:
#line 1136 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->push_lyric_state ();
	;}
    break;

  case 138:
#line 1138 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->pop_state ();
		(yyval.scm) = scm_cons ((yyvsp[(4) - (4)].scm), (yyvsp[(1) - (4)].scm));
	;}
    break;

  case 139:
#line 1145 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("add-lyrics", (yyloc), (yyvsp[(1) - (2)].scm), scm_reverse_x ((yyvsp[(2) - (2)].scm), SCM_EOL));
	;}
    break;

  case 140:
#line 1148 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->push_lyric_state ();
	;}
    break;

  case 141:
#line 1150 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		PARSER->lexer_->pop_state ();
		(yyval.scm) = MAKE_SYNTAX ("lyric-combine", (yyloc), (yyvsp[(2) - (4)].scm), (yyvsp[(4) - (4)].scm));
	;}
    break;

  case 142:
#line 1157 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("context-change", (yyloc), scm_string_to_symbol ((yyvsp[(2) - (4)].scm)), (yyvsp[(4) - (4)].scm));
	;}
    break;

  case 143:
#line 1164 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(1) - (1)].scm), SCM_EOL);
	;}
    break;

  case 144:
#line 1167 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 145:
#line 1173 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(1) - (1)].scm), SCM_EOL);
	;}
    break;

  case 146:
#line 1179 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 (ly_symbol2scm ("assign"),
			scm_string_to_symbol ((yyvsp[(1) - (3)].scm)), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 147:
#line 1183 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 (ly_symbol2scm ("unset"),
			scm_string_to_symbol ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 148:
#line 1187 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_append (scm_list_2 (scm_list_3 (ly_symbol2scm ("push"),
							scm_string_to_symbol ((yyvsp[(2) - (5)].scm)), (yyvsp[(5) - (5)].scm)),
					     (yyvsp[(3) - (5)].scm)));
	;}
    break;

  case 149:
#line 1192 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 (ly_symbol2scm ("pop"),
			scm_string_to_symbol ((yyvsp[(2) - (3)].scm)), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 150:
#line 1199 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("consists"); ;}
    break;

  case 151:
#line 1200 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("remove"); ;}
    break;

  case 152:
#line 1202 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("accepts"); ;}
    break;

  case 153:
#line 1203 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("default-child"); ;}
    break;

  case 154:
#line 1204 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("denies"); ;}
    break;

  case 155:
#line 1206 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("alias"); ;}
    break;

  case 156:
#line 1207 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("translator-type"); ;}
    break;

  case 157:
#line 1208 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("description"); ;}
    break;

  case 158:
#line 1209 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("context-name"); ;}
    break;

  case 159:
#line 1213 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 160:
#line 1214 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 161:
#line 1220 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if (!is_regular_identifier ((yyvsp[(1) - (1)].scm)))
		{
			(yyloc).error (_("Grob name should be alphanumeric"));
		}

		(yyval.scm) = scm_list_2 (ly_symbol2scm ("Bottom"),
			scm_string_to_symbol ((yyvsp[(1) - (1)].scm)));
	;}
    break;

  case 162:
#line 1229 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 (scm_string_to_symbol ((yyvsp[(1) - (3)].scm)),
			scm_string_to_symbol ((yyvsp[(3) - (3)].scm)));
	;}
    break;

  case 163:
#line 1236 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_append (scm_list_2 (scm_list_n (scm_car ((yyvsp[(2) - (5)].scm)),			
				ly_symbol2scm ("OverrideProperty"),
				scm_cadr ((yyvsp[(2) - (5)].scm)),
				(yyvsp[(5) - (5)].scm), SCM_UNDEFINED),
				(yyvsp[(3) - (5)].scm)));
	;}
    break;

  case 164:
#line 1243 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_4 (scm_car ((yyvsp[(2) - (3)].scm)),
			ly_symbol2scm ("RevertProperty"),
			scm_cadr ((yyvsp[(2) - (3)].scm)),
			(yyvsp[(3) - (3)].scm));
	;}
    break;

  case 165:
#line 1249 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_4 (scm_car ((yyvsp[(2) - (4)].scm)),
			ly_symbol2scm ("PropertySet"),
			scm_cadr ((yyvsp[(2) - (4)].scm)),
			(yyvsp[(4) - (4)].scm));
	;}
    break;

  case 166:
#line 1255 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 (scm_car ((yyvsp[(2) - (2)].scm)),
			ly_symbol2scm ("PropertyUnset"),
			scm_cadr ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 167:
#line 1263 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = LOWLEVEL_MAKE_SYNTAX (ly_lily_module_constant ("property-operation"), scm_cons (PARSER->self_scm (), scm_cons2 (make_input ((yyloc)), SCM_BOOL_F, (yyvsp[(1) - (1)].scm))));
	;}
    break;

  case 168:
#line 1266 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = LOWLEVEL_MAKE_SYNTAX (ly_lily_module_constant ("property-operation"), scm_cons (PARSER->self_scm (), scm_cons2 (make_input ((yyloc)), SCM_BOOL_T, (yyvsp[(2) - (2)].scm))));
	;}
    break;

  case 169:
#line 1272 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 170:
#line 1275 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 171:
#line 1278 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_string_append (scm_list_2 ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm)));
	;}
    break;

  case 172:
#line 1283 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 173:
#line 1286 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 174:
#line 1289 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 175:
#line 1294 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 176:
#line 1297 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 177:
#line 1300 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 178:
#line 1303 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 179:
#line 1306 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 180:
#line 1309 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 181:
#line 1318 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM elts = ly_append2 ((yyvsp[(1) - (2)].scm), scm_reverse_x ((yyvsp[(2) - (2)].scm), SCM_EOL));

		Input i;
		/* why is this giving wrong start location? -ns
		 * i = @$; */
		i.set_location ((yylsp[(1) - (2)]), (yylsp[(2) - (2)]));
		(yyval.scm) = MAKE_SYNTAX ("event-chord", i, elts);
	;}
    break;

  case 182:
#line 1327 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Input i;
		i.set_location ((yylsp[(1) - (3)]), (yylsp[(3) - (3)]));
		(yyval.scm) = MAKE_SYNTAX ("multi-measure-rest", i, (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 185:
#line 1339 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *m = unsmob_music ((yyvsp[(1) - (3)].scm));
		SCM dur = unsmob_duration ((yyvsp[(2) - (3)].scm))->smobbed_copy ();
		SCM es = m->get_property ("elements");
		SCM postevs = scm_reverse_x ((yyvsp[(3) - (3)].scm), SCM_EOL);
		
		for (SCM s = es; scm_is_pair (s); s = scm_cdr (s))
		  unsmob_music (scm_car (s))->set_property ("duration", dur);
		es = ly_append2 (es, postevs);

		m-> set_property ("elements", es);
		m->set_spot ((yyloc));
		(yyval.scm) = m->self_scm ();
	;}
    break;

  case 186:
#line 1357 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("event-chord", (yyloc), scm_reverse_x ((yyvsp[(2) - (3)].scm), SCM_EOL));
	;}
    break;

  case 187:
#line 1363 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 188:
#line 1364 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 189:
#line 1371 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		int q = (yyvsp[(3) - (5)].i);
		int ex = (yyvsp[(2) - (5)].i);
		SCM check = (yyvsp[(4) - (5)].scm);
		SCM post = (yyvsp[(5) - (5)].scm);

		Music *n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));
		n->set_property ("pitch", (yyvsp[(1) - (5)].scm));
		if (q % 2)
			n->set_property ("cautionary", SCM_BOOL_T);
		if (ex % 2 || q % 2)
			n->set_property ("force-accidental", SCM_BOOL_T);

		if (scm_is_pair (post)) {
			SCM arts = scm_reverse_x (post, SCM_EOL);
			n->set_property ("articulations", arts);
		}
		if (scm_is_number (check))
		{
			int q = scm_to_int (check);
			n->set_property ("absolute-octave", scm_from_int (q-1));
		}

		(yyval.scm) = n->unprotect ();
	;}
    break;

  case 190:
#line 1396 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));
		n->set_property ("duration", (yyvsp[(2) - (2)].scm));
		n->set_property ("drum-type", (yyvsp[(1) - (2)].scm));

		if (scm_is_pair ((yyvsp[(2) - (2)].scm))) {
			SCM arts = scm_reverse_x ((yyvsp[(2) - (2)].scm), SCM_EOL);
			n->set_property ("articulations", arts);
		}
		(yyval.scm) = n->unprotect ();
	;}
    break;

  case 191:
#line 1407 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { 
		(yyval.scm) = run_music_function (PARSER, (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 192:
#line 1412 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM sig = scm_object_property (yylval.scm, ly_symbol2scm ("music-function-signature"));
		if (scm_is_pair (sig) && to_boolean (scm_memq (ly_music_p_proc, scm_cdr (scm_reverse (sig)))))
		{
			PARSER->parser_error ((yyloc), "Music function applied to event may not have a Music argument, except as the last argument.");
		}
	;}
    break;

  case 193:
#line 1425 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_append2 (scm_list_2 ((yyvsp[(1) - (4)].scm), make_input ((yyloc))), scm_reverse_x ((yyvsp[(3) - (4)].scm), scm_list_1 ((yyvsp[(4) - (4)].scm))));
	;}
    break;

  case 194:
#line 1428 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_append2 (scm_list_2 ((yyvsp[(1) - (2)].scm), make_input ((yyloc))), scm_reverse_x ((yyvsp[(2) - (2)].scm), SCM_EOL));
	;}
    break;

  case 195:
#line 1437 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_append2 (scm_list_2 ((yyvsp[(1) - (4)].scm), make_input ((yyloc))), scm_reverse_x ((yyvsp[(3) - (4)].scm), scm_list_1 ((yyvsp[(4) - (4)].scm))));
	;}
    break;

  case 196:
#line 1440 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_append2 (scm_list_2 ((yyvsp[(1) - (2)].scm), make_input ((yyloc))), scm_reverse_x ((yyvsp[(2) - (2)].scm), SCM_EOL));
	;}
    break;

  case 197:
#line 1446 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 198:
#line 1449 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("skip-music", (yyloc), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 199:
#line 1452 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *m = MY_MAKE_MUSIC ("LigatureEvent", (yyloc));
		m->set_property ("span-direction", scm_from_int (START));
		(yyval.scm) = m->unprotect();
	;}
    break;

  case 200:
#line 1457 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *m = MY_MAKE_MUSIC ("LigatureEvent", (yyloc));
		m->set_property ("span-direction", scm_from_int (STOP));
		(yyval.scm) = m->unprotect ();
	;}
    break;

  case 201:
#line 1462 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("voice-separator", (yyloc), SCM_UNDEFINED);
	;}
    break;

  case 202:
#line 1465 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM pipe = PARSER->lexer_->lookup_identifier ("pipeSymbol");

		Music *m = unsmob_music (pipe);
		if (m)
		{
			m = m->clone ();
			m->set_spot ((yyloc));
			(yyval.scm) = m->unprotect ();
		}
		else
			(yyval.scm) = MAKE_SYNTAX ("bar-check", (yyloc), SCM_UNDEFINED);

	;}
    break;

  case 203:
#line 1479 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Moment m = - unsmob_duration ((yyvsp[(2) - (2)].scm))->get_length ();
		(yyval.scm) = MAKE_SYNTAX ("property-operation", (yyloc), SCM_BOOL_F, ly_symbol2scm ("Timing"), ly_symbol2scm ("PropertySet"), ly_symbol2scm ("measurePosition"), m.smobbed_copy ());
		(yyval.scm) = MAKE_SYNTAX ("context-specification", (yyloc), ly_symbol2scm ("Score"), SCM_BOOL_F, (yyval.scm), SCM_EOL, SCM_BOOL_F);
	;}
    break;

  case 204:
#line 1485 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM proc = ly_lily_module_constant ("make-time-signature-set");

		(yyval.scm) = scm_apply_2   (proc, scm_car ((yyvsp[(2) - (2)].scm)), scm_cdr ((yyvsp[(2) - (2)].scm)), SCM_EOL);
	;}
    break;

  case 205:
#line 1490 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM proc = ly_lily_module_constant ("make-mark-set");

		(yyval.scm) = scm_call_1 (proc, (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 206:
#line 1498 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = MY_MAKE_MUSIC ("PesOrFlexaEvent", (yyloc))->unprotect ();
	;}
    break;

  case 207:
#line 1501 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *m = MY_MAKE_MUSIC ("MarkEvent", (yyloc));
		(yyval.scm) = m->unprotect ();
	;}
    break;

  case 208:
#line 1505 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 209:
#line 1508 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *key = MY_MAKE_MUSIC ("KeyChangeEvent", (yyloc));
		(yyval.scm) = key->unprotect ();
	;}
    break;

  case 210:
#line 1512 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {

		Music *key = MY_MAKE_MUSIC ("KeyChangeEvent", (yyloc));
		if (scm_ilength ((yyvsp[(3) - (3)].scm)) > 0)
		{		
			key->set_property ("pitch-alist", (yyvsp[(3) - (3)].scm));
			key->set_property ("tonic", Pitch (0, 0, 0).smobbed_copy ());
			key->transpose (* unsmob_pitch ((yyvsp[(2) - (3)].scm)));
		} else {
			PARSER->parser_error ((yylsp[(3) - (3)]), _ ("second argument must be pitch list"));
		}

		(yyval.scm) = key->unprotect ();
	;}
    break;

  case 211:
#line 1530 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 212:
#line 1533 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		unsmob_music ((yyvsp[(2) - (2)].scm))->set_spot ((yylsp[(2) - (2)]));
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyval.scm));
	;}
    break;

  case 213:
#line 1540 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 214:
#line 1543 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = run_music_function (PARSER, (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 215:
#line 1546 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if (!PARSER->lexer_->is_lyric_state ())
			PARSER->parser_error ((yylsp[(1) - (1)]), _ ("have to be in Lyric mode for lyrics"));
		(yyval.scm) = MY_MAKE_MUSIC ("HyphenEvent", (yyloc))->unprotect ();
	;}
    break;

  case 216:
#line 1551 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if (!PARSER->lexer_->is_lyric_state ())
			PARSER->parser_error ((yylsp[(1) - (1)]), _ ("have to be in Lyric mode for lyrics"));
		(yyval.scm) = MY_MAKE_MUSIC ("ExtenderEvent", (yyloc))->unprotect ();
	;}
    break;

  case 217:
#line 1556 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if ((yyvsp[(1) - (2)].i))
		{
			Music *m = unsmob_music ((yyvsp[(2) - (2)].scm));
			m->set_property ("direction", scm_from_int ((yyvsp[(1) - (2)].i)));
		}
		(yyval.scm) = (yyvsp[(2) - (2)].scm);
	;}
    break;

  case 218:
#line 1564 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if ((yyvsp[(1) - (2)].i))
		{
			Music *m = unsmob_music ((yyvsp[(2) - (2)].scm));
			m->set_property ("direction", scm_from_int ((yyvsp[(1) - (2)].i)));
		}
		(yyval.scm) = (yyvsp[(2) - (2)].scm);
	;}
    break;

  case 220:
#line 1576 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *s = MY_MAKE_MUSIC ("StringNumberEvent", (yyloc));
		s->set_property ("string-number", scm_from_int ((yyvsp[(1) - (1)].i)));
		(yyval.scm) = s->unprotect ();
	;}
    break;

  case 221:
#line 1584 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("bracketOpenSymbol");
	;}
    break;

  case 222:
#line 1587 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("bracketCloseSymbol"); 
	;}
    break;

  case 223:
#line 1590 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("tildeSymbol");
	;}
    break;

  case 224:
#line 1593 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("parenthesisOpenSymbol");
	;}
    break;

  case 225:
#line 1596 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("parenthesisCloseSymbol");
	;}
    break;

  case 226:
#line 1599 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedExclamationSymbol");
	;}
    break;

  case 227:
#line 1602 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedParenthesisOpenSymbol");
	;}
    break;

  case 228:
#line 1605 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedParenthesisCloseSymbol");
	;}
    break;

  case 229:
#line 1608 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedBiggerSymbol");
	;}
    break;

  case 230:
#line 1611 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedSmallerSymbol");
	;}
    break;

  case 231:
#line 1617 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM predefd = PARSER->lexer_->lookup_identifier_symbol ((yyvsp[(1) - (1)].scm));
		Music *m = 0;
		if (unsmob_music (predefd))
		{
			m = unsmob_music (predefd)->clone ();
			m->set_spot ((yyloc));
		}
		else
		{
			m = MY_MAKE_MUSIC ("Music", (yyloc));
		}
		(yyval.scm) = m->unprotect ();
	;}
    break;

  case 232:
#line 1631 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 233:
#line 1634 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
               Music *a = MY_MAKE_MUSIC ("TremoloEvent", (yyloc));
               a->set_property ("tremolo-type", scm_from_int ((yyvsp[(1) - (1)].i)));
               (yyval.scm) = a->unprotect ();
        ;}
    break;

  case 234:
#line 1642 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 235:
#line 1645 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM s = PARSER->lexer_->lookup_identifier ("dash" + ly_scm2string ((yyvsp[(1) - (1)].scm)));
		Music *a = MY_MAKE_MUSIC ("ArticulationEvent", (yyloc));
		if (scm_is_string (s))
			a->set_property ("articulation-type", s);
		else PARSER->parser_error ((yylsp[(1) - (1)]), _ ("expecting string as script definition"));
		(yyval.scm) = a->unprotect ();
	;}
    break;

  case 236:
#line 1656 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 237:
#line 1657 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int (0); ;}
    break;

  case 238:
#line 1658 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int (-(yyvsp[(2) - (2)].i)); ;}
    break;

  case 239:
#line 1659 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int ((yyvsp[(2) - (2)].i)); ;}
    break;

  case 240:
#line 1663 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i) = 1;
	;}
    break;

  case 241:
#line 1666 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i) ++;
	;}
    break;

  case 242:
#line 1672 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i) = 1;
	;}
    break;

  case 243:
#line 1675 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i)++;
	;}
    break;

  case 244:
#line 1681 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 245:
#line 1684 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Pitch p = *unsmob_pitch ((yyvsp[(1) - (2)].scm));
		p = p.transposed (Pitch ((yyvsp[(2) - (2)].i),0,0));
		(yyval.scm) = p.smobbed_copy ();
	;}
    break;

  case 246:
#line 1689 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Pitch p =* unsmob_pitch ((yyvsp[(1) - (2)].scm));
		p = p.transposed (Pitch (-(yyvsp[(2) - (2)].i),0,0));
		(yyval.scm) = p.smobbed_copy ();
	;}
    break;

  case 247:
#line 1701 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 248:
#line 1704 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Pitch p = *unsmob_pitch ((yyvsp[(1) - (2)].scm));
		p = p.transposed (Pitch ((yyvsp[(2) - (2)].i),0,0));
		(yyval.scm) = p.smobbed_copy ();
	;}
    break;

  case 249:
#line 1709 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Pitch p = *unsmob_pitch ((yyvsp[(1) - (2)].scm));

		p = p.transposed (Pitch (-(yyvsp[(2) - (2)].i),0,0));
		(yyval.scm) = p.smobbed_copy ();
	;}
    break;

  case 250:
#line 1718 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 253:
#line 1729 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *t = MY_MAKE_MUSIC ("TextScriptEvent", (yyloc));
		t->set_property ("text", (yyvsp[(1) - (1)].scm));
		(yyval.scm) = t->unprotect ();
	;}
    break;

  case 254:
#line 1734 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *t = MY_MAKE_MUSIC ("TextScriptEvent", (yyloc));
		t->set_property ("text",
			make_simple_markup ((yyvsp[(1) - (1)].scm)));
		(yyval.scm) = t->unprotect ();
	;}
    break;

  case 255:
#line 1740 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *t = MY_MAKE_MUSIC ("FingeringEvent", (yyloc));
		t->set_property ("digit", scm_from_int ((yyvsp[(1) - (1)].i)));
		(yyval.scm) = t->unprotect ();
	;}
    break;

  case 256:
#line 1748 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Hat");
	;}
    break;

  case 257:
#line 1751 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Plus");
	;}
    break;

  case 258:
#line 1754 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Dash");
	;}
    break;

  case 259:
#line 1757 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Bar");
	;}
    break;

  case 260:
#line 1760 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Larger");
	;}
    break;

  case 261:
#line 1763 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Dot");
	;}
    break;

  case 262:
#line 1766 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Underscore");
	;}
    break;

  case 263:
#line 1772 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) = DOWN; ;}
    break;

  case 264:
#line 1773 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) = UP; ;}
    break;

  case 265:
#line 1774 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) = CENTER; ;}
    break;

  case 266:
#line 1779 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 267:
#line 1785 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 268:
#line 1791 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Duration dd = PARSER->default_duration_;
		(yyval.scm) = dd.smobbed_copy ();
	;}
    break;

  case 269:
#line 1795 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
		PARSER->default_duration_ = *unsmob_duration ((yyval.scm));
	;}
    break;

  case 270:
#line 1802 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		int len = 0;
		if (!is_duration ((yyvsp[(1) - (2)].i)))
			PARSER->parser_error ((yylsp[(1) - (2)]), _f ("not a duration: %d", (yyvsp[(1) - (2)].i)));
		else
			len = intlog2 ((yyvsp[(1) - (2)].i));

		(yyval.scm) = Duration (len, (yyvsp[(2) - (2)].i)).smobbed_copy ();
	;}
    break;

  case 271:
#line 1811 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Duration *d = unsmob_duration ((yyvsp[(1) - (2)].scm));
		Duration k (d->duration_log (), d->dot_count () + (yyvsp[(2) - (2)].i));
		*d = k;
		(yyval.scm) = (yyvsp[(1) - (2)].scm);
	;}
    break;

  case 272:
#line 1820 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 273:
#line 1823 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = unsmob_duration ((yyval.scm))->compressed ( (yyvsp[(3) - (3)].i)) .smobbed_copy ();
	;}
    break;

  case 274:
#line 1826 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Rational  m (scm_to_int (scm_car ((yyvsp[(3) - (3)].scm))), scm_to_int (scm_cdr ((yyvsp[(3) - (3)].scm))));

		(yyval.scm) = unsmob_duration ((yyval.scm))->compressed (m).smobbed_copy ();
	;}
    break;

  case 275:
#line 1834 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 276:
#line 1835 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons (scm_from_int ((yyvsp[(1) - (3)].i)), scm_from_int ((yyvsp[(3) - (3)].i)));
	;}
    break;

  case 277:
#line 1841 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i) = 0;
	;}
    break;

  case 278:
#line 1844 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i) ++;
	;}
    break;

  case 279:
#line 1850 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i) = 0;
	;}
    break;

  case 280:
#line 1853 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if (!is_duration ((yyvsp[(2) - (2)].i)))
			PARSER->parser_error ((yylsp[(2) - (2)]), _f ("not a duration: %d", (yyvsp[(2) - (2)].i)));
		(yyval.i) = (yyvsp[(2) - (2)].i);
	;}
    break;

  case 281:
#line 1861 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 282:
#line 1864 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 283:
#line 1867 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 284:
#line 1868 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 285:
#line 1872 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_rational2scm (FLAT_ALTERATION); ;}
    break;

  case 286:
#line 1873 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = ly_rational2scm (SHARP_ALTERATION); ;}
    break;

  case 287:
#line 1874 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int (0); ;}
    break;

  case 288:
#line 1878 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *bfr = MY_MAKE_MUSIC ("BassFigureEvent", (yyloc));
		(yyval.scm) = bfr->unprotect ();
	;}
    break;

  case 289:
#line 1882 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *bfr = MY_MAKE_MUSIC ("BassFigureEvent", (yyloc));
		(yyval.scm) = bfr->self_scm ();

		if (scm_is_number ((yyvsp[(1) - (1)].scm)))
			bfr->set_property ("figure", (yyvsp[(1) - (1)].scm));
		else if (Text_interface::is_markup ((yyvsp[(1) - (1)].scm)))
			bfr->set_property ("text", (yyvsp[(1) - (1)].scm));

		bfr->unprotect ();
	;}
    break;

  case 290:
#line 1893 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (2)].scm);
		unsmob_music ((yyvsp[(1) - (2)].scm))->set_property ("bracket-stop", SCM_BOOL_T);
	;}
    break;

  case 291:
#line 1897 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *m = unsmob_music ((yyvsp[(1) - (2)].scm));
		if (scm_to_double ((yyvsp[(2) - (2)].scm))) {
			SCM salter = m->get_property ("alteration");
			SCM alter = scm_is_number (salter) ? salter : scm_from_int (0);
			m->set_property ("alteration",
					 scm_sum (alter, (yyvsp[(2) - (2)].scm)));
		} else {
			m->set_property ("alteration", scm_from_int (0));
		}
	;}
    break;

  case 292:
#line 1908 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *m = unsmob_music ((yyvsp[(1) - (2)].scm));
		if ((yyvsp[(2) - (2)].scm) == ly_symbol2scm ("plus"))
			{
			m->set_property ("augmented", SCM_BOOL_T);
			}
		else if ((yyvsp[(2) - (2)].scm) == ly_symbol2scm ("slash"))
			{
			m->set_property ("diminished", SCM_BOOL_T);
			}
		else if ((yyvsp[(2) - (2)].scm) == ly_symbol2scm ("exclamation"))
			{
			m->set_property ("no-continuation", SCM_BOOL_T);
			}
		else if ((yyvsp[(2) - (2)].scm) == ly_symbol2scm ("backslash"))
			{
			m->set_property ("augmented-slash", SCM_BOOL_T);
			}
	;}
    break;

  case 293:
#line 1931 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("plus");
	;}
    break;

  case 294:
#line 1934 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("exclamation");
	;}
    break;

  case 295:
#line 1937 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("slash");
	;}
    break;

  case 296:
#line 1940 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("backslash");
	;}
    break;

  case 297:
#line 1946 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 298:
#line 1949 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(2) - (2)].scm);
		unsmob_music ((yyval.scm))->set_property ("bracket-start", SCM_BOOL_T);
	;}
    break;

  case 299:
#line 1956 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 300:
#line 1959 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 301:
#line 1965 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(2) - (3)].scm), SCM_EOL);
	;}
    break;

  case 302:
#line 1972 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) = 0; ;}
    break;

  case 303:
#line 1973 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) = 1; ;}
    break;

  case 304:
#line 1977 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if (!PARSER->lexer_->is_note_state ())
			PARSER->parser_error ((yylsp[(1) - (6)]), _ ("have to be in Note mode for notes"));

		Music *n = 0;
		if ((yyvsp[(6) - (6)].i))
			n = MY_MAKE_MUSIC ("RestEvent", (yyloc));
		else
			n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));
		
		n->set_property ("pitch", (yyvsp[(1) - (6)].scm));
		n->set_property ("duration", (yyvsp[(5) - (6)].scm));

		if (scm_is_number ((yyvsp[(4) - (6)].scm)))
		{
			int q = scm_to_int ((yyvsp[(4) - (6)].scm));
			n->set_property ("absolute-octave", scm_from_int (q-1));
		}

		if ((yyvsp[(3) - (6)].i) % 2)
			n->set_property ("cautionary", SCM_BOOL_T);
		if ((yyvsp[(2) - (6)].i) % 2 || (yyvsp[(3) - (6)].i) % 2)
			n->set_property ("force-accidental", SCM_BOOL_T);

		(yyval.scm) = n->unprotect ();
	;}
    break;

  case 305:
#line 2003 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));
		n->set_property ("duration", (yyvsp[(2) - (2)].scm));
		n->set_property ("drum-type", (yyvsp[(1) - (2)].scm));

		(yyval.scm) = n->unprotect ();		
	;}
    break;

  case 306:
#line 2010 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Music *ev = 0;
 		if (ly_scm2string ((yyvsp[(1) - (2)].scm)) == "s") {
			/* Space */
			ev = MY_MAKE_MUSIC ("SkipEvent", (yyloc));
		  }
		else {
			ev = MY_MAKE_MUSIC ("RestEvent", (yyloc));
		
		    }
		ev->set_property ("duration", (yyvsp[(2) - (2)].scm));
 		(yyval.scm) = ev->unprotect ();
	;}
    break;

  case 307:
#line 2023 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		if (!PARSER->lexer_->is_lyric_state ())
			PARSER->parser_error ((yylsp[(1) - (2)]), _ ("have to be in Lyric mode for lyrics"));

		Music *levent = MY_MAKE_MUSIC ("LyricEvent", (yyloc));
		levent->set_property ("text", (yyvsp[(1) - (2)].scm));
		levent->set_property ("duration",(yyvsp[(2) - (2)].scm));
		(yyval.scm)= levent->unprotect ();
	;}
    break;

  case 308:
#line 2035 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 309:
#line 2038 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
                if (!PARSER->lexer_->is_chord_state ())
                        PARSER->parser_error ((yylsp[(1) - (1)]), _ ("have to be in Chord mode for chords"));
                (yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 310:
#line 2043 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		for (SCM s = (yyvsp[(1) - (2)].scm); scm_is_pair (s); s = scm_cdr (s))
		{
			unsmob_music (scm_car (s))->set_property ("duration", (yyvsp[(2) - (2)].scm));
		}
		(yyval.scm) = (yyvsp[(1) - (2)].scm);
	;}
    break;

  case 311:
#line 2053 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 312:
#line 2056 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 313:
#line 2062 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_elements ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm), SCM_EOL);
	;}
    break;

  case 314:
#line 2065 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM its = scm_reverse_x ((yyvsp[(4) - (4)].scm), SCM_EOL);
		(yyval.scm) = make_chord_elements ((yyvsp[(1) - (4)].scm), (yyvsp[(2) - (4)].scm), scm_cons ((yyvsp[(3) - (4)].scm), its));
	;}
    break;

  case 315:
#line 2072 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;		
	;}
    break;

  case 316:
#line 2075 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyval.scm));
	;}
    break;

  case 317:
#line 2081 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("chord-colon");
	;}
    break;

  case 318:
#line 2084 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("chord-caret");
	;}
    break;

  case 319:
#line 2087 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
 		(yyval.scm) = scm_list_2 (ly_symbol2scm ("chord-slash"), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 320:
#line 2090 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 (ly_symbol2scm ("chord-bass"), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 321:
#line 2096 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 322:
#line 2099 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(1) - (1)].scm), SCM_EOL);
	;}
    break;

  case 323:
#line 2102 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 324:
#line 2108 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = scm_cons ((yyvsp[(1) - (1)].scm), SCM_EOL); ;}
    break;

  case 325:
#line 2109 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyval.scm));
	;}
    break;

  case 326:
#line 2115 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (1)].i), 0);
        ;}
    break;

  case 327:
#line 2118 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (2)].i), SHARP_ALTERATION);
	;}
    break;

  case 328:
#line 2121 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (2)].i), FLAT_ALTERATION);
	;}
    break;

  case 329:
#line 2133 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_sum ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 330:
#line 2136 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_difference ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 332:
#line 2143 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 333:
#line 2146 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_product ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 334:
#line 2149 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_divide ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 335:
#line 2155 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { /* %prec UNARY_MINUS */
		(yyval.scm) = scm_difference ((yyvsp[(2) - (2)].scm), SCM_UNDEFINED);
	;}
    break;

  case 337:
#line 2163 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 338:
#line 2166 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 339:
#line 2169 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 340:
#line 2172 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_double (scm_to_double ((yyvsp[(1) - (2)].scm)) *scm_to_double ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 341:
#line 2175 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_double ((yyvsp[(1) - (2)].i) *scm_to_double ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 342:
#line 2182 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
			(yyval.i) = (yyvsp[(1) - (1)].i);
	;}
    break;

  case 343:
#line 2185 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.i) = (yyvsp[(1) - (1)].i);
	;}
    break;

  case 344:
#line 2191 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i)); ;}
    break;

  case 345:
#line 2192 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 346:
#line 2199 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) = 0; ;}
    break;

  case 347:
#line 2200 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) ++; ;}
    break;

  case 348:
#line 2204 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) = 0; ;}
    break;

  case 349:
#line 2205 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { (yyval.i) ++; ;}
    break;

  case 350:
#line 2213 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 351:
#line 2217 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { PARSER->lexer_->push_markup_state (); ;}
    break;

  case 352:
#line 2218 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (3)].scm);
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 353:
#line 2226 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { PARSER->lexer_->push_markup_state (); ;}
    break;

  case 354:
#line 2227 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (3)].scm);
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 355:
#line 2234 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 356:
#line 2238 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { PARSER->lexer_->push_markup_state (); ;}
    break;

  case 357:
#line 2239 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (3)].scm);
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 358:
#line 2246 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    { 
		(yyval.scm) = scm_list_2 (ly_lily_module_constant ("line-markup"),  (yyvsp[(1) - (1)].scm)); 
	;}
    break;

  case 359:
#line 2249 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_car (scm_call_2 (ly_lily_module_constant ("map-markup-command-list"), (yyvsp[(1) - (2)].scm), scm_list_1 ((yyvsp[(2) - (2)].scm))));
	;}
    break;

  case 360:
#line 2252 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 361:
#line 2258 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 362:
#line 2261 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 363:
#line 2264 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 364:
#line 2270 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_call_2 (ly_lily_module_constant ("map-markup-command-list"), (yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
		
	;}
    break;

  case 365:
#line 2277 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(2) - (3)].scm), SCM_EOL);
	;}
    break;

  case 366:
#line 2283 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {  (yyval.scm) = SCM_EOL; ;}
    break;

  case 367:
#line 2284 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 368:
#line 2287 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_append_x (scm_list_2 (scm_reverse_x ((yyvsp[(2) - (2)].scm), SCM_EOL), (yyvsp[(1) - (2)].scm)));
	;}
    break;

  case 369:
#line 2293 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 370:
#line 2296 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 371:
#line 2299 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 372:
#line 2302 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 373:
#line 2305 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_4 ((yyvsp[(1) - (4)].scm), (yyvsp[(2) - (4)].scm), (yyvsp[(3) - (4)].scm), (yyvsp[(4) - (4)].scm));
	;}
    break;

  case 374:
#line 2311 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 375:
#line 2314 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 376:
#line 2317 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 377:
#line 2323 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 378:
#line 2326 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 379:
#line 2332 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = make_simple_markup ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 380:
#line 2335 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 381:
#line 2338 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 382:
#line 2341 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 383:
#line 2344 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("pitchnames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));
	;}
    break;

  case 384:
#line 2347 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		Score * sc = (yyvsp[(4) - (5)].score);
		(yyval.scm) = scm_list_2 (ly_lily_module_constant ("score-markup"), sc->self_scm ());
		sc->unprotect ();
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 385:
#line 2353 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 386:
#line 2356 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_4 ((yyvsp[(1) - (4)].scm), (yyvsp[(2) - (4)].scm), (yyvsp[(3) - (4)].scm), (yyvsp[(4) - (4)].scm));
	;}
    break;

  case 387:
#line 2359 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 388:
#line 2362 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_4 ((yyvsp[(1) - (4)].scm), (yyvsp[(2) - (4)].scm), (yyvsp[(3) - (4)].scm), (yyvsp[(4) - (4)].scm));
	;}
    break;

  case 389:
#line 2365 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 390:
#line 2368 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm),(yyvsp[(2) - (2)].scm));
	;}
    break;

  case 391:
#line 2371 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 392:
#line 2377 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		SCM mapper = ly_lily_module_constant ("map-markup-command-list");
		(yyval.scm) = scm_car (scm_call_2 (mapper, (yyvsp[(1) - (2)].scm), scm_list_1 ((yyvsp[(2) - (2)].scm))));
	;}
    break;

  case 393:
#line 2381 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;


/* Line 1267 of yacc.c.  */
#line 5592 "out/parser.cc"
      default: break;
    }
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;
  *++yylsp = yyloc;

  /* 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
      yyerror (YY_("syntax error"));
#else
      {
	YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
	if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
	  {
	    YYSIZE_T yyalloc = 2 * yysize;
	    if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
	      yyalloc = YYSTACK_ALLOC_MAXIMUM;
	    if (yymsg != yymsgbuf)
	      YYSTACK_FREE (yymsg);
	    yymsg = (char *) YYSTACK_ALLOC (yyalloc);
	    if (yymsg)
	      yymsg_alloc = yyalloc;
	    else
	      {
		yymsg = yymsgbuf;
		yymsg_alloc = sizeof yymsgbuf;
	      }
	  }

	if (0 < yysize && yysize <= yymsg_alloc)
	  {
	    (void) yysyntax_error (yymsg, yystate, yychar);
	    yyerror (yymsg);
	  }
	else
	  {
	    yyerror (YY_("syntax error"));
	    if (yysize != 0)
	      goto yyexhaustedlab;
	  }
      }
#endif
    }

  yyerror_range[0] = yylloc;

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

      if (yychar <= YYEOF)
	{
	  /* Return failure if at end of input.  */
	  if (yychar == YYEOF)
	    YYABORT;
	}
      else
	{
	  yydestruct ("Error: discarding",
		      yytoken, &yylval, &yylloc);
	  yychar = YYEMPTY;
	}
    }

  /* Else will try to reuse look-ahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

  /* Pacify compilers like GCC when the user code never invokes
     YYERROR and the label yyerrorlab therefore never appears in user
     code.  */
  if (/*CONSTCOND*/ 0)
     goto yyerrorlab;

  yyerror_range[0] = yylsp[1-yylen];
  /* Do not reclaim the symbols of the rule which action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  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;

      yyerror_range[0] = *yylsp;
      yydestruct ("Error: popping",
		  yystos[yystate], yyvsp, yylsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  *++yyvsp = yylval;

  yyerror_range[1] = yylloc;
  /* Using YYLLOC is tempting, but would change the location of
     the look-ahead.  YYLOC is available though.  */
  YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2);
  *++yylsp = yyloc;

  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


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

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

#ifndef yyoverflow
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEOF && yychar != YYEMPTY)
     yydestruct ("Cleanup: discarding lookahead",
		 yytoken, &yylval, &yylloc);
  /* Do not reclaim the symbols of the rule which action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
		  yystos[*yyssp], yyvsp, yylsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  /* Make sure YYID is used.  */
  return YYID (yyresult);
}


#line 2386 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/lily/parser.yy"


void
Lily_parser::set_yydebug (bool x)
{
	yydebug = x;
}

void
Lily_parser::do_yyparse ()
{
	yyparse ((void*)this);
}





/*

It is a little strange to have this function in this file, but
otherwise, we have to import music classes into the lexer.

*/
int
Lily_lexer::try_special_identifiers (SCM *destination, SCM sid)
{
	if (scm_is_string (sid)) {
		*destination = sid;
		return STRING_IDENTIFIER;
	} else if (unsmob_book (sid)) {
		Book *book =  unsmob_book (sid)->clone ();
		*destination = book->self_scm ();
		book->unprotect ();

		return BOOK_IDENTIFIER;
	} else if (scm_is_number (sid)) {
		*destination = sid;
		return NUMBER_IDENTIFIER;
	} else if (unsmob_context_def (sid)) {
		Context_def *def= unsmob_context_def (sid)->clone ();

		*destination = def->self_scm ();
		def->unprotect ();
		
		return CONTEXT_DEF_IDENTIFIER;
	} else if (unsmob_score (sid)) {
		Score *score = new Score (*unsmob_score (sid));
		*destination = score->self_scm ();

		score->unprotect ();
		return SCORE_IDENTIFIER;
	} else if (Music *mus = unsmob_music (sid)) {
		mus = mus->clone ();
		*destination = mus->self_scm ();
		unsmob_music (*destination)->
			set_property ("origin", make_input (last_input_));

		bool is_event = scm_memq (ly_symbol2scm ("event"), mus->get_property ("types"))
			!= SCM_BOOL_F;

		mus->unprotect ();
		return is_event ? EVENT_IDENTIFIER : MUSIC_IDENTIFIER;
	} else if (unsmob_duration (sid)) {
		*destination = unsmob_duration (sid)->smobbed_copy ();
		return DURATION_IDENTIFIER;
	} else if (unsmob_output_def (sid)) {
		Output_def *p = unsmob_output_def (sid);
		p = p->clone ();
	
		*destination = p->self_scm ();
		p->unprotect ();
		return OUTPUT_DEF_IDENTIFIER;
	} else if (Text_interface::is_markup (sid)) {
		*destination = sid;
		if (is_lyric_state ())
			return LYRIC_MARKUP_IDENTIFIER;
		return MARKUP_IDENTIFIER;
	}

	return -1;	
}

SCM
get_next_unique_context_id ()
{
	return scm_from_locale_string ("$uniqueContextId");
}


SCM
get_next_unique_lyrics_context_id ()
{
	static int new_context_count;
	char s[128];
	snprintf (s, sizeof (s)-1, "uniqueContext%d", new_context_count++);
	return scm_from_locale_string (s);
}


SCM
run_music_function (Lily_parser *parser, SCM expr)
{
	SCM func = scm_car (expr);
	Input *loc = unsmob_input (scm_cadr (expr));
	SCM args = scm_cddr (expr);
	SCM sig = scm_object_property (func, ly_symbol2scm ("music-function-signature"));

	SCM type_check_proc = ly_lily_module_constant ("type-check-list");

	if (!to_boolean (scm_call_3  (type_check_proc, scm_cadr (expr), sig, args)))
	{
		parser->error_level_ = 1;
		return LOWLEVEL_MAKE_SYNTAX (ly_lily_module_constant ("void-music"), scm_list_2 (parser->self_scm (), make_input (*loc)));
	}

	SCM syntax_args = scm_list_4 (parser->self_scm (), make_input (*loc), func, args);
	return LOWLEVEL_MAKE_SYNTAX (ly_lily_module_constant ("music-function"), syntax_args);
}

bool
is_regular_identifier (SCM id)
{
  string str = ly_scm2string (id);
  char const *s = str.c_str ();

  bool v = true;
#if 0
  isalpha (*s);
  s++;
#endif
  while (*s && v)
   {
        v = v && isalnum (*s);
        s++;
   }
  return v;
}

Music *
make_music_with_input (SCM name, Input where)
{
       Music *m = make_music_by_name (name);
       m->set_spot (where);
       return m;
}

SCM
get_first_context_id (SCM type, Music *m)
{
	SCM id = m->get_property ("context-id");
	if (SCM_BOOL_T == scm_equal_p (m->get_property ("context-type"), type)
	    && scm_is_string (m->get_property ("context-id"))
	    && scm_c_string_length (id) > 0)
	{
		return id;
	}
	return SCM_EOL;
}

SCM
make_simple_markup (SCM a)
{
	return a;
}

bool
is_duration (int t)
{
  return t && t == 1 << intlog2 (t);
}

void
set_music_properties (Music *p, SCM a)
{
  for (SCM k = a; scm_is_pair (k); k = scm_cdr (k))
 	p->set_property (scm_caar (k), scm_cdar (k));
}


SCM
make_chord_step (int step, Rational alter)
{
	if (step == 7)
		alter += FLAT_ALTERATION;

	while (step < 0)
		step += 7;
	Pitch m ((step -1) / 7, (step - 1) % 7, alter);
	return m.smobbed_copy ();
}


SCM
make_chord_elements (SCM pitch, SCM dur, SCM modification_list)
{
	SCM chord_ctor = ly_lily_module_constant ("construct-chord-elements");
	return scm_call_3 (chord_ctor, pitch, dur, modification_list);
}


/* Todo: actually also use apply iso. call too ...  */
bool
ly_input_procedure_p (SCM x)
{
	return ly_is_procedure (x)
		|| (scm_is_pair (x) && ly_is_procedure (scm_car (x)));
}

SCM
make_music_relative (Pitch start, SCM music, Input loc)
{
	Music *relative = MY_MAKE_MUSIC ("RelativeOctaveMusic", loc);
 	relative->set_property ("element", music);
	
	Music *m = unsmob_music (music);
 	Pitch last = m->to_relative_octave (start);
 	if (lily_1_8_relative)
 		m->set_property ("last-pitch", last.smobbed_copy ());
	return relative->unprotect ();
}

int
yylex (YYSTYPE *s, YYLTYPE *loc, void *v)
{
	Lily_parser *pars = (Lily_parser*) v;
	Lily_lexer *lex = pars->lexer_;

	lex->lexval = (void*) s;
	lex->lexloc = loc;
	lex->prepare_for_next_token ();
	return lex->yylex ();
}

