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




/* Copy the first part of user declarations.  */
#line 21 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 67 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 109 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 440 "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 119 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 505 "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   2099

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  160
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  140
/* YYNRULES -- Number of rules.  */
#define YYNRULES  411
/* YYNRULES -- Number of states.  */
#define YYNSTATES  594

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

#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,   158,     2,     2,     2,     2,     2,   151,
     149,   150,   155,   139,   152,   138,   144,   156,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,   157,     2,
       2,   143,     2,   159,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   146,     2,   147,   153,   154,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   141,   145,   142,   148,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,
     135,   136,   137,   140
};

#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,    39,    40,
      43,    48,    50,    52,    56,    58,    60,    62,    64,    66,
      68,    70,    72,    74,    76,    78,    80,    82,    87,    88,
      90,    94,    97,   102,   103,   105,   108,   111,   114,   117,
     120,   123,   126,   129,   132,   137,   138,   140,   143,   146,
     149,   152,   155,   158,   161,   164,   169,   171,   173,   176,
     179,   182,   185,   187,   190,   192,   194,   196,   198,   201,
     205,   208,   211,   214,   219,   225,   231,   234,   237,   238,
     241,   244,   247,   249,   251,   252,   257,   263,   268,   272,
     277,   281,   283,   285,   287,   289,   290,   291,   297,   298,
     301,   303,   305,   307,   309,   311,   313,   317,   321,   325,
     329,   331,   335,   339,   343,   345,   347,   349,   352,   353,
     356,   358,   364,   370,   374,   376,   381,   384,   388,   390,
     392,   394,   396,   398,   400,   402,   404,   406,   408,   410,
     414,   417,   418,   422,   423,   428,   431,   432,   437,   442,
     444,   447,   449,   453,   456,   462,   466,   468,   470,   472,
     474,   476,   478,   480,   482,   484,   486,   489,   491,   495,
     501,   505,   510,   513,   515,   518,   520,   522,   526,   528,
     530,   532,   534,   536,   538,   540,   542,   544,   547,   551,
     555,   557,   559,   563,   567,   568,   571,   577,   580,   582,
     584,   589,   592,   597,   600,   602,   605,   607,   609,   611,
     613,   616,   619,   622,   624,   627,   629,   632,   636,   637,
     640,   642,   645,   647,   649,   652,   655,   657,   659,   661,
     663,   665,   667,   669,   671,   673,   675,   677,   679,   681,
     683,   685,   687,   689,   690,   692,   695,   698,   700,   703,
     705,   708,   710,   713,   716,   718,   721,   724,   726,   728,
     730,   732,   734,   736,   738,   740,   742,   744,   746,   748,
     750,   752,   754,   756,   758,   760,   761,   763,   766,   769,
     771,   775,   779,   781,   785,   786,   789,   791,   794,   796,
     798,   800,   802,   804,   806,   808,   810,   812,   815,   818,
     821,   823,   825,   827,   829,   831,   834,   835,   838,   842,
     843,   845,   852,   855,   858,   861,   863,   865,   868,   870,
     872,   875,   880,   881,   884,   886,   888,   891,   894,   896,
     898,   900,   902,   906,   908,   911,   914,   918,   922,   924,
     926,   930,   934,   937,   939,   941,   943,   945,   948,   951,
     953,   955,   957,   959,   960,   963,   964,   967,   969,   970,
     974,   975,   979,   981,   982,   986,   988,   991,   993,   995,
     997,   999,  1002,  1006,  1007,  1010,  1013,  1015,  1018,  1021,
    1025,  1030,  1032,  1035,  1039,  1041,  1044,  1046,  1048,  1050,
    1052,  1053,  1059,  1062,  1067,  1071,  1076,  1082,  1084,  1087,
    1091,  1094
};

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

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   464,   464,   465,   467,   469,   472,   479,   483,   486,
     492,   498,   505,   510,   514,   518,   535,   536,   541,   545,
     551,   560,   561,   565,   576,   581,   585,   589,   593,   597,
     600,   612,   615,   618,   621,   624,   627,   633,   640,   644,
     648,   659,   667,   678,   690,   696,   701,   707,   713,   718,
     722,   726,   729,   734,   740,   747,   752,   758,   762,   768,
     773,   777,   781,   784,   788,   794,   800,   810,   815,   818,
     821,   833,   844,   857,   866,   871,   876,   885,   892,   896,
     906,   909,   912,   918,   921,   924,   927,   930,   943,   946,
     956,   959,   976,   977,   981,   984,   991,   998,  1001,  1007,
    1010,  1016,  1017,  1018,  1019,  1023,  1024,  1024,  1033,  1034,
    1040,  1041,  1045,  1046,  1050,  1051,  1059,  1065,  1068,  1071,
    1076,  1079,  1082,  1085,  1090,  1095,  1096,  1100,  1107,  1108,
    1115,  1118,  1121,  1125,  1128,  1129,  1135,  1146,  1154,  1155,
    1159,  1165,  1172,  1177,  1185,  1192,  1198,  1203,  1210,  1218,
    1222,  1229,  1229,  1238,  1238,  1247,  1250,  1250,  1259,  1266,
    1269,  1275,  1281,  1285,  1289,  1294,  1301,  1302,  1304,  1305,
    1306,  1308,  1309,  1310,  1311,  1315,  1316,  1322,  1331,  1338,
    1345,  1351,  1357,  1365,  1368,  1374,  1377,  1380,  1385,  1388,
    1391,  1396,  1399,  1402,  1405,  1408,  1411,  1425,  1435,  1443,
    1448,  1449,  1456,  1474,  1481,  1482,  1488,  1514,  1525,  1530,
    1543,  1546,  1555,  1558,  1564,  1567,  1570,  1575,  1580,  1583,
    1597,  1603,  1608,  1616,  1619,  1623,  1626,  1630,  1648,  1651,
    1658,  1661,  1664,  1669,  1674,  1682,  1690,  1694,  1702,  1705,
    1708,  1711,  1714,  1717,  1720,  1723,  1726,  1729,  1735,  1749,
    1752,  1760,  1763,  1774,  1775,  1776,  1777,  1781,  1784,  1790,
    1793,  1799,  1802,  1807,  1819,  1822,  1827,  1836,  1842,  1843,
    1847,  1852,  1858,  1866,  1869,  1872,  1875,  1878,  1881,  1884,
    1890,  1891,  1892,  1897,  1903,  1909,  1913,  1920,  1929,  1938,
    1941,  1944,  1952,  1953,  1959,  1962,  1968,  1971,  1979,  1982,
    1985,  1986,  1990,  1991,  1992,  1996,  2000,  2011,  2015,  2026,
    2049,  2052,  2055,  2058,  2064,  2067,  2074,  2077,  2083,  2090,
    2091,  2095,  2121,  2128,  2141,  2153,  2156,  2161,  2171,  2174,
    2180,  2183,  2190,  2193,  2199,  2202,  2205,  2208,  2214,  2217,
    2220,  2226,  2227,  2233,  2236,  2239,  2251,  2254,  2257,  2261,
    2264,  2267,  2273,  2276,  2281,  2284,  2287,  2290,  2293,  2300,
    2303,  2309,  2310,  2317,  2318,  2322,  2323,  2331,  2335,  2334,
    2344,  2343,  2352,  2356,  2355,  2364,  2367,  2370,  2376,  2379,
    2382,  2388,  2395,  2401,  2402,  2405,  2411,  2414,  2417,  2420,
    2423,  2429,  2432,  2435,  2441,  2444,  2450,  2453,  2456,  2459,
    2462,  2462,  2471,  2474,  2477,  2480,  2483,  2486,  2489,  2492,
    2498,  2502
};
#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\"", "\"\\\\bookpart\"", "\"\\\\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", "CHORD_REPETITION", "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_SCM1_MARKUP2_MARKUP3",
  "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", "bookpart_block", "bookpart_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,   390,   391,   392,    45,    43,
     393,   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,   160,   161,   161,   161,   161,   161,   162,   163,   163,
     163,   163,   163,   163,   163,   163,   164,   164,   165,   165,
     166,   167,   167,   168,   168,   169,   169,   169,   169,   169,
     169,   169,   169,   169,   169,   169,   169,   170,   171,   171,
     171,   171,   172,   173,   173,   173,   173,   173,   173,   173,
     173,   173,   173,   173,   174,   175,   175,   175,   175,   175,
     175,   175,   175,   175,   175,   176,   177,   177,   177,   177,
     177,   177,   178,   179,   180,   180,   180,   181,   182,   182,
     182,   182,   182,   183,   183,   183,   183,   183,   184,   184,
     184,   184,   185,   185,   186,   186,   187,   188,   188,   189,
     189,   190,   190,   190,   190,   191,   192,   191,   193,   193,
     194,   194,   195,   195,   196,   196,   197,   198,   198,   198,
     199,   199,   199,   199,   200,   200,   200,   201,   202,   202,
     203,   203,   203,   203,   203,   203,   203,   203,   203,   203,
     204,   204,   204,   204,   204,   205,   205,   205,   205,   206,
     206,   208,   207,   209,   207,   210,   211,   210,   212,   213,
     213,   214,   215,   215,   215,   215,   216,   216,   216,   216,
     216,   216,   216,   216,   216,   217,   217,   218,   218,   219,
     219,   219,   219,   220,   220,   221,   221,   221,   222,   222,
     222,   223,   223,   223,   223,   223,   223,   224,   224,   224,
     224,   224,   225,   226,   227,   227,   228,   228,   228,   229,
     230,   230,   231,   231,   232,   232,   232,   232,   232,   232,
     232,   232,   232,   233,   233,   233,   233,   233,   234,   234,
     235,   235,   235,   235,   235,   235,   235,   236,   237,   237,
     237,   237,   237,   237,   237,   237,   237,   237,   238,   238,
     238,   239,   239,   240,   240,   240,   240,   241,   241,   242,
     242,   243,   243,   243,   244,   244,   244,   245,   246,   246,
     247,   247,   247,   248,   248,   248,   248,   248,   248,   248,
     249,   249,   249,   250,   251,   252,   252,   253,   253,   254,
     254,   254,   255,   255,   256,   256,   257,   257,   258,   258,
     258,   258,   259,   259,   259,   260,   260,   260,   260,   260,
     261,   261,   261,   261,   262,   262,   263,   263,   264,   265,
     265,   266,   266,   266,   266,   267,   267,   267,   268,   268,
     269,   269,   270,   270,   271,   271,   271,   271,   272,   272,
     272,   273,   273,   274,   274,   274,   275,   275,   275,   276,
     276,   276,   277,   277,   278,   278,   278,   278,   278,   279,
     279,   280,   280,   281,   281,   282,   282,   283,   284,   283,
     286,   285,   287,   288,   287,   289,   289,   289,   290,   290,
     290,   291,   292,   293,   293,   293,   294,   294,   294,   294,
     294,   295,   295,   295,   296,   296,   297,   297,   297,   297,
     298,   297,   297,   297,   297,   297,   297,   297,   297,   297,
     299,   299
};

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

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     1,   371,    40,   222,   119,   372,    43,    44,   254,
     107,   413,    45,   114,    46,   116,    47,   210,   286,   287,
      49,    50,    51,   184,    92,   223,   477,    52,    53,    54,
     186,   112,   277,   508,   187,    56,   383,    97,    98,   483,
      99,    57,   118,    58,    59,    60,    61,   109,   275,   415,
      62,   120,   188,   436,   437,   504,   505,   506,   339,   189,
     190,   334,   340,   335,   191,   192,   193,   354,   449,   389,
     451,   390,   194,   195,   366,   475,   263,   264,   265,   404,
     545,   155,   156,    87,   196,   197,    90,   405,   406,   266,
      78,   342,   357,   343,   358,    85,   439,   267,   459,   538,
     460,   539,   461,   355,   198,   588,   199,   200,   201,   202,
     542,   471,   567,   568,   569,   268,   269,   270,   271,   345,
     208,   364,   473,   203,   356,    63,    74,   337,    73,   143,
     144,   145,   146,   321,   147,   148,   307,   308,   305,   309
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -414
static const yytype_int16 yypact[] =
{
    -414,  1366,  -414,  -414,   -70,   -19,  -414,  -414,   125,  -414,
    -414,  -414,  -414,    11,  -414,  -414,  -414,  -414,   125,  -414,
    -414,  -414,  -414,  -414,  1780,   125,    24,    47,    51,   -24,
      -3,   125,  -414,  -414,  -414,   301,  -414,  -414,  -414,  -414,
    -414,  -414,  -414,    50,  -414,  -414,  -414,  -414,  -414,  -414,
      60,    54,  -414,  -414,  -414,  -414,   204,  -414,  -414,    10,
     155,  -414,  -414,  -414,  -414,   114,   129,  -414,  -414,  -414,
      91,  -414,  -414,  1851,   386,  -105,  -414,  -414,  1653,   -31,
    1526,  -414,  -414,    84,  -414,  1653,  -105,  -414,  -414,  -414,
      -3,    91,   700,   301,   301,   301,  -414,  -414,  -414,  -414,
     827,   550,   130,  -414,   113,  -414,  -414,  -414,  -414,   268,
    -414,  -414,    10,  -414,   378,  -414,  1418,   125,   155,     7,
    1653,  -414,  -414,  -414,   386,  -414,  1927,   -43,   -43,   -43,
     -43,   -43,   -43,   -43,  -414,   386,   -43,   -43,   -43,  -414,
    -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  1891,
    -414,  -414,   133,  -414,  -414,   132,   134,   160,    35,   117,
     295,   125,   234,   125,   125,   234,   199,   125,   -24,  -414,
    -414,  -414,  -414,  -414,  -414,  -414,   234,   234,   234,  -414,
    -414,  -414,   234,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,  -414,   234,  -414,  -414,   234,  -414,   234,  -414,
    -414,   234,  -414,  -414,  -414,  -414,  -414,  -414,  1653,  -414,
      57,  -414,   962,  1097,   198,  -414,   132,   134,  1653,   155,
    -414,  -414,  -414,  -414,    55,  1653,   149,  -414,    62,  -414,
    -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,   177,  -414,
    -414,   186,  -414,  -414,    -5,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,   173,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,   162,  -414,  -414,  -414,  -414,  1744,  -414,    32,  -414,
      19,  -414,  -414,  -414,   215,    10,  -414,   184,  -414,  -414,
     183,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,  1653,  -414,  -414,  -414,   190,  -414,  1927,  -414,  1927,
    -414,  -414,   -43,   -43,   -43,  1927,   -43,  -414,  -414,   386,
     -43,  1815,  -414,  -414,  -414,  -414,  -414,   206,  -414,   218,
    -414,  -414,  -414,  -414,   162,  -414,  -414,  -414,  -414,   -43,
     203,  -414,  -414,  -414,   197,  -414,   -43,   211,  -414,     6,
     214,   234,  -414,  -414,    42,   152,  1851,  -414,   197,  -414,
    -414,  -414,  -414,   318,   201,  -414,  1942,  -414,   355,  -414,
    -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  1653,  -414,
    -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,    72,   376,
    -414,  -414,  -414,    48,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,   162,  -414,  -414,  -414,  -414,  -414,    72,    72,
      72,    72,  -414,  1478,  -414,    10,  -414,  -414,  -414,  1526,
    -414,  -414,  -414,  -414,  1927,  1927,   -43,  -414,   386,  -414,
    -414,  1891,  -414,   227,  -414,  -414,   -43,   221,   125,   224,
     -25,   224,  -414,   354,   229,   173,   230,  -414,  -414,  -414,
     380,  -414,  -414,  -414,  -414,  -414,  -414,  -414,   172,  -414,
     141,  -414,  -414,  -414,  1942,  1942,  1942,   233,  -414,  -414,
     233,  -414,  -414,   -73,   253,  -414,   251,  -414,  -414,   143,
     143,   143,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,  -414,  -414,  -414,   -43,  -414,   125,  -414,   125,
    -414,   125,   259,  -414,  -414,   269,  -414,  -414,   303,    77,
    1927,  -414,  -414,  -414,  -414,  -414,   354,  -414,  -414,  -414,
    -414,  -414,   173,  -414,   173,  1942,   143,  -414,   201,   141,
    -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,   266,  -105,  -414,   234,  -414,    55,  1942,   149,
    -414,   -43,   -43,  -414,   354,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,  -414,    79,   -73,  -414,  -414,  -414,   270,  -414,
     -22,   132,   134,   363,  1232,  -414,  -414,  -414,  -414,   274,
    -414,  -414,  -414,  -414,   173,  -414,  -414,  -414,  -414,  -414,
     354,  1942,  -414,  -414
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -414,  -414,   101,  -414,    -1,  -414,    41,  -414,     2,  -414,
     317,  -414,   320,  -414,    45,  -414,   157,     4,   310,     3,
    -414,  -414,  -414,  -414,   -33,   -45,  -414,  -414,  -414,  -414,
    -414,   -81,  -414,  -414,    40,   -46,  -130,  -414,  -414,  -373,
     247,  -414,   338,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,  -414,  -414,  -414,  -120,  -414,  -414,   -72,   222,   277,
    -414,   -90,    -6,  -413,  -414,  -414,  -414,  -414,  -114,  -336,
    -414,  -414,  -414,  -414,  -305,   -92,  -414,  -414,   174,  -414,
    -112,   -79,   -78,   419,   -16,   -27,   365,  -414,  -414,  -414,
    -414,   288,  -162,  -121,   -71,   289,   116,  -414,  -414,  -414,
       1,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,  -414,
    -414,   -80,  -414,  -414,  -118,  -414,  -116,  -216,  -149,   -74,
    -414,    15,   -65,  -414,  -414,   161,  -414,     0,  -414,   121,
     -51,  -414,  -123,  -414,  -414,  -125,   -52,   -56,  -414,  -277
};

/* 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[] =
{
      41,    64,    70,    89,    48,   207,   100,   216,   217,   262,
     336,   261,    72,   110,    88,   359,   360,   150,   450,    79,
     361,   149,   152,   151,   323,    91,   322,   323,   391,   322,
     521,   362,   421,   185,   363,   211,   365,   301,   425,   367,
     215,    55,    42,   585,   432,   350,   153,   154,   212,   213,
      41,   328,   464,   106,   465,   103,   260,   466,   369,   204,
      27,   205,    28,    89,    76,   204,   278,   205,    83,   104,
     543,    65,   152,   306,    88,   304,   349,   527,   369,    32,
     519,    84,    13,   152,   317,    15,   544,   238,    19,    36,
      37,   344,    21,   324,   344,   280,   204,   206,   205,    23,
     253,   272,    13,   560,   259,    15,   547,   548,   549,   341,
     447,   300,    21,    33,   290,   280,   299,   586,    41,    23,
     387,   303,    66,   240,    75,   241,   310,   311,   312,   313,
     314,   315,   316,   330,    86,   318,   319,   320,   378,    36,
      37,   581,    38,   525,   448,   393,   257,   510,   511,   302,
      19,    39,    71,   563,   288,   283,   297,   294,   333,   284,
      33,    67,   329,   368,   238,    80,   351,   387,    67,    75,
     408,   409,   391,   377,   410,   411,   402,   593,   392,    34,
     381,   448,   323,   242,   243,    19,    36,    37,    81,    38,
      68,    69,    82,   101,   487,   488,   105,    68,    69,   370,
     240,   102,   241,   274,   387,    19,    75,   331,   108,   238,
     388,   113,   530,   373,   111,   282,   531,   293,   379,   558,
     384,   532,    70,   332,   380,   382,   115,   450,   444,   414,
     446,    67,    19,   559,   117,   453,   479,   454,   481,   482,
     214,    34,   455,   125,   456,   240,   128,   241,   130,    36,
      37,   420,   242,   243,   274,    67,   418,   454,   258,   273,
      68,    69,   455,   204,   456,   205,   407,   152,   427,   431,
     430,   285,   276,   295,   142,   289,    34,   298,   591,   533,
     534,    36,    37,   325,    68,    69,   326,   457,   535,   204,
     376,   205,   485,   486,   336,   327,    34,   536,   458,   537,
     150,   393,   341,   484,   149,   385,   323,   457,   322,   489,
     490,   422,   423,   424,   386,   426,   412,   491,   417,   428,
     492,   493,   494,    34,   204,   416,   205,   452,   467,   468,
     469,   419,   470,   478,   242,   243,   161,   341,   435,   496,
     224,   225,   226,   163,   497,   442,   164,   438,   498,   433,
     434,   499,   440,   167,   443,   462,   204,   445,   205,   472,
     500,   501,   514,   476,   516,   565,   520,   336,   518,   507,
      86,   523,   522,   524,   211,   420,   152,   513,   387,   279,
     467,   468,   469,   573,   470,   346,   347,    19,     5,   352,
       6,     7,   546,     8,    93,    94,    95,    96,     9,    10,
      11,    12,   554,    13,   555,   336,    15,    16,    17,    18,
     587,    19,    20,    21,   584,    22,   280,   590,   255,   578,
      23,   256,    24,   509,    25,   512,   296,    26,    27,   219,
      28,   579,   517,    29,    30,   515,   557,   338,   502,    31,
     403,   336,   333,    77,   331,   556,   238,    32,   561,   582,
     562,   540,   583,   348,   541,   218,   577,   353,   462,   529,
     332,   441,   566,   564,   571,   572,   592,   528,   570,   479,
     480,   481,   482,   479,   526,   481,   482,   463,    34,     0,
       0,     0,   240,     0,   241,     0,    36,    37,     0,   242,
     243,   551,     0,   552,   550,   553,   125,     0,     0,   128,
       0,   130,    34,    35,     0,   134,   135,   136,   137,   138,
     570,     0,   373,   574,     0,   333,     0,     0,     0,    39,
     281,     0,     0,     0,     0,     0,     0,   142,     0,     0,
       0,     0,     0,     0,     0,     0,   452,     0,     0,     0,
       0,   575,     0,   384,     0,     0,     0,   576,   382,     0,
     435,   580,     0,   333,     0,     0,     0,     0,     0,     4,
       5,   157,     6,     7,     0,   228,     0,     0,     0,     0,
       9,    10,    11,    12,     0,     0,     0,   158,    15,    16,
      17,    18,   159,    19,     0,    21,     0,    22,     0,   333,
     160,   161,    23,   162,    24,     0,    25,     0,   163,    26,
      27,   164,    28,   165,   166,    29,    30,     0,   167,     0,
     168,    31,     0,     0,     0,     0,     0,   169,     0,    32,
       0,   170,   229,     0,   230,   231,   171,   232,   172,   233,
       0,   173,   234,     0,   174,     0,   235,     0,   175,   176,
     236,   237,   238,     0,     0,     0,     0,     0,     0,     0,
     177,     0,   178,     0,   239,     0,   179,   180,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    34,    35,   181,    75,   240,     0,
     241,   182,    36,    37,     0,   242,   243,    86,   244,     0,
       0,    39,     0,     0,     0,   183,   245,   246,   247,   248,
     249,   220,     0,   250,   251,     0,     0,   252,     0,     0,
       0,   157,     6,     7,     0,     8,     0,     0,     0,     0,
       9,    10,    11,    12,     0,     0,     0,   158,     0,    16,
      17,    18,   159,     0,     0,     0,     0,    22,     0,     0,
     160,   161,     0,   162,    24,     0,    25,     0,   163,     0,
      27,   164,    28,   165,   166,    29,    30,     0,   167,     0,
     168,    31,     0,     0,     0,     0,     0,   169,     0,    32,
     221,   170,     0,     0,     0,     0,   171,     0,   172,     0,
       0,   173,     0,     0,   174,     0,     0,     0,   175,   176,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     177,     0,   178,     0,     0,     0,   179,   180,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,    35,   181,    75,   220,     0,
       0,   182,    36,    37,     0,     0,     0,    86,   157,     6,
       7,    39,     8,     0,     0,   183,     0,     9,    10,    11,
      12,     0,     0,     0,   158,     0,    16,    17,    18,   159,
       0,     0,     0,     0,    22,     0,     0,   160,   161,     0,
     162,    24,     0,    25,     0,   163,     0,    27,   164,    28,
     165,   166,    29,    30,     0,   167,     0,   168,    31,     0,
       0,     0,     0,     0,   169,     0,    32,     0,   170,     0,
       0,     0,     0,   171,     0,   172,     0,     0,   173,     0,
       0,   174,     0,     0,     0,   175,   176,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   177,     0,   178,
       0,     0,     0,   179,   180,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    35,   181,    75,     0,     0,     0,   182,    36,
      37,     0,     0,   220,    86,     0,     0,     0,    39,   227,
       0,     0,   183,   157,     6,     7,     0,     8,     0,     0,
       0,     0,     9,    10,    11,    12,     0,     0,     0,   158,
       0,    16,    17,    18,   159,     0,     0,     0,     0,    22,
       0,     0,   160,   161,     0,   162,    24,     0,    25,     0,
     163,     0,    27,   164,    28,   165,   166,    29,    30,     0,
     167,     0,   168,    31,     0,     0,     0,     0,     0,   169,
       0,    32,     0,   170,     0,     0,     0,     0,   171,     0,
     172,     0,     0,   173,     0,     0,   174,     0,     0,     0,
     175,   176,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   177,     0,   178,     0,     0,     0,   179,   180,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    35,   181,    75,
       0,     0,     0,   182,    36,    37,     0,     0,   220,    86,
       0,     0,     0,    39,   374,     0,     0,   183,   157,     6,
       7,     0,     8,     0,     0,     0,     0,     9,    10,    11,
      12,     0,     0,     0,   158,     0,    16,    17,    18,   159,
       0,     0,     0,     0,    22,     0,     0,   160,   161,     0,
     162,    24,     0,    25,     0,   163,     0,    27,   164,    28,
     165,   166,    29,    30,     0,   167,     0,   168,    31,     0,
       0,     0,     0,     0,   169,     0,    32,     0,   170,     0,
       0,     0,     0,   171,     0,   172,     0,     0,   173,     0,
       0,   174,     0,     0,     0,   175,   176,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   177,     0,   178,
       0,     0,     0,   179,   180,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    35,   181,    75,     0,     0,     0,   182,    36,
      37,     0,     0,   220,    86,     0,     0,     0,    39,   375,
       0,     0,   183,   157,     6,     7,     0,     8,     0,     0,
       0,     0,     9,    10,    11,    12,     0,     0,     0,   158,
       0,    16,    17,    18,   159,     0,     0,     0,     0,    22,
       0,     0,   160,   161,     0,   162,    24,     0,    25,     0,
     163,     0,    27,   164,    28,   165,   166,    29,    30,     0,
     167,     0,   168,    31,     0,     0,     0,     0,     0,   169,
       0,    32,     0,   170,     0,     0,     0,     0,   171,     0,
     172,     0,     0,   173,     0,     0,   174,     0,     0,     0,
     175,   176,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   177,     0,   178,     0,     0,     0,   179,   180,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    35,   181,    75,
       0,     0,     0,   182,    36,    37,     2,     3,     0,    86,
       0,     0,     0,    39,   589,     4,     5,   183,     6,     7,
       0,     8,     0,     0,     0,     0,     9,    10,    11,    12,
       0,    13,    14,     0,    15,    16,    17,    18,     0,    19,
      20,    21,     0,    22,     0,     0,     0,     0,    23,     0,
      24,     0,    25,     0,     0,    26,    27,     0,    28,   291,
       0,    29,    30,     0,     0,     0,     0,    31,     0,     0,
       6,     7,     0,     8,     0,    32,     0,     0,     9,    10,
      11,    12,     0,    13,     0,     0,    15,    16,    17,    18,
       0,    19,    20,    21,     0,    22,   280,     0,     0,     0,
      23,     0,    24,     0,    25,     0,     0,    26,    27,     0,
      28,     0,    33,    29,    30,     0,     0,     0,     0,    31,
       0,     0,     0,     0,   489,   490,     0,    32,     0,     0,
      34,    35,   491,     0,     0,   492,   493,   494,    36,    37,
       0,    38,   495,     0,     0,     0,     0,    39,     0,     0,
       0,     0,     0,     0,   496,     0,     0,     0,     0,   497,
       0,     0,     0,   498,     0,     0,   499,     0,     0,     0,
       0,     0,     0,     0,     0,   500,   501,   157,     6,     7,
       0,     8,    34,    35,     0,     0,     9,    10,    11,    12,
       0,     0,     0,   158,     0,    16,    17,    18,   159,    39,
     292,     0,     0,    22,     0,     0,   160,   161,     0,   162,
      24,     0,    25,     0,   163,     0,    27,   164,    28,   165,
     166,    29,    30,     0,   167,     0,   168,    31,     0,     0,
       0,     0,     0,   169,     0,    32,     0,   170,     0,     0,
       0,     0,   171,     0,   172,     0,     0,   173,     0,     0,
     174,     0,     0,   502,   175,   176,     0,     0,     0,     0,
     503,     0,     0,     0,     0,     0,   177,     0,   178,     0,
       0,     0,   179,   180,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    35,   181,    75,     0,     0,     0,   182,     0,     0,
     209,     0,     0,    86,   157,     6,     7,    39,     8,     0,
       0,   183,     0,     9,    10,    11,    12,     0,     0,     0,
     158,     0,    16,    17,    18,   159,     0,     0,     0,     0,
      22,     0,     0,   160,   161,     0,   162,    24,     0,    25,
       0,   163,     0,    27,   164,    28,   165,   166,    29,    30,
       0,   167,     0,   168,    31,     0,     0,     0,     0,     0,
     169,     0,    32,     0,   170,     0,     0,     0,     0,   171,
       0,   172,     0,     0,   173,     0,     0,   174,     0,     0,
       0,   175,   176,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   177,     0,   178,     0,     0,     0,   179,
     180,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    19,    35,   181,
      75,     0,     0,     0,   182,     0,     0,     0,     0,     0,
      86,     0,     6,     7,    39,     8,     0,     0,   183,     0,
       9,    10,    11,    12,     0,     0,     0,     0,     0,    16,
      17,    18,   394,     0,     0,     0,   229,    22,   230,   231,
       0,   232,     0,   233,    24,     0,    25,     0,     0,     0,
      27,     0,    28,     0,   395,    29,    30,     0,     0,     0,
       0,    31,     0,     0,     0,     0,     0,     0,   239,    32,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   121,     0,     0,     0,    34,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   242,
     243,     0,   396,   397,     0,     0,     0,     0,   398,   399,
     245,   246,   247,   248,   249,     0,     0,   400,   401,     0,
     121,   252,     0,     0,     0,    35,     0,    75,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    39,   122,   123,   124,   125,   126,   127,   128,   129,
     130,   131,   132,   133,   134,   135,   136,   137,   138,   139,
     121,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     140,   141,     0,     0,     0,     0,   142,   429,   122,   123,
     124,   125,   126,   127,   128,   129,   130,   131,   132,   133,
     134,   135,   136,   137,   138,   139,   121,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   140,   141,     0,     0,
       0,     0,   142,     0,     0,     0,     0,     0,   122,   123,
     124,   125,   126,   127,   128,   129,   130,   131,   132,   133,
       0,     0,     0,     0,   229,   139,   230,   231,     0,   232,
       0,   233,     0,     0,   234,     0,   140,   141,   235,     0,
       0,     0,   142,   237,   122,   123,   124,   125,   126,   127,
     128,   129,   130,   131,   132,   133,   239,     0,     0,     0,
       0,   139,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   140,   141,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     474,     0,     0,     0,     0,     0,     0,     0,   245,   246,
     247,   248,   249,     0,     0,   250,   251,     0,     0,   252
};

static const yytype_int16 yycheck[] =
{
       1,     1,     8,    30,     1,    79,    39,    86,    86,   101,
     159,   101,    18,    59,    30,   177,   178,    73,   354,    25,
     182,    73,    74,    74,   149,    31,   149,   152,   244,   152,
     443,   193,   309,    78,   196,    80,   198,   118,   315,   201,
      85,     1,     1,    65,   321,   166,   151,   152,    81,    82,
      51,    16,   357,    51,   359,     1,   101,   362,     1,    90,
      50,    92,    52,    90,    24,    90,   112,    92,    92,    15,
     143,   141,   124,   124,    90,   120,   166,   450,     1,    69,
     105,   105,    25,   135,   135,    28,   159,    92,    33,   132,
     133,   162,    35,   149,   165,    38,    90,   128,    92,    42,
     101,   101,    25,   516,   101,    28,   479,   480,   481,   103,
      68,   117,    35,   106,   114,    38,   116,   139,   119,    42,
     125,   119,   141,   128,   127,   130,   127,   128,   129,   130,
     131,   132,   133,    16,   137,   136,   137,   138,   219,   132,
     133,   554,   135,   448,   102,   139,   101,   424,   425,   142,
      33,   141,   141,   526,   114,   114,   116,   116,   159,   114,
     106,   106,   127,   208,    92,   141,   166,   125,   106,   127,
     138,   139,   388,   218,   155,   156,   266,   590,   252,   124,
     225,   102,   307,   135,   136,    33,   132,   133,   141,   135,
     135,   136,   141,   143,   410,   411,   142,   135,   136,   142,
     128,   141,   130,   141,   125,    33,   127,    90,     4,    92,
     138,    97,    71,   210,    59,   114,    75,   116,   224,   142,
     226,    80,   228,   106,   224,   226,    97,   563,   349,   275,
     351,   106,    33,   510,   143,    83,    93,    85,    95,    96,
     156,   124,    90,   110,    92,   128,   113,   130,   115,   132,
     133,   307,   135,   136,   141,   106,   301,    85,   101,   129,
     135,   136,    90,    90,    92,    92,   266,   319,   319,   321,
     321,   114,     4,   116,   141,   114,   124,   116,   583,   138,
     139,   132,   133,   151,   135,   136,   152,   135,   147,    90,
      92,    92,   408,   409,   443,   135,   124,   156,   146,   158,
     356,   139,   103,   393,   356,   128,   431,   135,   431,     6,
       7,   312,   313,   314,   128,   316,   101,    14,   135,   320,
      17,    18,    19,   124,    90,   141,    92,   354,    62,    63,
      64,   141,    66,   378,   135,   136,    41,   103,   339,    36,
      93,    94,    95,    48,    41,   346,    51,   144,    45,   143,
     132,    48,   155,    58,   143,   355,    90,   143,    92,   158,
      57,    58,   135,     8,   143,    99,   440,   516,   144,   415,
     137,   445,   143,   143,   419,   431,   428,   428,   125,     1,
      62,    63,    64,   545,    66,   163,   164,    33,    10,   167,
      12,    13,   141,    15,    93,    94,    95,    96,    20,    21,
      22,    23,   143,    25,   135,   554,    28,    29,    30,    31,
      47,    33,    34,    35,   144,    37,    38,   143,   101,   549,
      42,   101,    44,   419,    46,   426,   116,    49,    50,    91,
      52,   551,   438,    55,    56,   436,   508,   160,   135,    61,
     266,   590,   443,    24,    90,   142,    92,    69,   522,   563,
     524,   467,   564,   165,   470,    90,   548,   168,   458,   458,
     106,   345,   542,   528,   543,   543,   584,   452,   542,    93,
      94,    95,    96,    93,    94,    95,    96,   356,   124,    -1,
      -1,    -1,   128,    -1,   130,    -1,   132,   133,    -1,   135,
     136,   497,    -1,   499,   495,   501,   110,    -1,    -1,   113,
      -1,   115,   124,   125,    -1,   119,   120,   121,   122,   123,
     584,    -1,   509,   546,    -1,   516,    -1,    -1,    -1,   141,
     142,    -1,    -1,    -1,    -1,    -1,    -1,   141,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   563,    -1,    -1,    -1,
      -1,   547,    -1,   549,    -1,    -1,    -1,   547,   549,    -1,
     551,   552,    -1,   554,    -1,    -1,    -1,    -1,    -1,     9,
      10,    11,    12,    13,    -1,    15,    -1,    -1,    -1,    -1,
      20,    21,    22,    23,    -1,    -1,    -1,    27,    28,    29,
      30,    31,    32,    33,    -1,    35,    -1,    37,    -1,   590,
      40,    41,    42,    43,    44,    -1,    46,    -1,    48,    49,
      50,    51,    52,    53,    54,    55,    56,    -1,    58,    -1,
      60,    61,    -1,    -1,    -1,    -1,    -1,    67,    -1,    69,
      -1,    71,    72,    -1,    74,    75,    76,    77,    78,    79,
      -1,    81,    82,    -1,    84,    -1,    86,    -1,    88,    89,
      90,    91,    92,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     100,    -1,   102,    -1,   104,    -1,   106,   107,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,   124,   125,   126,   127,   128,    -1,
     130,   131,   132,   133,    -1,   135,   136,   137,   138,    -1,
      -1,   141,    -1,    -1,    -1,   145,   146,   147,   148,   149,
     150,     1,    -1,   153,   154,    -1,    -1,   157,    -1,    -1,
      -1,    11,    12,    13,    -1,    15,    -1,    -1,    -1,    -1,
      20,    21,    22,    23,    -1,    -1,    -1,    27,    -1,    29,
      30,    31,    32,    -1,    -1,    -1,    -1,    37,    -1,    -1,
      40,    41,    -1,    43,    44,    -1,    46,    -1,    48,    -1,
      50,    51,    52,    53,    54,    55,    56,    -1,    58,    -1,
      60,    61,    -1,    -1,    -1,    -1,    -1,    67,    -1,    69,
      70,    71,    -1,    -1,    -1,    -1,    76,    -1,    78,    -1,
      -1,    81,    -1,    -1,    84,    -1,    -1,    -1,    88,    89,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     100,    -1,   102,    -1,    -1,    -1,   106,   107,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   125,   126,   127,     1,    -1,
      -1,   131,   132,   133,    -1,    -1,    -1,   137,    11,    12,
      13,   141,    15,    -1,    -1,   145,    -1,    20,    21,    22,
      23,    -1,    -1,    -1,    27,    -1,    29,    30,    31,    32,
      -1,    -1,    -1,    -1,    37,    -1,    -1,    40,    41,    -1,
      43,    44,    -1,    46,    -1,    48,    -1,    50,    51,    52,
      53,    54,    55,    56,    -1,    58,    -1,    60,    61,    -1,
      -1,    -1,    -1,    -1,    67,    -1,    69,    -1,    71,    -1,
      -1,    -1,    -1,    76,    -1,    78,    -1,    -1,    81,    -1,
      -1,    84,    -1,    -1,    -1,    88,    89,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   100,    -1,   102,
      -1,    -1,    -1,   106,   107,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   125,   126,   127,    -1,    -1,    -1,   131,   132,
     133,    -1,    -1,     1,   137,    -1,    -1,    -1,   141,   142,
      -1,    -1,   145,    11,    12,    13,    -1,    15,    -1,    -1,
      -1,    -1,    20,    21,    22,    23,    -1,    -1,    -1,    27,
      -1,    29,    30,    31,    32,    -1,    -1,    -1,    -1,    37,
      -1,    -1,    40,    41,    -1,    43,    44,    -1,    46,    -1,
      48,    -1,    50,    51,    52,    53,    54,    55,    56,    -1,
      58,    -1,    60,    61,    -1,    -1,    -1,    -1,    -1,    67,
      -1,    69,    -1,    71,    -1,    -1,    -1,    -1,    76,    -1,
      78,    -1,    -1,    81,    -1,    -1,    84,    -1,    -1,    -1,
      88,    89,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   100,    -1,   102,    -1,    -1,    -1,   106,   107,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   125,   126,   127,
      -1,    -1,    -1,   131,   132,   133,    -1,    -1,     1,   137,
      -1,    -1,    -1,   141,   142,    -1,    -1,   145,    11,    12,
      13,    -1,    15,    -1,    -1,    -1,    -1,    20,    21,    22,
      23,    -1,    -1,    -1,    27,    -1,    29,    30,    31,    32,
      -1,    -1,    -1,    -1,    37,    -1,    -1,    40,    41,    -1,
      43,    44,    -1,    46,    -1,    48,    -1,    50,    51,    52,
      53,    54,    55,    56,    -1,    58,    -1,    60,    61,    -1,
      -1,    -1,    -1,    -1,    67,    -1,    69,    -1,    71,    -1,
      -1,    -1,    -1,    76,    -1,    78,    -1,    -1,    81,    -1,
      -1,    84,    -1,    -1,    -1,    88,    89,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   100,    -1,   102,
      -1,    -1,    -1,   106,   107,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   125,   126,   127,    -1,    -1,    -1,   131,   132,
     133,    -1,    -1,     1,   137,    -1,    -1,    -1,   141,   142,
      -1,    -1,   145,    11,    12,    13,    -1,    15,    -1,    -1,
      -1,    -1,    20,    21,    22,    23,    -1,    -1,    -1,    27,
      -1,    29,    30,    31,    32,    -1,    -1,    -1,    -1,    37,
      -1,    -1,    40,    41,    -1,    43,    44,    -1,    46,    -1,
      48,    -1,    50,    51,    52,    53,    54,    55,    56,    -1,
      58,    -1,    60,    61,    -1,    -1,    -1,    -1,    -1,    67,
      -1,    69,    -1,    71,    -1,    -1,    -1,    -1,    76,    -1,
      78,    -1,    -1,    81,    -1,    -1,    84,    -1,    -1,    -1,
      88,    89,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   100,    -1,   102,    -1,    -1,    -1,   106,   107,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   125,   126,   127,
      -1,    -1,    -1,   131,   132,   133,     0,     1,    -1,   137,
      -1,    -1,    -1,   141,   142,     9,    10,   145,    12,    13,
      -1,    15,    -1,    -1,    -1,    -1,    20,    21,    22,    23,
      -1,    25,    26,    -1,    28,    29,    30,    31,    -1,    33,
      34,    35,    -1,    37,    -1,    -1,    -1,    -1,    42,    -1,
      44,    -1,    46,    -1,    -1,    49,    50,    -1,    52,     1,
      -1,    55,    56,    -1,    -1,    -1,    -1,    61,    -1,    -1,
      12,    13,    -1,    15,    -1,    69,    -1,    -1,    20,    21,
      22,    23,    -1,    25,    -1,    -1,    28,    29,    30,    31,
      -1,    33,    34,    35,    -1,    37,    38,    -1,    -1,    -1,
      42,    -1,    44,    -1,    46,    -1,    -1,    49,    50,    -1,
      52,    -1,   106,    55,    56,    -1,    -1,    -1,    -1,    61,
      -1,    -1,    -1,    -1,     6,     7,    -1,    69,    -1,    -1,
     124,   125,    14,    -1,    -1,    17,    18,    19,   132,   133,
      -1,   135,    24,    -1,    -1,    -1,    -1,   141,    -1,    -1,
      -1,    -1,    -1,    -1,    36,    -1,    -1,    -1,    -1,    41,
      -1,    -1,    -1,    45,    -1,    -1,    48,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    57,    58,    11,    12,    13,
      -1,    15,   124,   125,    -1,    -1,    20,    21,    22,    23,
      -1,    -1,    -1,    27,    -1,    29,    30,    31,    32,   141,
     142,    -1,    -1,    37,    -1,    -1,    40,    41,    -1,    43,
      44,    -1,    46,    -1,    48,    -1,    50,    51,    52,    53,
      54,    55,    56,    -1,    58,    -1,    60,    61,    -1,    -1,
      -1,    -1,    -1,    67,    -1,    69,    -1,    71,    -1,    -1,
      -1,    -1,    76,    -1,    78,    -1,    -1,    81,    -1,    -1,
      84,    -1,    -1,   135,    88,    89,    -1,    -1,    -1,    -1,
     142,    -1,    -1,    -1,    -1,    -1,   100,    -1,   102,    -1,
      -1,    -1,   106,   107,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,   125,   126,   127,    -1,    -1,    -1,   131,    -1,    -1,
     134,    -1,    -1,   137,    11,    12,    13,   141,    15,    -1,
      -1,   145,    -1,    20,    21,    22,    23,    -1,    -1,    -1,
      27,    -1,    29,    30,    31,    32,    -1,    -1,    -1,    -1,
      37,    -1,    -1,    40,    41,    -1,    43,    44,    -1,    46,
      -1,    48,    -1,    50,    51,    52,    53,    54,    55,    56,
      -1,    58,    -1,    60,    61,    -1,    -1,    -1,    -1,    -1,
      67,    -1,    69,    -1,    71,    -1,    -1,    -1,    -1,    76,
      -1,    78,    -1,    -1,    81,    -1,    -1,    84,    -1,    -1,
      -1,    88,    89,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,   100,    -1,   102,    -1,    -1,    -1,   106,
     107,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    33,   125,   126,
     127,    -1,    -1,    -1,   131,    -1,    -1,    -1,    -1,    -1,
     137,    -1,    12,    13,   141,    15,    -1,    -1,   145,    -1,
      20,    21,    22,    23,    -1,    -1,    -1,    -1,    -1,    29,
      30,    31,    68,    -1,    -1,    -1,    72,    37,    74,    75,
      -1,    77,    -1,    79,    44,    -1,    46,    -1,    -1,    -1,
      50,    -1,    52,    -1,    90,    55,    56,    -1,    -1,    -1,
      -1,    61,    -1,    -1,    -1,    -1,    -1,    -1,   104,    69,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    49,    -1,    -1,    -1,   124,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   135,
     136,    -1,   138,   139,    -1,    -1,    -1,    -1,   144,   145,
     146,   147,   148,   149,   150,    -1,    -1,   153,   154,    -1,
      49,   157,    -1,    -1,    -1,   125,    -1,   127,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,   141,   107,   108,   109,   110,   111,   112,   113,   114,
     115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
      49,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     135,   136,    -1,    -1,    -1,    -1,   141,   142,   107,   108,
     109,   110,   111,   112,   113,   114,   115,   116,   117,   118,
     119,   120,   121,   122,   123,   124,    49,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   135,   136,    -1,    -1,
      -1,    -1,   141,    -1,    -1,    -1,    -1,    -1,   107,   108,
     109,   110,   111,   112,   113,   114,   115,   116,   117,   118,
      -1,    -1,    -1,    -1,    72,   124,    74,    75,    -1,    77,
      -1,    79,    -1,    -1,    82,    -1,   135,   136,    86,    -1,
      -1,    -1,   141,    91,   107,   108,   109,   110,   111,   112,
     113,   114,   115,   116,   117,   118,   104,    -1,    -1,    -1,
      -1,   124,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   135,   136,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     138,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   146,   147,
     148,   149,   150,    -1,    -1,   153,   154,    -1,    -1,   157
};

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

#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 465 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
	;}
    break;

  case 4:
#line 467 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
	;}
    break;

  case 5:
#line 469 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->error_level_ = 1;
	;}
    break;

  case 6:
#line 472 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->error_level_ = 1;
	;}
    break;

  case 7:
#line 479 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(2) - (2)].scm); ;}
    break;

  case 8:
#line 483 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$defaultheader"), (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 9:
#line 486 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 492 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Book *bookpart = (yyvsp[(1) - (1)].book);
		SCM proc = PARSER->lexer_->lookup_identifier ("toplevel-bookpart-handler");
		scm_call_2 (proc, PARSER->self_scm (), bookpart->self_scm ());
		bookpart->unprotect ();
	;}
    break;

  case 11:
#line 498 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 12:
#line 505 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 13:
#line 510 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 14:
#line 514 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 15:
#line 518 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 18:
#line 541 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = get_header (PARSER);
		PARSER->lexer_->add_scope ((yyval.scm));
	;}
    break;

  case 19:
#line 545 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		
	;}
    break;

  case 20:
#line 551 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = PARSER->lexer_->remove_scope ();
	;}
    break;

  case 21:
#line 560 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 22:
#line 561 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 23:
#line 565 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 24:
#line 576 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { ;}
    break;

  case 25:
#line 581 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].score)->self_scm ();
		(yyvsp[(1) - (1)].score)->unprotect ();
	;}
    break;

  case 26:
#line 585 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].book)->self_scm ();
		(yyvsp[(1) - (1)].book)->unprotect ();
	;}
    break;

  case 27:
#line 589 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].book)->self_scm ();
		(yyvsp[(1) - (1)].book)->unprotect ();
	;}
    break;

  case 28:
#line 593 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].outputdef)->self_scm ();
		(yyvsp[(1) - (1)].outputdef)->unprotect ();
	;}
    break;

  case 29:
#line 597 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 30:
#line 600 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 31:
#line 612 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 32:
#line 615 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
 		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 33:
#line 618 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 34:
#line 621 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 35:
#line 624 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 36:
#line 627 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 37:
#line 634 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (4)].scm);
	;}
    break;

  case 38:
#line 640 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = Context_def::make_scm ();
		unsmob_context_def ((yyval.scm))->origin ()->set_spot ((yyloc));
	;}
    break;

  case 39:
#line 644 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
		unsmob_context_def ((yyval.scm))->origin ()->set_spot ((yyloc));
	;}
    break;

  case 40:
#line 648 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 41:
#line 659 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		unsmob_context_def ((yyval.scm))->add_context_mod ((yyvsp[(2) - (2)].scm));		
	;}
    break;

  case 42:
#line 667 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book) = (yyvsp[(3) - (4)].book);
		pop_paper (PARSER);
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$current-book"), SCM_BOOL_F);
	;}
    break;

  case 43:
#line 678 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book) = new Book;
		init_papers (PARSER);
		(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 ();
		push_paper (PARSER, (yyval.book)->paper_);
		(yyval.book)->header_ = PARSER->lexer_->lookup_identifier ("$defaultheader"); 
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$current-book"), (yyval.book)->self_scm ());
		PARSER->lexer_->set_identifier (ly_symbol2scm ("book-output-suffix"), SCM_BOOL_F);
		PARSER->lexer_->set_identifier (ly_symbol2scm ("book-filename"), SCM_BOOL_F);
	;}
    break;

  case 44:
#line 690 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book) = unsmob_book ((yyvsp[(1) - (1)].scm));
		(yyval.book)->protect ();
		(yyval.book)->origin ()->set_spot ((yyloc));
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$current-book"), (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 45:
#line 696 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->paper_ = (yyvsp[(2) - (2)].outputdef);
		(yyvsp[(2) - (2)].outputdef)->unprotect ();
		set_paper (PARSER, (yyvsp[(2) - (2)].outputdef));
	;}
    break;

  case 46:
#line 701 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Book *bookpart = (yyvsp[(2) - (2)].book);
		SCM proc = PARSER->lexer_->lookup_identifier ("book-bookpart-handler");
		scm_call_2 (proc, (yyval.book)->self_scm (), bookpart->self_scm ());
		bookpart->unprotect ();
	;}
    break;

  case 47:
#line 707 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 48:
#line 713 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 49:
#line 718 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 50:
#line 722 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 51:
#line 726 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->header_ = (yyvsp[(2) - (2)].scm);
	;}
    break;

  case 52:
#line 729 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->paper_ = 0;
		(yyval.book)->scores_ = SCM_EOL;
		(yyval.book)->bookparts_ = SCM_EOL;
	;}
    break;

  case 53:
#line 734 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->user_key_ = ly_scm2string ((yyvsp[(2) - (2)].scm));
	;}
    break;

  case 54:
#line 740 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book) = (yyvsp[(3) - (4)].book);
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$current-bookpart"), SCM_BOOL_F);
	;}
    break;

  case 55:
#line 747 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book) = new Book;
		(yyval.book)->origin ()->set_spot ((yyloc));
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$current-bookpart"), (yyval.book)->self_scm ());
	;}
    break;

  case 56:
#line 752 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book) = unsmob_book ((yyvsp[(1) - (1)].scm));
		(yyval.book)->protect ();
		(yyval.book)->origin ()->set_spot ((yyloc));
		PARSER->lexer_->set_identifier (ly_symbol2scm ("$current-bookpart"), (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 57:
#line 758 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->paper_ = (yyvsp[(2) - (2)].outputdef);
		(yyvsp[(2) - (2)].outputdef)->unprotect ();
	;}
    break;

  case 58:
#line 762 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Score *score = (yyvsp[(2) - (2)].score);
		SCM proc = PARSER->lexer_->lookup_identifier ("bookpart-score-handler");
		scm_call_2 (proc, (yyval.book)->self_scm (), score->self_scm ());
		score->unprotect ();
	;}
    break;

  case 59:
#line 768 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Music *music = unsmob_music ((yyvsp[(2) - (2)].scm));
		SCM proc = PARSER->lexer_->lookup_identifier ("bookpart-music-handler");
		scm_call_3 (proc, PARSER->self_scm (), (yyval.book)->self_scm (), music->self_scm ());
	;}
    break;

  case 60:
#line 773 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		SCM proc = PARSER->lexer_->lookup_identifier ("bookpart-text-handler");
		scm_call_2 (proc, (yyval.book)->self_scm (), scm_list_1 ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 61:
#line 777 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		SCM proc = PARSER->lexer_->lookup_identifier ("bookpart-text-handler");
		scm_call_2 (proc, (yyval.book)->self_scm (), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 62:
#line 781 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->header_ = (yyvsp[(2) - (2)].scm);
	;}
    break;

  case 63:
#line 784 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->paper_ = 0;
		(yyval.book)->scores_ = SCM_EOL;
	;}
    break;

  case 64:
#line 788 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.book)->user_key_ = ly_scm2string ((yyvsp[(2) - (2)].scm));
	;}
    break;

  case 65:
#line 794 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.score) = (yyvsp[(3) - (4)].score);
	;}
    break;

  case 66:
#line 800 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 67:
#line 810 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.score) = unsmob_score ((yyvsp[(1) - (1)].scm));
		(yyval.score)->protect ();
		(yyval.score)->origin ()->set_spot ((yyloc));
	;}
    break;

  case 68:
#line 815 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.score)->user_key_ = ly_scm2string ((yyvsp[(2) - (2)].scm));
	;}
    break;

  case 69:
#line 818 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.score)->set_header ((yyvsp[(2) - (2)].scm));
	;}
    break;

  case 70:
#line 821 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 71:
#line 833 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.score)->error_found_ = true;
	;}
    break;

  case 72:
#line 844 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 73:
#line 857 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.outputdef) = (yyvsp[(1) - (2)].outputdef);

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

  case 74:
#line 866 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.outputdef) = get_paper (PARSER);
		(yyval.outputdef)->input_origin_ = (yyloc);
		PARSER->lexer_->add_scope ((yyval.outputdef)->scope_);
	;}
    break;

  case 75:
#line 871 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Output_def *p = get_midi (PARSER);
		(yyval.outputdef) = p;
		PARSER->lexer_->add_scope (p->scope_);
	;}
    break;

  case 76:
#line 876 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Output_def *p = get_layout (PARSER);

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

  case 77:
#line 885 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->push_initial_state ();
		(yyval.outputdef) = (yyvsp[(1) - (1)].outputdef);
	;}
    break;

  case 78:
#line 892 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.outputdef) = (yyvsp[(1) - (2)].outputdef);
		(yyval.outputdef)->input_origin_.set_spot ((yyloc));
	;}
    break;

  case 79:
#line 896 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 80:
#line 906 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {

	;}
    break;

  case 81:
#line 909 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		assign_context_def ((yyval.outputdef), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 82:
#line 912 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {

	;}
    break;

  case 83:
#line 918 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 84:
#line 921 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 85:
#line 924 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 86:
#line 927 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("tempoText", (yyloc), make_simple_markup((yyvsp[(2) - (2)].scm)) );
	;}
    break;

  case 87:
#line 930 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("tempoText", (yyloc), (yyvsp[(2) - (2)].scm) );
	;}
    break;

  case 88:
#line 943 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons (SCM_EOL, SCM_EOL);
	;}
    break;

  case 89:
#line 946 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 90:
#line 956 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {

	;}
    break;

  case 91:
#line 959 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 94:
#line 981 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 95:
#line 984 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_car ((yyvsp[(3) - (4)].scm));
	;}
    break;

  case 96:
#line 992 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 97:
#line 998 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("sequential-music", (yyloc), scm_car ((yyvsp[(3) - (4)].scm)));
	;}
    break;

  case 98:
#line 1001 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("sequential-music", (yyloc), scm_car ((yyvsp[(2) - (3)].scm)));
	;}
    break;

  case 99:
#line 1007 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("simultaneous-music", (yyloc), scm_car ((yyvsp[(3) - (4)].scm)));
	;}
    break;

  case 100:
#line 1010 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("simultaneous-music", (yyloc), scm_car ((yyvsp[(2) - (3)].scm)));
	;}
    break;

  case 105:
#line 1023 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 106:
#line 1024 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { PARSER->lexer_->push_initial_state (); ;}
    break;

  case 107:
#line 1026 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->pop_state ();
		(yyval.scm) = (yyvsp[(4) - (5)].scm);
	;}
    break;

  case 108:
#line 1033 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 109:
#line 1034 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		 (yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 110:
#line 1040 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 111:
#line 1041 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 112:
#line 1045 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 113:
#line 1046 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 116:
#line 1059 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 117:
#line 1065 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 118:
#line 1068 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 119:
#line 1071 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 120:
#line 1076 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 121:
#line 1079 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 122:
#line 1082 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 123:
#line 1085 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyvsp[(2) - (3)].scm));
	;}
    break;

  case 124:
#line 1090 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 127:
#line 1100 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 128:
#line 1107 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 129:
#line 1108 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(2) - (2)].scm);
	;}
    break;

  case 130:
#line 1115 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = run_music_function (PARSER, (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 131:
#line 1118 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 132:
#line 1121 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 133:
#line 1125 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
                (yyval.scm) = MAKE_SYNTAX ("time-scaled-music", (yyloc), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 134:
#line 1128 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 135:
#line 1129 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 136:
#line 1135 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 137:
#line 1146 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 138:
#line 1154 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 139:
#line 1155 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 140:
#line 1159 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 141:
#line 1166 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 142:
#line 1172 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->push_figuredbass_state ();

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

  case 143:
#line 1177 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 144:
#line 1186 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { PARSER->lexer_->push_lyric_state ();
		(yyval.scm) = ly_symbol2scm ("lyrics");
	;}
    break;

  case 145:
#line 1192 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 146:
#line 1198 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->push_figuredbass_state ();

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

  case 147:
#line 1203 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 148:
#line 1211 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { PARSER->lexer_->push_lyric_state ();
		(yyval.scm) = ly_symbol2scm ("Lyrics");
	;}
    break;

  case 149:
#line 1218 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 150:
#line 1222 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Pitch middle_c (0, 0, 0);
		(yyval.scm) = make_music_relative (middle_c, (yyvsp[(2) - (2)].scm), (yyloc));
	;}
    break;

  case 151:
#line 1229 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { PARSER->lexer_->push_lyric_state (); ;}
    break;

  case 152:
#line 1231 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 153:
#line 1238 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->push_lyric_state ();
	;}
    break;

  case 154:
#line 1240 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->pop_state ();
		(yyval.scm) = scm_cons ((yyvsp[(4) - (4)].scm), (yyvsp[(1) - (4)].scm));
	;}
    break;

  case 155:
#line 1247 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 156:
#line 1250 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->push_lyric_state ();
	;}
    break;

  case 157:
#line 1252 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 158:
#line 1259 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 159:
#line 1266 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(1) - (1)].scm), SCM_EOL);
	;}
    break;

  case 160:
#line 1269 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 161:
#line 1275 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(1) - (1)].scm), SCM_EOL);
	;}
    break;

  case 162:
#line 1281 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 163:
#line 1285 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 (ly_symbol2scm ("unset"),
			scm_string_to_symbol ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 164:
#line 1289 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 165:
#line 1294 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 166:
#line 1301 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("consists"); ;}
    break;

  case 167:
#line 1302 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("remove"); ;}
    break;

  case 168:
#line 1304 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("accepts"); ;}
    break;

  case 169:
#line 1305 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("default-child"); ;}
    break;

  case 170:
#line 1306 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("denies"); ;}
    break;

  case 171:
#line 1308 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("alias"); ;}
    break;

  case 172:
#line 1309 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("translator-type"); ;}
    break;

  case 173:
#line 1310 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("description"); ;}
    break;

  case 174:
#line 1311 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("context-name"); ;}
    break;

  case 175:
#line 1315 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 176:
#line 1316 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 177:
#line 1322 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 178:
#line 1331 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 179:
#line 1338 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 180:
#line 1345 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 181:
#line 1351 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 182:
#line 1357 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 183:
#line 1365 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 184:
#line 1368 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 185:
#line 1374 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 186:
#line 1377 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 187:
#line 1380 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_string_append (scm_list_2 ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm)));
	;}
    break;

  case 188:
#line 1385 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 189:
#line 1388 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 190:
#line 1391 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 191:
#line 1396 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 192:
#line 1399 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 193:
#line 1402 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 194:
#line 1405 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 195:
#line 1408 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 196:
#line 1411 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 197:
#line 1425 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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);
		PARSER->lexer_->chord_repetition_.last_chord_ = (yyval.scm);
	;}
    break;

  case 198:
#line 1435 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Input i;
		i.set_location ((yylsp[(1) - (3)]), (yylsp[(3) - (3)]));
		(yyval.scm) = MAKE_SYNTAX ("repetition-chord", i,
				  PARSER->lexer_->chord_repetition_.last_chord_,
				  PARSER->lexer_->chord_repetition_.repetition_function_,
				  (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 199:
#line 1443 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 201:
#line 1449 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		PARSER->lexer_->chord_repetition_.last_chord_ = (yyval.scm);
	;}
    break;

  case 202:
#line 1457 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 203:
#line 1475 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("event-chord", (yyloc), scm_reverse_x ((yyvsp[(2) - (3)].scm), SCM_EOL));
	;}
    break;

  case 204:
#line 1481 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 205:
#line 1482 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 206:
#line 1489 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 207:
#line 1514 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 208:
#line 1525 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { 
		(yyval.scm) = run_music_function (PARSER, (yyvsp[(1) - (1)].scm));
	;}
    break;

  case 209:
#line 1530 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 210:
#line 1543 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 211:
#line 1546 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 212:
#line 1555 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 213:
#line 1558 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 214:
#line 1564 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 215:
#line 1567 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("skip-music", (yyloc), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 216:
#line 1570 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 217:
#line 1575 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 218:
#line 1580 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("voice-separator", (yyloc), SCM_UNDEFINED);
	;}
    break;

  case 219:
#line 1583 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 220:
#line 1597 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 221:
#line 1603 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 222:
#line 1608 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 223:
#line 1616 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = MY_MAKE_MUSIC ("PesOrFlexaEvent", (yyloc))->unprotect ();
	;}
    break;

  case 224:
#line 1619 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Music *m = MY_MAKE_MUSIC ("MarkEvent", (yyloc));
		(yyval.scm) = m->unprotect ();
	;}
    break;

  case 225:
#line 1623 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 226:
#line 1626 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Music *key = MY_MAKE_MUSIC ("KeyChangeEvent", (yyloc));
		(yyval.scm) = key->unprotect ();
	;}
    break;

  case 227:
#line 1630 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 228:
#line 1648 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 229:
#line 1651 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 230:
#line 1658 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 231:
#line 1661 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = run_music_function (PARSER, (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 232:
#line 1664 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 233:
#line 1669 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 234:
#line 1674 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 235:
#line 1682 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 237:
#line 1694 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 238:
#line 1702 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("bracketOpenSymbol");
	;}
    break;

  case 239:
#line 1705 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("bracketCloseSymbol"); 
	;}
    break;

  case 240:
#line 1708 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("tildeSymbol");
	;}
    break;

  case 241:
#line 1711 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("parenthesisOpenSymbol");
	;}
    break;

  case 242:
#line 1714 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("parenthesisCloseSymbol");
	;}
    break;

  case 243:
#line 1717 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedExclamationSymbol");
	;}
    break;

  case 244:
#line 1720 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedParenthesisOpenSymbol");
	;}
    break;

  case 245:
#line 1723 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedParenthesisCloseSymbol");
	;}
    break;

  case 246:
#line 1726 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedBiggerSymbol");
	;}
    break;

  case 247:
#line 1729 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("escapedSmallerSymbol");
	;}
    break;

  case 248:
#line 1735 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 249:
#line 1749 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 250:
#line 1752 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 251:
#line 1760 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 252:
#line 1763 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 253:
#line 1774 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = SCM_EOL; ;}
    break;

  case 254:
#line 1775 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int (0); ;}
    break;

  case 255:
#line 1776 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int (-(yyvsp[(2) - (2)].i)); ;}
    break;

  case 256:
#line 1777 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int ((yyvsp[(2) - (2)].i)); ;}
    break;

  case 257:
#line 1781 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i) = 1;
	;}
    break;

  case 258:
#line 1784 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i) ++;
	;}
    break;

  case 259:
#line 1790 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i) = 1;
	;}
    break;

  case 260:
#line 1793 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i)++;
	;}
    break;

  case 261:
#line 1799 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 262:
#line 1802 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 263:
#line 1807 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 264:
#line 1819 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 265:
#line 1822 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 266:
#line 1827 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 267:
#line 1836 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 270:
#line 1847 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 271:
#line 1852 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 272:
#line 1858 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 273:
#line 1866 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Hat");
	;}
    break;

  case 274:
#line 1869 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Plus");
	;}
    break;

  case 275:
#line 1872 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Dash");
	;}
    break;

  case 276:
#line 1875 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Bar");
	;}
    break;

  case 277:
#line 1878 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Larger");
	;}
    break;

  case 278:
#line 1881 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Dot");
	;}
    break;

  case 279:
#line 1884 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_locale_string ("Underscore");
	;}
    break;

  case 280:
#line 1890 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) = DOWN; ;}
    break;

  case 281:
#line 1891 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) = UP; ;}
    break;

  case 282:
#line 1892 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) = CENTER; ;}
    break;

  case 283:
#line 1897 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 284:
#line 1903 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 285:
#line 1909 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Duration dd = PARSER->default_duration_;
		(yyval.scm) = dd.smobbed_copy ();
	;}
    break;

  case 286:
#line 1913 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
		PARSER->default_duration_ = *unsmob_duration ((yyval.scm));
	;}
    break;

  case 287:
#line 1920 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 288:
#line 1929 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 289:
#line 1938 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 290:
#line 1941 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = unsmob_duration ((yyval.scm))->compressed ( (yyvsp[(3) - (3)].i)) .smobbed_copy ();
	;}
    break;

  case 291:
#line 1944 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 292:
#line 1952 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 293:
#line 1953 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons (scm_from_int ((yyvsp[(1) - (3)].i)), scm_from_int ((yyvsp[(3) - (3)].i)));
	;}
    break;

  case 294:
#line 1959 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i) = 0;
	;}
    break;

  case 295:
#line 1962 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i) ++;
	;}
    break;

  case 296:
#line 1968 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i) = 0;
	;}
    break;

  case 297:
#line 1971 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 298:
#line 1979 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 299:
#line 1982 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 300:
#line 1985 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 301:
#line 1986 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = (yyvsp[(1) - (1)].scm); ;}
    break;

  case 302:
#line 1990 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_rational2scm (FLAT_ALTERATION); ;}
    break;

  case 303:
#line 1991 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = ly_rational2scm (SHARP_ALTERATION); ;}
    break;

  case 304:
#line 1992 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int (0); ;}
    break;

  case 305:
#line 1996 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		Music *bfr = MY_MAKE_MUSIC ("BassFigureEvent", (yyloc));
		(yyval.scm) = bfr->unprotect ();
	;}
    break;

  case 306:
#line 2000 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 307:
#line 2011 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 308:
#line 2015 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 309:
#line 2026 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 310:
#line 2049 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("plus");
	;}
    break;

  case 311:
#line 2052 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("exclamation");
	;}
    break;

  case 312:
#line 2055 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("slash");
	;}
    break;

  case 313:
#line 2058 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("backslash");
	;}
    break;

  case 314:
#line 2064 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 315:
#line 2067 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(2) - (2)].scm);
		unsmob_music ((yyval.scm))->set_property ("bracket-start", SCM_BOOL_T);
	;}
    break;

  case 316:
#line 2074 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;
	;}
    break;

  case 317:
#line 2077 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 318:
#line 2083 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(2) - (3)].scm), SCM_EOL);
	;}
    break;

  case 319:
#line 2090 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) = 0; ;}
    break;

  case 320:
#line 2091 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) = 1; ;}
    break;

  case 321:
#line 2095 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 322:
#line 2121 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 323:
#line 2128 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 324:
#line 2141 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 325:
#line 2153 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 326:
#line 2156 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 327:
#line 2161 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 328:
#line 2171 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 329:
#line 2174 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 330:
#line 2180 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_elements ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm), SCM_EOL);
	;}
    break;

  case 331:
#line 2183 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 332:
#line 2190 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = SCM_EOL;		
	;}
    break;

  case 333:
#line 2193 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyval.scm));
	;}
    break;

  case 334:
#line 2199 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("chord-colon");
	;}
    break;

  case 335:
#line 2202 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("chord-caret");
	;}
    break;

  case 336:
#line 2205 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
 		(yyval.scm) = scm_list_2 (ly_symbol2scm ("chord-slash"), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 337:
#line 2208 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 (ly_symbol2scm ("chord-bass"), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 338:
#line 2214 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 339:
#line 2217 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(1) - (1)].scm), SCM_EOL);
	;}
    break;

  case 340:
#line 2220 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 341:
#line 2226 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = scm_cons ((yyvsp[(1) - (1)].scm), SCM_EOL); ;}
    break;

  case 342:
#line 2227 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(3) - (3)].scm), (yyval.scm));
	;}
    break;

  case 343:
#line 2233 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (1)].i), 0);
        ;}
    break;

  case 344:
#line 2236 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (2)].i), SHARP_ALTERATION);
	;}
    break;

  case 345:
#line 2239 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (2)].i), FLAT_ALTERATION);
	;}
    break;

  case 346:
#line 2251 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_sum ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 347:
#line 2254 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_difference ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 349:
#line 2261 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 350:
#line 2264 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_product ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 351:
#line 2267 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_divide ((yyvsp[(1) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 352:
#line 2273 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { /* %prec UNARY_MINUS */
		(yyval.scm) = scm_difference ((yyvsp[(2) - (2)].scm), SCM_UNDEFINED);
	;}
    break;

  case 354:
#line 2281 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i));
	;}
    break;

  case 355:
#line 2284 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 356:
#line 2287 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 357:
#line 2290 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 358:
#line 2293 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_from_double ((yyvsp[(1) - (2)].i) *scm_to_double ((yyvsp[(2) - (2)].scm)));
	;}
    break;

  case 359:
#line 2300 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
			(yyval.i) = (yyvsp[(1) - (1)].i);
	;}
    break;

  case 360:
#line 2303 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.i) = (yyvsp[(1) - (1)].i);
	;}
    break;

  case 361:
#line 2309 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.scm) = scm_from_int ((yyvsp[(1) - (1)].i)); ;}
    break;

  case 362:
#line 2310 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 363:
#line 2317 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) = 0; ;}
    break;

  case 364:
#line 2318 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) ++; ;}
    break;

  case 365:
#line 2322 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) = 0; ;}
    break;

  case 366:
#line 2323 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { (yyval.i) ++; ;}
    break;

  case 367:
#line 2331 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 368:
#line 2335 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { PARSER->lexer_->push_markup_state (); ;}
    break;

  case 369:
#line 2336 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (3)].scm);
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 370:
#line 2344 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { PARSER->lexer_->push_markup_state (); ;}
    break;

  case 371:
#line 2345 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (3)].scm);
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 372:
#line 2352 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 373:
#line 2356 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { PARSER->lexer_->push_markup_state (); ;}
    break;

  case 374:
#line 2357 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(3) - (3)].scm);
		PARSER->lexer_->pop_state ();
	;}
    break;

  case 375:
#line 2364 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    { 
		(yyval.scm) = scm_list_2 (ly_lily_module_constant ("line-markup"),  (yyvsp[(1) - (1)].scm)); 
	;}
    break;

  case 376:
#line 2367 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 377:
#line 2370 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 378:
#line 2376 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 379:
#line 2379 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 380:
#line 2382 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 381:
#line 2388 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 382:
#line 2395 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_reverse_x ((yyvsp[(2) - (3)].scm), SCM_EOL);
	;}
    break;

  case 383:
#line 2401 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {  (yyval.scm) = SCM_EOL; ;}
    break;

  case 384:
#line 2402 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 385:
#line 2405 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 386:
#line 2411 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 387:
#line 2414 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 388:
#line 2417 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 389:
#line 2420 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 390:
#line 2423 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 391:
#line 2429 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 392:
#line 2432 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 393:
#line 2435 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 394:
#line 2441 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 395:
#line 2444 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_cons ((yyvsp[(2) - (2)].scm), (yyvsp[(1) - (2)].scm));
	;}
    break;

  case 396:
#line 2450 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = make_simple_markup ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 397:
#line 2453 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 398:
#line 2456 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 399:
#line 2459 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;

  case 400:
#line 2462 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("pitchnames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));
	;}
    break;

  case 401:
#line 2465 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 402:
#line 2471 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm), (yyvsp[(2) - (2)].scm));
	;}
    break;

  case 403:
#line 2474 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 404:
#line 2477 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 405:
#line 2480 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 406:
#line 2483 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_5 ((yyvsp[(1) - (5)].scm), (yyvsp[(2) - (5)].scm), (yyvsp[(3) - (5)].scm), (yyvsp[(4) - (5)].scm), (yyvsp[(5) - (5)].scm));
	;}
    break;

  case 407:
#line 2486 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_1 ((yyvsp[(1) - (1)].scm));
	;}
    break;

  case 408:
#line 2489 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_2 ((yyvsp[(1) - (2)].scm),(yyvsp[(2) - (2)].scm));
	;}
    break;

  case 409:
#line 2492 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = scm_list_3 ((yyvsp[(1) - (3)].scm), (yyvsp[(2) - (3)].scm), (yyvsp[(3) - (3)].scm));
	;}
    break;

  case 410:
#line 2498 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 411:
#line 2502 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-master/lily/parser.yy"
    {
		(yyval.scm) = (yyvsp[(1) - (1)].scm);
	;}
    break;


/* Line 1267 of yacc.c.  */
#line 5829 "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 2507 "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-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 ();
}

