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

/* Bison implementation for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.  */

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

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

/* Pure parsers.  */
#define YYPURE 1

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1




/* Copy the first part of user declarations.  */
#line 30 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:339  */


#define yyerror Lily_parser::parser_error

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

#define YYPRINT(file, type, value)					\
	do {								\
		if (scm_is_eq (value, SCM_UNSPECIFIED))			\
			break;						\
		SCM s = Display::value_to_lily_string (value);		\
		char *p = scm_to_locale_string (s);			\
		fputs (p, file);					\
		free (p);						\
	} while (0)

#line 103 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:339  */
 // -*-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.hh"
#include "context-def.hh"
#include "context-mod.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 "ly-module.hh"
#include "main.hh"
#include "misc.hh"
#include "music.hh"
#include "output-def.hh"
#include "paper-book.hh"
#include "scm-hash.hh"
#include "score.hh"
#include "text-interface.hh"
#include "warn.hh"
#include "lily-imports.hh"

void
Lily_parser::parser_error (Input const *i, Lily_parser *parser, SCM *, const string &s)
{
	parser->parser_error (*i, s);
}

// The following are somewhat precarious constructs as they may change
// the value of the lookahead token.  That implies that the lookahead
// token must not yet have made an impact on the state stack other
// than causing the reduction of the current rule, or switching the
// lookahead token while Bison is mulling it over will cause trouble.

#define MYBACKUP(Token, Value, Location)				\
	do {								\
		if (yychar != YYEMPTY)					\
			parser->lexer_->push_extra_token		\
				(yylloc, yychar, yylval);		\
		if (Token)						\
			parser->lexer_->push_extra_token		\
				(Location, Token, Value);		\
		parser->lexer_->push_extra_token (Location, BACKUP);	\
		yychar = YYEMPTY;					\
	} while (0)


#define MYREPARSE(Location, Pred, Token, Value)				\
	do {								\
		if (yychar != YYEMPTY)					\
			parser->lexer_->push_extra_token		\
				(yylloc, yychar, yylval);		\
		parser->lexer_->push_extra_token			\
			(Location, Token, Value);			\
		parser->lexer_->push_extra_token			\
			(Location, REPARSE, Pred);			\
		yychar = YYEMPTY;					\
	} while (0)

#line 184 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:339  */


#define MY_MAKE_MUSIC(x, spot) \
	make_music_with_input (ly_symbol2scm (x), \
			       parser->lexer_->override_input (spot))

/* ES TODO:
- delay application of the function
*/

#define LOWLEVEL_MAKE_SYNTAX(location, proc, ...)			\
	with_location							\
		(parser->lexer_->override_input (location).smobbed_copy (), \
		 proc,							\
		 ##__VA_ARGS__)

/* Syntactic Sugar. */
#define MAKE_SYNTAX(name, location, ...)				\
	LOWLEVEL_MAKE_SYNTAX (location, Syntax::name, ##__VA_ARGS__)

#define START_MAKE_SYNTAX(name, ...)					\
	scm_list_n (Syntax::name, ##__VA_ARGS__, SCM_UNDEFINED)

#define FINISH_MAKE_SYNTAX(start, location, ...)			\
	LOWLEVEL_MAKE_SYNTAX						\
		(location,						\
		 Guile_user::apply,					\
		 scm_car (start),					\
		 scm_append_x						\
		 (scm_list_2 (scm_cdr (start),				\
			      scm_list_n (__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 check_scheme_arg (Lily_parser *parser, Input loc,
		      SCM arg, SCM args, SCM pred, SCM disp = SCM_UNDEFINED);
SCM make_music_from_simple (Lily_parser *parser, Input loc, SCM pitch);
SCM loc_on_copy (Lily_parser *parser, Input loc, SCM arg);
SCM make_chord_elements (Input loc, SCM pitch, SCM dur, SCM modification_list);
SCM make_chord_step (SCM step, Rational alter);
SCM make_simple_markup (SCM a);
SCM make_duration (SCM t, int dots = 0, SCM factor = SCM_UNDEFINED);
bool is_regular_identifier (SCM id, bool multiple=false);
SCM make_reverse_key_list (SCM keys);
SCM try_word_variants (SCM pred, SCM str);
SCM try_string_variants (SCM pred, SCM str);
int yylex (YYSTYPE *s, YYLTYPE *loc, Lily_parser *parser);


#line 227 "./out/parser.cc" /* yacc.c:339  */

# ifndef YY_NULLPTR
#  if defined __cplusplus && 201103L <= __cplusplus
#   define YY_NULLPTR nullptr
#  else
#   define YY_NULLPTR 0
#  endif
# endif

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

/* In a future release of Bison, this section will be replaced
   by #include "parser.hh".  */
#ifndef YY_YY_OUT_PARSER_HH_INCLUDED
# define YY_YY_OUT_PARSER_HH_INCLUDED
/* Debug traces.  */
#ifndef YYDEBUG
# define YYDEBUG 1
#endif
#if YYDEBUG
extern int yydebug;
#endif

/* Token type.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
  enum yytokentype
  {
    END_OF_FILE = 0,
    PREC_BOT = 258,
    REPEAT = 259,
    ALTERNATIVE = 260,
    COMPOSITE = 261,
    ADDLYRICS = 262,
    UNSIGNED = 263,
    REAL = 264,
    E_UNSIGNED = 265,
    EVENT_IDENTIFIER = 266,
    EVENT_FUNCTION = 267,
    HYPHEN = 268,
    EXTENDER = 269,
    DURATION_IDENTIFIER = 270,
    NUMBER_IDENTIFIER = 271,
    PREC_TOP = 272,
    ACCEPTS = 273,
    ALIAS = 274,
    BOOK = 275,
    BOOKPART = 276,
    CHANGE = 277,
    CHORDMODE = 278,
    CHORDS = 279,
    CONSISTS = 280,
    CONTEXT = 281,
    DEFAULT = 282,
    DEFAULTCHILD = 283,
    DENIES = 284,
    DESCRIPTION = 285,
    DRUMMODE = 286,
    DRUMS = 287,
    ETC = 288,
    FIGUREMODE = 289,
    FIGURES = 290,
    HEADER = 291,
    INVALID = 292,
    LAYOUT = 293,
    LYRICMODE = 294,
    LYRICS = 295,
    LYRICSTO = 296,
    MARKUP = 297,
    MARKUPLIST = 298,
    MIDI = 299,
    NAME = 300,
    NOTEMODE = 301,
    OVERRIDE = 302,
    PAPER = 303,
    REMOVE = 304,
    REST = 305,
    REVERT = 306,
    SCORE = 307,
    SCORELINES = 308,
    SEQUENTIAL = 309,
    SET = 310,
    SIMULTANEOUS = 311,
    TEMPO = 312,
    TYPE = 313,
    UNSET = 314,
    WITH = 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_EXCLAMATION = 327,
    E_PLUS = 328,
    FIGURE_CLOSE = 329,
    FIGURE_OPEN = 330,
    FIGURE_SPACE = 331,
    MULTI_MEASURE_REST = 332,
    EXPECT_MARKUP = 333,
    EXPECT_SCM = 334,
    BACKUP = 335,
    REPARSE = 336,
    EXPECT_MARKUP_LIST = 337,
    EXPECT_OPTIONAL = 338,
    EXPECT_NO_MORE_ARGS = 339,
    EMBEDDED_LILY = 340,
    BOOK_IDENTIFIER = 341,
    CHORD_MODIFIER = 342,
    CHORD_REPETITION = 343,
    DRUM_PITCH = 344,
    DURATION_ARG = 345,
    FRACTION = 346,
    LOOKUP_IDENTIFIER = 347,
    LYRIC_ELEMENT = 348,
    MARKUP_FUNCTION = 349,
    MARKUP_LIST_FUNCTION = 350,
    MARKUP_IDENTIFIER = 351,
    MARKUPLIST_IDENTIFIER = 352,
    MUSIC_FUNCTION = 353,
    MUSIC_IDENTIFIER = 354,
    NOTENAME_PITCH = 355,
    PITCH_IDENTIFIER = 356,
    RESTNAME = 357,
    SCM_ARG = 358,
    SCM_FUNCTION = 359,
    SCM_IDENTIFIER = 360,
    SCM_TOKEN = 361,
    STRING = 362,
    SYMBOL_LIST = 363,
    TONICNAME_PITCH = 364,
    SYMBOL = 365,
    UNARY_MINUS = 366
  };
#endif

/* Value type.  */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif

/* Location type.  */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
{
  int first_line;
  int first_column;
  int last_line;
  int last_column;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif



int yyparse (Lily_parser *parser, SCM *retval);

#endif /* !YY_YY_OUT_PARSER_HH_INCLUDED  */

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

#line 404 "./out/parser.cc" /* yacc.c:358  */

#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;
#else
typedef signed char 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
#  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 defined YYENABLE_NLS && 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

#ifndef YY_ATTRIBUTE
# if (defined __GNUC__                                               \
      && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__)))  \
     || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
#  define YY_ATTRIBUTE(Spec) __attribute__(Spec)
# else
#  define YY_ATTRIBUTE(Spec) /* empty */
# endif
#endif

#ifndef YY_ATTRIBUTE_PURE
# define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
#endif

#ifndef YY_ATTRIBUTE_UNUSED
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
#endif

#if !defined _Noreturn \
     && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
# if defined _MSC_VER && 1200 <= _MSC_VER
#  define _Noreturn __declspec (noreturn)
# else
#  define _Noreturn YY_ATTRIBUTE ((__noreturn__))
# 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

#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized.  */
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
    _Pragma ("GCC diagnostic push") \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
    _Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#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 EXIT_SUCCESS
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
      /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
#     ifndef EXIT_SUCCESS
#      define EXIT_SUCCESS 0
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's 'empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (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 EXIT_SUCCESS \
       && ! ((defined YYMALLOC || defined malloc) \
             && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef EXIT_SUCCESS
#    define EXIT_SUCCESS 0
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined EXIT_SUCCESS
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_alloc;
  YYSTYPE yyvs_alloc;
  YYLTYPE yyls_alloc;
};

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

# define YYCOPY_NEEDED 1

/* 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_alloc, Stack)                           \
    do                                                                  \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
        Stack = &yyptr->Stack_alloc;                                    \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
    while (0)

#endif

#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(Dst, Src, Count) \
      __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
#  else
#   define YYCOPY(Dst, Src, Count)              \
      do                                        \
        {                                       \
          YYSIZE_T yyi;                         \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (Dst)[yyi] = (Src)[yyi];            \
        }                                       \
      while (0)
#  endif
# endif
#endif /* !YYCOPY_NEEDED */

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

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  129
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  198
/* YYNRULES -- Number of rules.  */
#define YYNRULES  592
/* YYNSTATES -- Number of states.  */
#define YYNSTATES  868

/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
   by yylex, with out-of-bounds checking.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   366

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

/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex, without out-of-bounds checking.  */
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,    19,     2,     2,     2,     2,     2,   123,
       2,     2,   124,   116,   122,   115,   118,   126,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     8,     2,
       2,   121,     2,   128,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   127,     2,   125,    14,    15,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   119,     2,   120,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,     9,    10,    11,    12,    13,    16,    17,
      18,    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,   117
};

#if YYDEBUG
  /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   390,   390,   391,   391,   399,   400,   402,   404,   407,
     414,   417,   421,   425,   432,   436,   440,   444,   448,   452,
     487,   503,   504,   512,   516,   520,   521,   522,   526,   527,
     531,   532,   533,   534,   535,   536,   537,   538,   539,   540,
     541,   547,   548,   549,   562,   563,   564,   568,   575,   579,
     580,   588,   595,   596,   597,   619,   620,   628,   632,   640,
     641,   644,   648,   657,   663,   663,   674,   678,   685,   689,
     694,   699,   717,   718,   719,   723,   727,   752,   753,   754,
     755,   756,   757,   758,   759,   760,   761,   762,   763,   764,
     765,   766,   775,   779,   783,   787,   797,   807,   811,   815,
     819,   829,   839,   843,   847,   854,   867,   869,   869,   881,
     884,   894,   905,   933,   945,   955,   958,   962,   966,   970,
     974,   978,   982,   986,  1015,  1014,  1018,  1027,  1035,  1040,
    1043,  1046,  1050,  1054,  1058,  1062,  1066,  1096,  1095,  1102,
    1110,  1117,  1134,  1140,  1141,  1142,  1147,  1150,  1210,  1209,
    1232,  1245,  1255,  1261,  1266,  1275,  1287,  1288,  1292,  1299,
    1303,  1332,  1339,  1338,  1356,  1362,  1365,  1368,  1377,  1380,
    1384,  1394,  1400,  1401,  1402,  1406,  1418,  1425,  1429,  1433,
    1448,  1472,  1473,  1477,  1481,  1488,  1491,  1497,  1500,  1506,
    1507,  1508,  1513,  1512,  1520,  1539,  1540,  1548,  1562,  1565,
    1578,  1581,  1585,  1599,  1602,  1608,  1611,  1633,  1634,  1635,
    1636,  1639,  1646,  1647,  1648,  1652,  1659,  1663,  1670,  1671,
    1672,  1679,  1680,  1681,  1685,  1686,  1743,  1744,  1748,  1755,
    1756,  1760,  1769,  1770,  1782,  1786,  1791,  1800,  1807,  1808,
    1812,  1824,  1830,  1836,  1846,  1850,  1860,  1864,  1868,  1872,
    1876,  1880,  1888,  1901,  1918,  1929,  1940,  1957,  1974,  1987,
    2010,  2028,  2029,  2044,  2054,  2070,  2086,  2095,  2122,  2133,
    2143,  2162,  2173,  2183,  2197,  2212,  2227,  2242,  2252,  2257,
    2262,  2267,  2274,  2275,  2282,  2283,  2302,  2306,  2310,  2314,
    2321,  2325,  2329,  2333,  2340,  2343,  2353,  2358,  2363,  2368,
    2373,  2378,  2388,  2393,  2398,  2403,  2410,  2428,  2439,  2450,
    2468,  2486,  2500,  2523,  2535,  2551,  2560,  2561,  2565,  2569,
    2570,  2577,  2585,  2586,  2598,  2598,  2605,  2609,  2620,  2631,
    2636,  2642,  2647,  2654,  2661,  2666,  2671,  2677,  2684,  2691,
    2697,  2700,  2703,  2714,  2743,  2750,  2762,  2763,  2767,  2771,
    2778,  2779,  2781,  2782,  2783,  2785,  2786,  2787,  2788,  2792,
    2793,  2796,  2799,  2817,  2835,  2843,  2858,  2890,  2908,  2917,
    2920,  2929,  2940,  2941,  2942,  2946,  2947,  2948,  2949,  2960,
    2961,  2962,  2974,  2977,  2983,  2999,  3000,  3001,  3002,  3010,
    3014,  3015,  3019,  3026,  3033,  3037,  3041,  3042,  3047,  3065,
    3069,  3076,  3077,  3084,  3110,  3120,  3137,  3138,  3139,  3143,
    3150,  3153,  3174,  3177,  3189,  3194,  3199,  3209,  3216,  3223,
    3233,  3234,  3241,  3249,  3250,  3253,  3258,  3262,  3265,  3286,
    3287,  3292,  3295,  3296,  3300,  3303,  3309,  3312,  3318,  3333,
    3344,  3345,  3356,  3357,  3361,  3366,  3372,  3379,  3396,  3404,
    3407,  3410,  3413,  3416,  3419,  3422,  3428,  3429,  3430,  3434,
    3437,  3445,  3453,  3461,  3467,  3473,  3476,  3483,  3486,  3493,
    3504,  3507,  3519,  3520,  3521,  3522,  3523,  3538,  3539,  3540,
    3544,  3548,  3559,  3563,  3574,  3582,  3585,  3588,  3591,  3597,
    3600,  3607,  3610,  3616,  3617,  3621,  3660,  3680,  3687,  3703,
    3708,  3713,  3718,  3722,  3732,  3738,  3745,  3748,  3754,  3757,
    3760,  3763,  3769,  3772,  3775,  3781,  3782,  3788,  3791,  3794,
    3800,  3803,  3815,  3818,  3821,  3825,  3828,  3831,  3837,  3840,
    3844,  3845,  3846,  3853,  3854,  3855,  3861,  3862,  3871,  3883,
    3884,  3900,  3901,  3912,  3911,  3920,  3936,  3945,  3949,  3956,
    3964,  3967,  3972,  3979,  3978,  3993,  3996,  4000,  4003,  4006,
    4010,  4010,  4026,  4033,  4039,  4040,  4043,  4049,  4055,  4058,
    4061,  4064,  4070,  4071,  4077,  4081,  4089,  4093,  4097,  4101,
    4108,  4114,  4117,  4123,  4124,  4128,  4132,  4136,  4136,  4149,
    4152,  4159,  4164
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || 1
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "\"end of input\"", "error", "$undefined", "PREC_BOT", "\"\\\\repeat\"",
  "\"\\\\alternative\"", "COMPOSITE", "\"\\\\addlyrics\"", "':'",
  "UNSIGNED", "REAL", "E_UNSIGNED", "EVENT_IDENTIFIER", "EVENT_FUNCTION",
  "'^'", "'_'", "\"--\"", "\"__\"", "DURATION_IDENTIFIER", "'!'",
  "NUMBER_IDENTIFIER", "PREC_TOP", "\"\\\\accepts\"", "\"\\\\alias\"",
  "\"\\\\book\"", "\"\\\\bookpart\"", "\"\\\\change\"",
  "\"\\\\chordmode\"", "\"\\\\chords\"", "\"\\\\consists\"",
  "\"\\\\context\"", "\"\\\\default\"", "\"\\\\defaultchild\"",
  "\"\\\\denies\"", "\"\\\\description\"", "\"\\\\drummode\"",
  "\"\\\\drums\"", "\"\\\\etc\"", "\"\\\\figuremode\"", "\"\\\\figures\"",
  "\"\\\\header\"", "\"\\\\version-error\"", "\"\\\\layout\"",
  "\"\\\\lyricmode\"", "\"\\\\lyrics\"", "\"\\\\lyricsto\"",
  "\"\\\\markup\"", "\"\\\\markuplist\"", "\"\\\\midi\"", "\"\\\\name\"",
  "\"\\\\notemode\"", "\"\\\\override\"", "\"\\\\paper\"",
  "\"\\\\remove\"", "\"\\\\rest\"", "\"\\\\revert\"", "\"\\\\score\"",
  "\"\\\\score-lines\"", "\"\\\\sequential\"", "\"\\\\set\"",
  "\"\\\\simultaneous\"", "\"\\\\tempo\"", "\"\\\\type\"", "\"\\\\unset\"",
  "\"\\\\with\"", "\"\\\\new\"", "\"/+\"", "\"^\"", "\":\"", "\"-\"",
  "\"/\"", "\"<\"", "\">\"", "\"<<\"", "\">>\"", "\"\\\\\"", "\"\\\\!\"",
  "\"\\\\+\"", "FIGURE_CLOSE", "FIGURE_OPEN", "\"_\"",
  "MULTI_MEASURE_REST", "\"markup?\"", "\"scheme?\"", "\"(backed-up?)\"",
  "\"(reparsed?)\"", "\"markup-list?\"", "\"optional?\"",
  "EXPECT_NO_MORE_ARGS", "\"#{\"", "BOOK_IDENTIFIER", "CHORD_MODIFIER",
  "CHORD_REPETITION", "DRUM_PITCH", "DURATION_ARG", "FRACTION",
  "LOOKUP_IDENTIFIER", "LYRIC_ELEMENT", "MARKUP_FUNCTION",
  "MARKUP_LIST_FUNCTION", "MARKUP_IDENTIFIER", "MARKUPLIST_IDENTIFIER",
  "MUSIC_FUNCTION", "MUSIC_IDENTIFIER", "NOTENAME_PITCH",
  "PITCH_IDENTIFIER", "RESTNAME", "SCM_ARG", "SCM_FUNCTION",
  "SCM_IDENTIFIER", "SCM_TOKEN", "STRING", "SYMBOL_LIST",
  "TONICNAME_PITCH", "SYMBOL", "'-'", "'+'", "UNARY_MINUS", "'.'", "'{'",
  "'}'", "'='", "','", "'\\''", "'*'", "']'", "'/'", "'['", "'?'",
  "$accept", "start_symbol", "$@1", "lilypond", "toplevel_expression",
  "lookup", "embedded_scm_bare", "embedded_scm_active",
  "embedded_scm_bare_arg", "embedded_scm", "embedded_scm_arg",
  "scm_function_call", "embedded_lilypond_number", "embedded_lilypond",
  "lilypond_header_body", "lilypond_header", "header_block", "$@2",
  "assignment_id", "assignment", "identifier_init",
  "identifier_init_nonumber", "partial_function", "context_def_spec_block",
  "context_mod_arg", "$@3", "context_def_spec_body", "book_block",
  "book_body", "$@4", "bookpart_block", "bookpart_body", "$@5",
  "score_block", "score_body", "score_item", "score_items", "$@6",
  "paper_block", "output_def", "output_def_head",
  "output_def_head_with_mode_switch", "music_or_context_def",
  "output_def_body", "$@7", "tempo_event", "music_list",
  "braced_music_list", "music", "pitch_as_music", "music_embedded",
  "music_embedded_backup", "music_assign", "repeated_music",
  "sequential_music", "simultaneous_music", "simple_music",
  "context_modification", "$@8", "context_modification_arg",
  "optional_context_mods", "context_modification_mods_list",
  "context_mod_list", "context_prefix", "new_lyrics", "basic_music",
  "contextable_music", "contexted_basic_music", "composite_music",
  "music_bare", "grouped_music_list", "symbol_list_arg", "symbol_list_rev",
  "symbol_list_part", "symbol_list_element", "symbol_list_part_bare",
  "function_arglist_nonbackup", "reparsed_rhythm",
  "function_arglist_nonbackup_reparse", "function_arglist_backup",
  "function_arglist", "function_arglist_skip_nonbackup",
  "function_arglist_partial", "function_arglist_partial_optional",
  "function_arglist_common", "function_arglist_common_reparse",
  "function_arglist_optional", "function_arglist_skip_backup",
  "music_function_call", "optional_id", "lyric_mode_music", "$@9",
  "mode_changed_music", "mode_changing_head",
  "mode_changing_head_with_context", "context_change", "property_path",
  "property_operation", "revert_arg", "revert_arg_backup",
  "revert_arg_part", "context_def_mod", "context_mod", "grob_prop_spec",
  "grob_prop_path", "context_prop_spec", "simple_revert_context",
  "music_property_def", "string", "text", "simple_string", "symbol",
  "scalar", "event_chord", "note_chord_element", "chord_body",
  "chord_body_elements", "chord_body_element", "music_function_chord_body",
  "event_function_event", "post_events", "post_event_nofinger",
  "post_event", "string_number_event", "direction_less_event",
  "direction_reqd_event", "octave_check", "quotes", "sup_quotes",
  "sub_quotes", "steno_pitch", "steno_tonic_pitch", "pitch",
  "pitch_or_tonic_pitch", "gen_text_def", "fingering",
  "script_abbreviation", "script_dir", "maybe_notemode_duration",
  "optional_notemode_duration", "steno_duration", "multiplied_duration",
  "dots", "multipliers", "tremolo_type", "bass_number",
  "figured_bass_alteration", "bass_figure", "figured_bass_modification",
  "br_bass_figure", "figure_list", "optional_rest", "pitch_or_music",
  "simple_element", "lyric_element", "lyric_element_music", "new_chord",
  "chord_items", "chord_separator", "chord_item", "step_numbers",
  "step_number", "tempo_range", "number_expression", "number_term",
  "number_factor", "bare_number_common", "bare_number", "unsigned_number",
  "exclamations", "questions", "full_markup_list", "$@10", "markup_mode",
  "markup_mode_word", "full_markup", "partial_markup", "markup_top",
  "markup_scm", "$@11", "markup_list", "markup_uncomposed_list", "$@12",
  "markup_composed_list", "markup_braced_list", "markup_braced_list_body",
  "markup_command_list", "markup_command_basic_arguments",
  "markup_command_list_arguments", "markup_partial_function",
  "markup_arglist_partial", "markup_head_1_item", "markup_head_1_list",
  "markup_word", "simple_markup", "simple_markup_noword", "$@13", "markup", YY_NULLPTR
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
   (internal) symbol number NUM (which must be that of a token).  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,    58,   263,
     264,   265,   266,   267,    94,    95,   268,   269,   270,    33,
     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,    45,    43,   366,    46,   123,
     125,    61,    44,    39,    42,    93,    47,    91,    63
};
# endif

#define YYPACT_NINF -640

#define yypact_value_is_default(Yystate) \
  (!!((Yystate) == (-640)))

#define YYTABLE_NINF -579

#define yytable_value_is_error(Yytable_value) \
  0

  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
     STATE-NUM.  */
static const yytype_int16 yypact[] =
{
      -7,  -640,   131,  1042,  1226,  -640,  -640,   555,     4,    15,
    -640,  -640,   652,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,   802,  -640,  -640,  -640,  -640,  -640,    88,   113,   113,
     652,  -640,  -640,    22,   154,  -640,   154,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,   106,   211,  -640,
    -640,  -640,  -640,  -640,  -640,   119,  1549,  -640,  -640,  -640,
    -640,  3820,   178,  -640,  -640,  -640,  -640,  -640,  -640,    75,
    -640,  -640,  1300,   128,  -640,  -640,   235,   240,   260,  -640,
    -640,   227,   277,   277,  -640,  -640,  -640,  -640,   652,   744,
    1226,   217,   217,   217,   882,   217,   799,  -640,  -640,    98,
      98,    98,  -640,  -640,   259,    34,    34,    98,   289,  -640,
    -640,   318,    34,   336,   132,  -640,  -640,   374,  -640,  -640,
    -640,  -640,  -640,   326,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,  3566,   323,   410,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,  -640,    98,  -640,  -640,  -640,  -640,  -640,  -640,
      98,  -640,  1714,  -640,   420,  -640,   423,  -640,    98,  -640,
    -640,  -640,  -640,  1417,  -640,   438,  -640,  -640,  -640,  -640,
     442,   358,   373,  -640,  -640,  -640,   346,   355,   366,   378,
     403,   386,   376,  -640,  -640,  -640,   346,  1817,   217,   414,
     428,  -640,  -640,   431,  -640,  -640,   435,  -640,  1342,   413,
    -640,   217,  3049,   217,  -640,  -640,  -640,  -640,  -640,  -640,
    3738,   251,   128,  -640,  -640,   178,  -640,  -640,  -640,  -640,
     530,  -640,    75,   475,  -640,  -640,   752,   837,  -640,  -640,
    -640,  -640,  -640,   297,  -640,  -640,  -640,  -640,  -640,  -640,
    1300,  -640,  -640,  3049,  -640,  -640,   422,  -640,   447,   459,
    -640,  -640,  -640,  -640,  -640,   422,   437,  -640,  -640,  -640,
    -640,  -640,  -640,   -26,  -640,  -640,  -640,   217,   440,  -640,
     217,   -26,   445,  -640,  -640,  -640,  -640,    98,   450,  -640,
    -640,  -640,  -640,   425,  -640,  1102,   738,  -640,  -640,  -640,
    -640,  -640,   447,   473,  -640,  -640,  -640,  -640,   451,   446,
    -640,  -640,   447,   498,  -640,  -640,   240,  -640,  -640,  -640,
     217,   217,  -640,  -640,  -640,  -640,  -640,  -640,  -640,    66,
    -640,   859,   943,  1029,   573,   154,  -640,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,   472,   859,   859,  -640,   859,   847,   562,  1525,
    -640,  -640,  -640,  3656,  -640,  1645,  -640,  1731,   555,  -640,
    -640,  -640,    75,   555,   522,   506,  -640,   376,    62,  3463,
    -640,  -640,  -640,  -640,   -26,   532,   209,  -640,  2937,   526,
     466,  3130,  3238,  -640,  -640,   -26,   492,    57,    -9,   140,
     225,  -640,  -640,  -640,  -640,   153,  -640,  -640,   313,  -640,
     367,  -640,  -640,  -640,   510,  -640,  -640,  -640,   530,   403,
    -640,  -640,  -640,   504,   524,   837,   837,   837,  -640,  -640,
     837,  -640,  -640,  1074,   568,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,   447,   579,  -640,  2377,   489,   555,
    3854,   217,   217,  -640,  3157,  -640,  -640,   588,  -640,  3265,
     557,   442,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,   941,  -640,
    -640,   908,  -640,  -640,   859,   859,  2377,   489,  -640,  -640,
    2377,   489,   559,   570,  1459,  -640,   859,   277,  -640,   563,
    -640,  -640,   563,  -640,  -640,    87,    74,   859,   854,   854,
    -640,  -640,   847,   692,  -640,  -640,  -640,  -640,   106,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
     106,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,   403,
    -640,  -640,  -640,  -640,   106,  -640,  -640,  -640,   496,   637,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,   246,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,   616,
    2489,   675,  -640,  -640,   155,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  1008,  3049,
    -640,   695,    95,  -640,   217,   217,   859,    95,    95,    95,
      95,  3049,  -640,   403,  -640,  -640,  -640,   699,   376,   949,
    -640,  -640,  1300,  -640,  -640,  -640,  -640,  2601,   502,  -640,
     447,   629,  2041,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,   217,  -640,   217,  -640,   652,  -640,   378,  -640,
    -640,   917,  -640,  -640,   193,  -640,   595,  -640,  -640,   213,
    -640,   225,  -640,  -640,   190,  -640,  -640,  -640,  -640,    47,
    -640,  -640,   442,  -640,   603,  3898,   859,   573,   908,  -640,
    -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    2041,  -640,  2041,  3373,  3373,  -640,  -640,   527,    34,  -640,
      98,  -640,  -640,   854,   688,  -640,   699,  -640,  -640,   113,
    -640,  -640,  -640,  -640,   644,  2153,   697,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,  -640,   466,  -640,  -640,  -640,  -640,
    -640,   258,  -640,  -640,  -640,  -640,  -640,  -640,  -640,   422,
     217,   217,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,  -640,  -640,  -640,    77,    80,  -640,  -640,  -640,
     634,   949,  -640,  -640,   654,  1929,  -640,  2713,   489,  -640,
     619,  -640,  -640,  -640,  -640,  -640,  -640,  3373,   447,   665,
    -640,   217,   217,   771,  -640,  -640,   442,  -640,  -640,  -640,
      87,  -640,  -640,    21,  -640,  -640,  -640,   635,  -640,  -640,
     703,   949,  -640,   496,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,   448,  -640,  -640,  -640,  -640,  -640,  -640,  -640,  -640,
    -640,  -640,   472,   -26,   -26,  -640,  -640,   502,  2265,  3373,
    -640,   467,   601,  -640,  -640,   217,   217,  -640,  -640,  -640,
    -640,  -640,   750,  -640,  -640,  -640,  -640,  -640,  -640,   859,
    -640,   217,   217,   234,   363,   691,   467,  -640,  -640,   859,
    -640,   859,   655,   661,   447,   700,   447,   705,   601,   467,
     467,   467,   601,   467,   601,  2825,   467,   467
};

  /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
     Performed when YYTABLE does not specify something else to do.  Zero
     means the default is an error.  */
static const yytype_uint16 yydefact[] =
{
       5,     3,     0,     0,     0,     1,     8,     0,     0,     0,
     332,   336,     0,   330,   334,   331,   335,     9,   154,   333,
     337,     0,   545,   543,   153,   329,   152,     0,     0,     0,
       0,   168,    13,    21,     0,   222,     0,    25,    18,    66,
      67,   168,     6,    27,    19,    26,    10,     0,     0,     7,
      11,    12,    14,    20,   155,     0,     0,   186,   208,   225,
     224,     0,   218,   219,    15,   209,   223,   207,   221,     0,
     198,    17,     0,   548,    16,    57,   470,   465,   530,   422,
     424,     0,   457,   456,   414,   415,   465,   531,     0,     0,
       0,     0,     0,     0,     0,     0,   192,   401,   491,   459,
     459,   459,    85,   502,     0,   431,   431,   459,     0,    24,
      23,   501,   431,   500,   458,    43,    41,   180,    42,    53,
       4,    77,    52,     0,    82,    79,    80,    78,    81,   396,
     176,   174,     0,   177,   172,   181,    90,   182,   191,   190,
      86,   189,   397,   459,   426,   420,   410,   423,   412,   440,
     459,   539,     0,   467,   410,   425,   175,   410,   459,   173,
     410,    49,    89,     0,   548,   499,    88,   379,   380,   381,
       0,   114,   128,   382,   383,   384,   322,   379,   380,   381,
     324,     0,     0,   146,   185,   187,   322,     0,     0,     0,
       0,   294,   282,     0,   321,   238,     0,    47,     0,     0,
      65,     0,    64,     0,   158,   164,   161,   151,   160,   159,
       0,     0,     0,   213,   212,   216,   217,   214,   175,   198,
     220,   327,     0,   197,   587,   560,     0,     0,   583,   584,
     564,   553,   547,     0,   550,   556,   555,   557,   558,   581,
       0,   546,   552,    64,   471,    50,   462,   532,     0,     0,
     409,    93,   448,   418,   419,   463,     0,   109,    58,   235,
     234,   236,   233,   363,   229,   237,   232,   364,     0,   367,
       0,   366,     0,   465,   375,   376,   378,   167,     0,   377,
     371,   196,   195,     0,   194,     0,     0,   461,   410,   460,
     410,   497,     0,     0,    92,   436,   434,   438,   433,   432,
     441,   498,     0,     0,    94,   439,   448,    48,   421,    91,
       0,     0,   501,   500,   180,   168,   172,   410,   499,     0,
     410,    54,   504,     0,   541,     0,   449,   455,   452,   453,
     445,   446,   451,   450,   454,   447,   413,   417,   416,   427,
     428,   444,   464,   179,   393,   410,   496,     0,     0,     0,
     536,   537,   538,     0,   115,     0,   129,     0,     0,   198,
     326,   210,     0,     0,     0,     0,   544,     0,     0,   141,
     198,   170,   188,   169,    22,     0,   316,   261,    64,     0,
       0,     0,     0,   171,    59,   339,     0,   534,   372,   373,
     458,    87,    68,    72,    83,     0,   410,    84,    73,   524,
     525,   533,   529,   374,     0,   157,   163,   156,   215,   324,
     198,   328,   199,     0,     0,     0,     0,     0,   571,   589,
       0,   572,   567,     0,     0,   590,   559,   562,   582,   585,
     551,   586,    71,   466,     0,     0,   287,    64,     0,     0,
     107,     0,     0,   365,    64,   346,   369,     0,   345,    64,
       0,     0,   200,   399,   410,   407,   408,   406,   402,   405,
     443,   442,   539,   472,   400,   480,   473,   474,     0,   476,
     481,   489,   492,   475,   395,   394,    64,     0,   435,   437,
      64,     0,     0,     0,     0,   178,   398,   458,   411,     0,
     509,   508,     0,   506,   540,   429,     0,   503,     0,     0,
     574,   549,     0,   183,   126,   122,   113,   123,     0,   117,
     118,   116,   150,   119,   121,   120,   139,   135,   127,   136,
       0,   131,   130,   132,   134,   133,   323,   203,   325,   324,
     142,   140,   143,   147,     0,   145,   144,   204,     0,     0,
     312,   313,    30,    28,   306,    29,   309,   310,   458,    40,
      44,   295,    45,    34,    36,    37,    38,    35,    39,    46,
      33,   297,   308,   307,   296,    32,   311,    31,   318,     0,
      64,     0,   465,   249,   226,   251,   247,   246,   245,   250,
     248,   299,   305,   304,   303,   301,   300,   302,     0,    64,
     535,   534,     0,   528,     0,     0,    76,     0,     0,     0,
       0,    64,   205,   324,   146,   146,   580,     0,     0,     0,
     563,   566,     0,   592,   565,   554,   291,    64,     0,    98,
       0,     0,    64,   289,   338,   352,   355,   350,   353,   354,
     357,   358,     0,   351,     0,   356,     0,   105,    41,   106,
     112,     0,   111,   359,     0,   110,     0,   230,   231,     0,
     387,     0,   385,   100,     0,   390,   368,   386,   388,     0,
     101,   370,     0,   165,   520,   107,   404,   541,   490,   479,
     488,   486,   485,   477,   478,   482,   487,   483,   484,    97,
      64,    99,    64,    64,    64,   511,   510,   505,   431,   542,
     459,   468,   469,     0,   580,   576,   579,   577,   575,     0,
     125,   138,   211,   149,     0,   319,   320,   281,   280,   279,
     277,   278,   314,   315,   298,     0,   259,   260,   253,   256,
     257,   458,   243,   239,   255,   254,   244,   258,   283,   467,
       0,     0,    61,    63,    62,    60,    69,    74,    75,   523,
     522,   526,   527,    70,   206,     0,     0,   570,   569,   568,
       0,     0,   573,   591,     0,   319,   293,    64,     0,   103,
       0,   343,   341,   108,   360,   361,   362,    64,     0,     0,
     389,     0,     0,     0,   344,   166,     0,   193,   202,   201,
     429,   102,   104,   517,   514,   512,   507,   513,   515,   430,
     493,   578,   184,     0,   267,   268,   273,   269,   274,   275,
     276,   458,   262,   263,   265,   264,   266,   317,   285,   240,
     241,   242,   410,   227,   228,   588,   561,     0,    64,    64,
     340,   286,     0,   391,   392,     0,     0,   349,   521,   410,
     519,   518,     0,   494,   410,   320,   270,   271,   272,   252,
     342,     0,     0,     0,     0,     0,   288,   347,   348,   403,
     516,   495,     0,     0,     0,     0,     0,     0,     0,    95,
      96,   286,     0,   286,     0,    64,   288,   288
};

  /* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -640,  -640,  -640,  -640,  -640,     3,    73,   -33,  -640,    49,
     324,    12,   677,   702,  -640,  -390,    70,  -640,  -640,   -42,
    -197,    82,   357,   143,   124,  -640,  -640,   121,  -640,  -640,
      27,  -640,  -640,    38,  -145,  -640,  -640,  -640,   443,    16,
    -640,  -640,  -640,  -640,  -640,  -640,    29,   -17,  -255,   741,
      96,  -640,   321,  -640,  -640,  -640,  -640,   192,  -640,  -640,
    -171,  -640,  -640,  -640,   584,   751,  -640,   756,    13,  -640,
     -32,  -322,   -86,   -54,  -640,  -159,    28,  -325,  -640,  -498,
      14,  -639,   -79,  -395,  -181,  -640,  -203,  -482,   -87,   625,
    -355,  -640,  -640,  -640,  -640,  -640,  -170,  -640,  -283,  -640,
    -640,  -640,   148,  -640,  -278,   -91,  -640,  -640,  -257,  -640,
      51,     5,  -378,   758,  -640,  -640,  -640,  -640,  -640,  -640,
     -99,    41,   123,  -640,   668,  -640,    43,   -85,  -640,  -640,
    -640,   244,   348,  -640,  -640,   388,  -640,  -640,  -147,   198,
     -25,   122,   -50,    97,  -640,  -640,  -640,   359,  -640,  -640,
    -640,  -640,    20,  -640,  -640,  -231,  -640,  -640,   142,  -640,
    -640,     9,   180,  -640,   -70,  -335,    18,  -271,  -152,   389,
     197,    48,  -640,   645,    10,    -3,   189,  -640,  -165,  -640,
    -154,  -196,  -640,  -640,  -640,  -640,  -640,  -164,  -211,  -640,
    -272,  -191,   -62,    -8,  -206,     7,  -640,   433
};

  /* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     2,     4,     3,    42,   115,   116,    44,   550,   231,
     551,   118,   119,   120,   588,   200,   553,    47,    48,    49,
     392,   393,   123,   554,   640,   641,   440,   555,   355,   508,
     556,   357,   520,   557,   368,   533,   369,   534,   511,   558,
      54,    55,   406,    56,   210,   129,   187,    57,   130,   131,
     373,   133,   559,    58,    59,    60,   135,   560,   283,   284,
     222,   223,   665,    61,   220,    62,   215,    63,   137,    65,
      66,   575,   385,   264,   265,   266,   192,   576,   193,   376,
     194,   571,   623,   436,   195,   196,   378,   379,    67,   359,
     361,   362,    68,    69,    70,   138,   386,   643,   446,   447,
     448,   644,   645,   267,   268,   272,   270,   139,   140,   277,
     170,   176,   656,   141,   142,   143,   285,   458,   459,   144,
     343,   145,   488,   147,   148,   338,   690,   297,   298,   299,
     149,   150,   151,   462,   339,   308,   340,   152,   287,   288,
     153,   289,   246,   342,   155,   470,   677,   471,   678,   472,
     286,   834,   218,   157,   158,   159,   160,   687,   493,   786,
     787,   788,   663,   398,   399,   400,   401,   402,   664,   324,
     495,   565,   182,   163,   164,   403,   567,   232,   233,   424,
     234,   235,   414,   236,   237,   423,   238,   421,   422,   348,
     695,   239,   367,   429,   613,   431,   413,   752
};

  /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
     positive, shift that token.  If negative, reduce the rule whose
     number is the opposite.  If YYTABLE_NINF, syntax error.  */
static const yytype_int16 yytable[] =
{
      74,   165,   251,   322,   280,   263,    43,   271,   377,   271,
     240,   184,   185,    73,   209,    45,    64,   365,   353,    53,
     128,   300,   161,   208,   156,   294,   181,   305,   366,   304,
      51,   126,   482,   404,   430,   186,   255,   221,   269,   616,
     705,    52,   127,   395,   427,   437,   432,   321,   409,   428,
     197,    71,   162,   117,   602,   593,   706,   583,   344,    43,
     582,   346,   419,   530,   241,   336,   212,   377,    45,   278,
     198,   661,   180,    46,   121,   500,   808,   590,   530,   242,
     169,   530,     1,   691,   395,   175,   122,   165,   485,   476,
     830,   279,   441,   256,   179,   250,   442,   443,   503,   480,
     132,   349,   374,   175,   591,    78,   128,   273,   161,  -234,
     156,   377,    22,  -234,   536,    87,    86,   126,   700,   808,
     755,   377,   197,   171,    50,   125,   154,   146,   127,   318,
     701,     5,   161,    28,   172,    29,   706,   831,   162,   117,
     188,   306,    78,   430,   703,   282,   199,   124,    31,   341,
     579,   586,    87,   427,   773,   241,   295,   296,   428,   574,
     121,   175,   175,   103,   262,   262,   262,   276,   262,   692,
     242,   427,   122,   658,   702,  -235,   428,   312,   658,  -235,
     313,   314,   531,   419,   318,   219,   132,   655,   527,   474,
     411,   475,   655,   166,    41,   318,   136,   815,   457,   537,
     816,   335,   365,   241,   606,   607,   608,   183,   688,   609,
     592,   125,   154,   146,   708,   689,   445,   707,   128,   352,
     483,   486,   397,   756,   263,   271,   259,   697,   315,   126,
     698,   617,    41,   124,   591,    78,   314,   189,   204,   603,
     127,   190,   191,   396,   244,    87,   497,   314,   744,   243,
     162,   391,   450,   377,   317,   712,   713,   593,  -236,   128,
     245,   262,  -236,   397,   741,   742,   714,   809,   810,   611,
     126,   594,   121,   730,   262,   595,   262,   731,   811,   166,
     247,   127,   136,   473,   396,   654,   252,   694,   696,    33,
     654,   162,   391,  -319,   539,   705,   768,   596,   290,   291,
     769,    36,   109,   110,   764,   301,   661,   765,   771,   317,
     248,   835,   772,   121,   249,   191,   318,   854,  -372,   755,
     317,   855,   507,   125,   519,   134,   109,   110,   260,   201,
     528,   261,   202,   203,   456,   835,  -373,   774,   419,   250,
     262,   320,   292,   262,   484,   124,   293,   191,   323,   760,
     318,   761,   515,   405,   525,   666,   345,   377,    43,   469,
      43,   612,   228,   309,   125,   229,   318,    45,   513,    45,
     523,   512,   302,   512,   -87,   566,   303,   191,   318,   318,
     770,   549,   509,   262,   262,   535,   124,   647,   648,   820,
     552,   166,   736,   510,   136,   521,   564,   425,   426,   580,
     587,   578,   585,   514,   743,   524,   753,   319,   570,   526,
     -83,   134,   658,   658,   529,   412,   427,   757,   532,   561,
     -55,   428,   756,   -84,   737,   738,   655,   655,   597,   598,
     395,   169,   166,   225,   566,   136,   169,   377,  -374,   377,
     549,   840,   395,   365,   750,   646,   856,   549,   354,   552,
     857,   350,   549,   316,   749,   564,   552,   836,   837,   745,
     746,   552,   351,   356,   657,   473,   622,   358,   838,   657,
     253,   254,    33,   566,   364,   227,  -382,   566,   561,   549,
     649,   318,   791,   549,    36,   109,   110,  -383,   552,   639,
     624,   599,   552,   600,   564,   230,   658,   189,   564,  -384,
     352,   375,   191,   577,   584,   680,   360,   363,   316,   682,
     655,   380,   169,   638,   262,   262,   381,   561,   841,   316,
     382,   561,   729,   394,   654,   654,   842,   739,   740,   460,
     434,   407,   384,   314,   435,   191,   783,   410,    33,    96,
     433,   469,   438,   790,   452,   753,   735,   751,   658,   189,
      36,   109,   110,   569,   191,   734,   477,   711,   439,   710,
     428,   444,   655,   852,   394,   821,   449,   727,   479,   843,
     251,   451,   620,   549,   478,   844,   621,   191,   445,   189,
     445,   481,   552,   704,   191,   434,   750,   377,   726,   754,
     191,    43,   494,   489,   490,   491,   496,   492,   212,   501,
      45,   823,   824,   789,   415,   128,   317,   426,   654,   397,
     568,   723,   377,   589,   566,   538,   126,   128,   784,   727,
     549,   397,   562,   604,   828,   549,   750,   127,   126,   552,
     396,   601,   642,   461,   552,   564,   377,   162,   391,   127,
     726,   762,   396,   605,   813,   814,   273,    78,    72,   162,
     391,   861,   615,   863,   763,    86,   748,    87,   561,   121,
     654,   709,   618,   723,   109,   110,   167,   262,   262,   168,
     646,   121,   659,   377,   316,   377,   112,   727,   662,   727,
     683,   562,   792,   549,   620,   549,   549,   549,   845,   191,
     316,   684,   552,   766,   552,   552,   552,   699,   726,   715,
     726,   211,   806,   657,   657,   262,   728,   262,   549,   175,
     125,   352,   758,   839,   639,   590,   767,   552,   776,   827,
     562,   723,   125,   723,   562,  -578,   563,   793,   807,   751,
     849,   572,   124,   685,   425,   851,   686,   817,   638,    72,
     819,   105,   106,   570,   124,   748,   803,   463,   822,   574,
     112,   853,   806,   832,   566,   263,   271,   833,   549,   783,
     549,   109,   110,   173,   294,   304,   174,   552,   652,   552,
     549,   847,   848,   652,   858,   564,   859,    72,   166,   552,
     259,   136,   860,   862,    22,   563,   818,   657,   864,   778,
     166,   307,   258,   136,   619,    33,   803,    72,   561,   408,
     522,   653,   213,   262,   262,   316,   660,    36,   109,   110,
     747,   370,   214,   779,   724,   727,   464,   216,   465,   217,
     337,   549,   549,   829,   563,   352,   812,   668,   563,   785,
     552,   552,    72,   679,   415,   416,   726,   681,   417,   657,
     418,   850,   775,    72,   262,   262,   262,   109,   110,   466,
     846,   667,   467,   109,   110,   173,   614,     0,   174,   723,
       0,   562,   727,   257,   780,   468,   724,    76,   549,     0,
      79,    80,   325,    82,    83,    84,    85,   552,     0,     0,
     109,   110,   260,   726,     0,   261,   865,     0,     0,   825,
     866,   273,   867,   826,   722,    33,     0,     0,   262,   262,
      86,     0,   281,     0,     0,     0,   723,    36,   109,   110,
     394,   109,   110,   177,   262,   262,   178,     0,   725,   420,
     416,     7,   394,   417,   724,   418,   724,   669,    22,   498,
     499,    72,     0,   417,     0,   418,   693,   499,     0,     0,
     417,     0,   418,     0,    10,    11,   722,    12,     0,   804,
     463,     0,    13,    14,     0,    15,    16,     0,     0,     0,
      19,    20,    21,     0,    72,   563,     0,    25,     0,     0,
     725,     0,     0,     0,   487,    28,     0,    29,     0,   759,
       0,     0,    30,   670,   671,   672,     0,    22,     0,     0,
      31,   109,   110,   274,     0,     0,   275,     0,    72,   804,
      72,   562,    72,     0,   722,   224,   722,   652,   652,  -461,
    -461,  -461,     0,  -461,    72,     0,     0,     0,     0,    34,
      35,   465,     0,   673,   674,     0,    72,    72,   725,   802,
     725,     0,     0,   675,   676,     0,    41,   781,     0,   782,
       0,     0,    -2,     6,     0,    33,     7,   226,     0,     0,
     109,   110,   466,   805,    22,   467,     0,    36,   109,   110,
     228,     0,   724,   229,     0,     0,     8,     9,     0,    10,
      11,     0,    12,     0,     0,     0,     0,    13,    14,   802,
      15,    16,   -64,    17,    18,    19,    20,    21,    22,    23,
      24,   652,    25,     0,    26,   489,   490,   491,    27,   492,
      28,     0,    29,   805,    33,   563,     0,    30,     0,   724,
       0,     0,     0,    72,     0,    31,    36,    37,   732,    39,
       0,     0,    40,     0,     0,     0,     0,     0,   733,    72,
     224,   225,    32,     0,     0,     0,     0,     0,    33,     0,
       0,     0,   722,   652,    34,    35,     0,     0,     0,     0,
      36,    37,    38,    39,     0,     0,    40,     0,     0,     0,
       0,    41,     0,     0,     0,     0,   725,     0,     0,     0,
      33,     0,   226,   227,   453,     0,     0,     0,   619,     0,
       0,     0,    36,   109,   110,   228,     0,     0,   229,   722,
       0,     0,     0,   230,   610,   454,     0,     0,    33,     0,
       0,     0,     0,   759,    34,   455,   105,   106,     0,     0,
      36,   109,   110,   725,     0,   112,   653,   660,   679,     0,
     681,     0,     0,   781,   782,     0,   -51,    75,     0,     0,
       7,     0,     0,   211,    76,    77,    78,    79,    80,    81,
      82,    83,    84,    85,    86,     0,    87,     0,     0,     0,
       8,     9,    88,    10,    11,     0,    89,     0,     0,     0,
       0,    13,    14,     0,    15,    16,   -64,    90,    18,    19,
      20,    21,    22,    23,    24,     0,    25,    91,    26,     0,
       0,    92,    27,     0,    28,    93,    29,    94,     0,    95,
      96,    30,     0,     0,     0,     0,     0,    97,     0,    31,
       0,     0,     0,     0,     0,    98,     0,    99,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   100,   101,
       0,   102,    33,   103,     0,     0,     0,     0,   104,    35,
     105,   106,   107,     0,   108,   109,   110,   111,     0,   112,
     113,   114,     0,   371,     0,    41,     7,     0,     0,     0,
       0,   273,     0,     0,     0,     0,   224,   225,     0,     0,
      86,     0,     0,     0,     0,     0,     0,     0,    88,    10,
      11,     0,    12,     0,     0,     0,     0,    13,    14,     0,
      15,    16,     0,     0,     0,    19,    20,    21,    22,     0,
       0,     0,    25,   310,     0,     0,    33,    92,   226,   227,
      28,   311,    29,    94,     0,    95,     0,    30,    36,   109,
     110,   228,     0,    97,   229,    31,     0,     0,     0,   230,
       0,    98,     0,    99,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   100,   101,     0,     0,    33,   103,
       0,     0,     0,     0,    34,    35,   105,   106,   107,     0,
      36,   109,   110,   312,     0,   112,   313,     0,     0,   -56,
     371,    41,   383,     7,     0,     0,     0,     0,   273,     0,
       0,     0,     0,   224,   225,     0,     0,    86,     0,     0,
       0,     0,     0,     0,     0,    88,    10,    11,     0,    12,
       0,     0,     0,     0,    13,    14,     0,    15,    16,     0,
       0,     0,    19,    20,    21,    22,     0,     0,     0,    25,
     310,     0,     0,    33,    92,   347,   227,    28,   311,    29,
      94,     0,    95,     0,    30,    36,   109,   110,   228,     0,
      97,   229,    31,     0,     0,     0,   230,     0,    98,     0,
      99,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     205,   100,   101,  -162,     0,    33,   103,     0,     0,     0,
       0,    34,    35,   105,   106,   107,     0,    36,   109,   110,
     312,     0,   112,   313,     0,  -162,  -162,  -162,    41,  -162,
       0,   224,   225,     0,  -162,  -162,     0,  -162,  -162,     0,
       0,     0,  -162,  -162,  -162,    22,     0,     0,     0,  -162,
    -162,     0,     0,     0,  -162,     0,     0,  -162,  -162,  -162,
    -162,     0,  -162,     0,  -162,     0,     0,     0,     0,     0,
    -162,    33,  -162,   502,   227,     0,     0,     0,  -162,     0,
    -162,     0,     0,    36,   109,   110,   228,     0,     0,   229,
       0,  -162,  -162,     0,   230,    33,   504,     0,     0,     7,
       0,  -162,  -162,     0,     0,  -162,     0,    36,    37,   206,
      39,     0,     0,    40,     0,     0,     0,     0,  -162,   207,
       9,     0,    10,    11,     0,    12,     0,     0,     0,     0,
      13,    14,     0,    15,    16,  -124,     0,    18,    19,    20,
      21,    22,    23,    24,     0,    25,     0,    26,     0,     0,
       0,    27,     0,    28,     0,    29,     0,     0,     0,     0,
      30,     0,     0,     0,     0,     0,     0,     0,    31,     0,
       0,     0,    76,     0,     0,    79,    80,   325,   326,   327,
       0,     0,   516,   328,     0,     7,     0,     0,     0,     0,
       0,    33,     0,     0,     0,     0,     0,    34,    35,     0,
       0,     0,     0,    36,    37,   505,     0,     0,    10,    11,
      22,    12,     0,     0,    41,   506,    13,    14,     0,    15,
      16,  -137,     0,    18,    19,    20,    21,    22,    23,    24,
       0,    25,     0,    26,     0,     0,   329,    27,     0,    28,
       0,    29,     0,     0,     0,     0,    30,     0,     0,     0,
       0,     0,     0,     0,    31,     0,     0,     0,     0,     0,
      33,     0,     0,     0,     0,     0,    34,     0,   371,     0,
       0,     7,    36,   109,   110,   330,   273,    33,   331,   332,
     333,     0,   334,    34,    35,    86,     0,     0,     0,    36,
      37,   517,     0,    88,    10,    11,     0,    12,     0,     0,
      41,   518,    13,    14,     0,    15,    16,     0,     0,     0,
      19,    20,    21,    22,     0,     0,     0,    25,   310,     0,
       0,     0,    92,     0,     0,    28,   311,    29,    94,     0,
      95,     0,    30,     0,     0,     0,     0,     0,    97,     0,
      31,   372,     0,     0,     0,     0,    98,     0,    99,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   100,
     101,     0,     0,    33,   103,     0,     0,     0,     0,    34,
      35,   105,   106,   107,     0,    36,   109,   110,   312,     0,
     112,   313,     0,     7,     0,     0,    41,    76,   794,   795,
      79,    80,   325,    82,    83,    84,    85,   796,     0,   797,
       0,     0,     0,     8,     9,    88,    10,    11,     0,    89,
       0,     0,     0,     0,    13,    14,  -292,    15,    16,   -64,
       0,    18,    19,    20,    21,    22,    23,    24,     0,    25,
     310,    26,     0,     0,    92,    27,     0,    28,   311,    29,
      94,     0,    95,    96,    30,     0,     0,     0,     0,     0,
      97,     0,    31,     0,     0,     0,     0,     0,    98,     0,
      99,     0,     0,     0,   539,     0,     0,     0,     0,     0,
       0,   100,   101,     0,   542,    33,     0,     0,     0,     0,
       0,    34,    35,   105,   106,   107,   543,    36,   798,   545,
     799,     0,   112,   800,   801,     7,     0,     0,    41,    76,
     716,    78,    79,    80,    81,    82,    83,    84,    85,   717,
       0,    87,     0,     0,     0,     8,     9,    88,    10,    11,
       0,    89,  -284,     0,     0,     0,    13,    14,  -288,    15,
      16,     0,     0,    18,    19,    20,    21,    22,    23,    24,
       0,    25,    91,    26,     0,     0,    92,    27,     0,    28,
      93,    29,    94,     0,    95,    96,    30,     0,     0,     0,
       0,     0,    97,     0,    31,     0,     0,     0,     0,     0,
      98,     0,    99,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   100,   101,     0,   542,    33,     0,     0,
       0,     0,     0,   104,    35,   105,   106,   107,   543,   108,
     718,   545,   719,     0,   112,   720,   721,     7,     0,     0,
      41,    76,   794,   795,    79,    80,   325,    82,    83,    84,
      85,   796,     0,   797,     0,     0,     0,     8,     9,    88,
      10,    11,     0,    89,     0,     0,     0,     0,    13,    14,
       0,    15,    16,   -64,     0,    18,    19,    20,    21,    22,
      23,    24,     0,    25,   310,    26,     0,     0,    92,    27,
       0,    28,   311,    29,    94,     0,    95,    96,    30,     0,
       0,     0,     0,     0,    97,     0,    31,     0,     0,     0,
       0,     0,    98,     0,    99,     0,     0,     0,   539,     0,
       0,     0,     0,     0,     0,   100,   101,     0,   542,    33,
       0,     0,     0,     0,     0,    34,    35,   105,   106,   107,
     543,    36,   798,   545,   799,     0,   112,   800,   801,     7,
       0,     0,    41,    76,   716,    78,    79,    80,   325,    82,
      83,    84,    85,   717,     0,    87,     0,     0,     0,     8,
       9,    88,    10,    11,     0,    89,  -284,     0,     0,     0,
      13,    14,  -288,    15,    16,     0,     0,    18,    19,    20,
      21,    22,    23,    24,     0,    25,   310,    26,     0,     0,
      92,    27,     0,    28,   311,    29,    94,     0,    95,    96,
      30,     0,     0,     0,     0,     0,    97,     0,    31,     0,
       0,     0,     0,     0,    98,     0,    99,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   100,   101,     0,
     542,    33,     0,     0,     0,     0,     0,    34,    35,   105,
     106,   107,   543,    36,   718,   545,   719,     0,   112,   720,
     721,     7,     0,     0,    41,    76,   540,    78,    79,    80,
      81,    82,    83,    84,    85,   541,     0,    87,     0,     0,
       0,     8,     9,    88,    10,    11,     0,    89,     0,     0,
       0,     0,    13,    14,  -286,    15,    16,     0,     0,    18,
      19,    20,    21,    22,    23,    24,     0,    25,    91,    26,
       0,     0,    92,    27,     0,    28,    93,    29,    94,     0,
      95,    96,    30,     0,     0,     0,     0,     0,    97,     0,
      31,     0,     0,     0,     0,     0,    98,     0,    99,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   100,
     101,     0,   542,    33,     0,     0,     0,     0,     0,   104,
      35,   105,   106,   107,   543,   108,   544,   545,   546,     0,
     112,   547,   548,     7,     0,     0,    41,    76,   716,    78,
      79,    80,   325,    82,    83,    84,    85,   717,     0,    87,
       0,     0,     0,     8,     9,    88,    10,    11,     0,    89,
    -284,     0,     0,     0,    13,    14,     0,    15,    16,     0,
       0,    18,    19,    20,    21,    22,    23,    24,     0,    25,
     310,    26,     0,     0,    92,    27,     0,    28,   311,    29,
      94,     0,    95,    96,    30,     0,     0,     0,     0,     0,
      97,     0,    31,     0,     0,     0,     0,     0,    98,     0,
      99,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   100,   101,     0,   542,    33,     0,     0,     0,     0,
       0,    34,    35,   105,   106,   107,   543,    36,   718,   545,
     719,     0,   112,   720,   721,     7,     0,     0,    41,    76,
     540,    78,    79,    80,   325,    82,    83,    84,    85,   541,
       0,    87,     0,     0,     0,     8,     9,    88,    10,    11,
       0,    89,     0,     0,     0,     0,    13,    14,  -290,    15,
      16,     0,     0,    18,    19,    20,    21,    22,    23,    24,
       0,    25,   310,    26,     0,     0,    92,    27,     0,    28,
     311,    29,    94,     0,    95,    96,    30,     0,     0,     0,
       0,     0,    97,     0,    31,     0,     0,     0,     0,     0,
      98,     0,    99,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   100,   101,     0,   542,    33,     0,     0,
       0,     0,     0,    34,    35,   105,   106,   107,   543,    36,
     544,   545,   546,     0,   112,   547,   548,     7,     0,     0,
      41,    76,   540,    78,    79,    80,   325,    82,    83,    84,
      85,   541,     0,    87,     0,     0,     0,     8,     9,    88,
      10,    11,     0,    89,     0,     0,     0,     0,    13,    14,
    -286,    15,    16,     0,     0,    18,    19,    20,    21,    22,
      23,    24,     0,    25,   310,    26,     0,     0,    92,    27,
       0,    28,   311,    29,    94,     0,    95,    96,    30,     0,
       0,     0,     0,     0,    97,     0,    31,     0,     0,     0,
       0,     0,    98,     0,    99,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   100,   101,     0,   542,    33,
       0,     0,     0,     0,     0,    34,    35,   105,   106,   107,
     543,    36,   544,   545,   546,     0,   112,   547,   548,     7,
       0,     0,    41,    76,   716,    78,    79,    80,   325,    82,
      83,    84,    85,   717,     0,    87,     0,     0,     0,     8,
       9,    88,    10,    11,     0,    89,     0,     0,     0,     0,
      13,    14,  -288,    15,    16,     0,     0,    18,    19,    20,
      21,    22,    23,    24,     0,    25,   310,    26,     0,     0,
      92,    27,     0,    28,   311,    29,    94,     0,    95,    96,
      30,     0,     0,     0,     0,     0,    97,     0,    31,     0,
       0,     0,     0,     0,    98,     0,    99,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   100,   101,     0,
     542,    33,     0,     0,     0,     0,     0,    34,    35,   105,
     106,   107,   543,    36,   718,   545,   719,     0,   112,   720,
     721,     7,     0,     0,    41,    76,   540,    78,    79,    80,
     325,    82,    83,    84,    85,   541,     0,    87,     0,     0,
       0,     8,     9,    88,    10,    11,     0,    89,     0,     0,
       0,     0,    13,    14,     0,    15,    16,     0,     0,    18,
      19,    20,    21,    22,    23,    24,     0,    25,   310,    26,
       0,     0,    92,    27,     0,    28,   311,    29,    94,     0,
      95,    96,    30,     0,     0,     0,     0,     0,    97,     0,
      31,     0,     0,     0,     0,     0,    98,     0,    99,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   100,
     101,     0,   542,    33,     0,     0,     0,     0,     0,    34,
      35,   105,   106,   107,   543,    36,   544,   545,   546,     0,
     112,   547,   548,     7,     0,     0,    41,    76,   387,    78,
      79,    80,    81,    82,    83,    84,    85,     0,     0,    87,
       0,     0,     0,     8,     9,    88,    10,    11,     0,    89,
       0,     0,     0,     0,    13,    14,     0,    15,    16,     0,
       0,    18,    19,    20,    21,    22,    23,    24,     0,    25,
      91,    26,     0,     0,    92,    27,     0,    28,    93,    29,
      94,     0,    95,    96,    30,     0,     0,     0,     0,     0,
      97,     0,    31,     0,     0,     0,     0,     0,    98,     0,
      99,     0,     0,     0,     0,     0,     0,     0,     0,   273,
      78,   100,   101,     0,   102,    33,     0,     0,    86,     0,
      87,   104,    35,   105,   106,   107,     0,   108,   109,   110,
     388,     7,   112,   389,   390,     0,   387,    78,    41,     0,
     649,     0,     0,     0,     0,     0,    22,    87,     0,     0,
       0,     8,     9,    88,    10,    11,     0,    89,     0,     0,
       0,     0,    13,    14,   -95,    15,    16,     0,     0,    18,
      19,    20,    21,    22,    23,    24,     0,    25,    91,    26,
       0,     0,    92,    27,     0,    28,    93,    29,    94,     0,
      95,    96,    30,     0,   572,     0,     0,   103,    97,     0,
      31,     0,     0,     0,   105,   106,    98,   573,    99,     0,
       0,   312,   574,   112,   313,     0,     0,   273,    78,   100,
     101,     0,   542,    33,     0,     0,    86,     0,    87,   104,
      35,   105,   106,   107,   543,   108,   650,   545,   388,     7,
     112,   389,   651,     0,   387,    78,    41,     0,   649,     0,
       0,     0,     0,     0,    22,    87,     0,     0,     0,     8,
       9,    88,    10,    11,     0,    89,     0,     0,     0,     0,
      13,    14,   -96,    15,    16,     0,     0,    18,    19,    20,
      21,    22,    23,    24,     0,    25,    91,    26,     0,     0,
      92,    27,     0,    28,    93,    29,    94,     0,    95,    96,
      30,     0,   572,     0,     0,   103,    97,     0,    31,     0,
       0,     0,   105,   106,    98,   581,    99,     0,     0,   312,
     574,   112,   313,     0,     0,     0,     0,   100,   101,     0,
     542,    33,     0,     0,     0,     0,     0,   104,    35,   105,
     106,   107,   543,   108,   650,   545,   388,     7,   112,   389,
     651,     0,   387,    78,    41,     0,     0,     0,     0,     0,
       0,     0,     0,    87,     0,     0,     0,     8,     9,    88,
      10,    11,     0,    89,     0,     0,     0,     0,    13,    14,
       0,    15,    16,     0,     0,    18,    19,    20,    21,    22,
      23,    24,     0,    25,   310,    26,     0,     0,    92,    27,
       0,    28,   311,    29,    94,     0,    95,    96,    30,     0,
       0,     0,     0,     0,    97,     0,    31,     0,     0,     0,
       0,     0,    98,     0,    99,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   100,   101,     7,   542,    33,
       0,     0,     0,     0,     0,    34,    35,   105,   106,   107,
     543,    36,   650,   545,   388,     0,   112,   389,   651,    88,
      10,    11,    41,    12,     0,     0,     0,     0,    13,    14,
       0,    15,    16,  -148,     0,    18,    19,    20,    21,    22,
       0,    24,     0,    25,   310,    26,     0,     0,    92,     0,
       0,    28,   311,    29,    94,     0,    95,     0,    30,     0,
       0,     0,     0,     0,    97,     0,    31,     0,     0,     0,
       0,     0,    98,     0,    99,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   100,   101,     0,     0,    33,
     103,     0,     0,     0,     0,    34,    35,   105,   106,   107,
       7,    36,   109,   110,   312,   273,   112,   313,     0,     0,
       0,     0,    41,     0,    86,     0,     0,     0,     0,     0,
       0,     0,    88,    10,    11,     0,    12,     0,     0,     0,
       0,    13,    14,     0,    15,    16,     0,     0,     0,    19,
      20,    21,    22,     0,     0,     0,    25,   310,     0,     0,
       0,    92,     0,     0,    28,   311,    29,    94,     0,    95,
       0,    30,     0,     0,     0,     0,     0,    97,     0,    31,
       0,     0,     0,     0,     0,    98,     0,    99,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   100,   101,
       7,     0,    33,   103,     0,     0,     0,     0,    34,    35,
     105,   106,   107,     0,    36,   109,   110,   312,     0,   112,
     313,     0,    88,    10,    11,    41,    12,     0,     0,     0,
       0,    13,    14,     0,    15,    16,     0,     0,     0,    19,
      20,    21,    22,     0,     0,     0,    25,   310,     0,     0,
       0,    92,     0,     0,    28,   311,    29,    94,     0,    95,
       0,    30,     0,     0,     0,     0,     0,    97,     0,    31,
       0,     0,     0,     0,     0,    98,     0,    99,     0,     0,
       0,     0,     7,     0,     0,     0,     0,     0,   100,   101,
       0,     0,     0,   103,     0,     0,     0,     0,    34,    35,
     105,   106,   107,     0,    88,    10,    11,   312,    89,   112,
     313,     0,     0,    13,    14,    41,    15,    16,     0,     0,
       0,    19,    20,    21,     0,     0,     0,     0,    25,   310,
       0,     0,     0,    92,     0,     0,    28,   311,    29,    94,
       0,    95,     0,    30,     0,     0,     0,     0,     0,    97,
       0,    31,     0,     0,     0,     0,     0,    98,     0,    99,
       0,     0,     0,     0,     7,     0,     0,     0,     0,     0,
     100,   101,     0,     0,     0,     0,     0,     0,     0,     0,
      34,    35,     0,     0,   107,     0,     0,    10,    11,     0,
      12,     0,     0,     0,     0,    13,    14,    41,    15,    16,
       0,     0,     0,    19,    20,    21,     0,     0,     0,     0,
      25,     0,     0,     0,     0,     0,   625,   626,    28,     0,
      29,    94,     0,   627,     0,    30,   628,   629,   630,     0,
       0,    97,     0,    31,     0,     0,     0,     0,     0,    98,
       0,    99,     0,   631,     0,   632,     0,   633,     0,   634,
       0,     0,   100,   101,     0,     0,   635,   636,    96,     0,
     625,   626,    34,    35,   105,   106,   107,   627,     0,     0,
     628,   629,   630,   112,     0,     0,     0,     0,     0,    41,
       0,     0,     0,     0,     0,     0,     0,   631,     0,   632,
      33,   633,     0,   634,     0,     0,     0,     0,     0,     0,
     635,   636,    36,   109,   110,   173,     0,     0,   174,     0,
       0,     0,     0,     0,   637,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    33,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    36,   109,   110,   173,
       0,     0,   174,     0,     0,     0,     0,     0,   777
};

static const yytype_int16 yycheck[] =
{
       3,     4,    81,   150,    95,    91,     3,    93,   189,    95,
      72,    28,    29,     3,    56,     3,     3,   182,   170,     3,
       4,   106,     4,    56,     4,   104,    21,   112,   182,   108,
       3,     4,   310,   203,   240,    30,    86,    69,    92,   434,
     538,     3,     4,   202,   240,   248,   243,   146,   219,   240,
      36,     3,     4,     4,   409,   390,   538,   382,   157,    56,
     382,   160,   226,     1,    72,   152,    56,   248,    56,    94,
      41,   449,    21,     3,     4,   347,   715,    20,     1,    72,
       7,     1,    89,     9,   243,    12,     4,    90,   319,   292,
      69,    94,   118,    88,    21,    81,   122,   267,   353,   302,
       4,   163,   188,    30,     9,    10,    90,     9,    90,   118,
      90,   292,    46,   122,   369,    20,    18,    90,   508,   758,
     618,   302,   108,   119,     3,     4,     4,     4,    90,   132,
     520,     0,   114,    58,   119,    60,   618,   116,    90,    90,
     118,     9,    10,   349,   534,    96,    40,     4,    73,   152,
     381,   382,    20,   349,   107,   163,   122,   123,   349,   112,
      90,    88,    89,    97,    91,    92,    93,    94,    95,    95,
     163,   367,    90,   444,   529,   118,   367,   111,   449,   122,
     114,   132,   120,   347,   187,     7,    90,   444,   359,   288,
     222,   290,   449,     4,   119,   198,     4,   120,   285,   370,
     120,   152,   367,   211,   415,   416,   417,   119,   121,   420,
     115,    90,    90,    90,   539,   128,   270,   539,   202,   170,
     311,   320,   202,   618,   310,   311,     9,   499,   132,   202,
     502,   434,   119,    90,     9,    10,   187,    83,   119,   410,
     202,    87,    88,   202,     9,    20,   345,   198,   603,   121,
     202,   202,   277,   434,   132,     9,    10,   592,   118,   243,
      20,   188,   122,   243,   599,   600,    20,     9,    10,   423,
     243,   118,   202,   118,   201,   122,   203,   122,    20,    90,
      20,   243,    90,   286,   243,   444,     9,   498,   499,    96,
     449,   243,   243,    84,    85,   793,    83,   396,   100,   101,
      87,   108,   109,   110,   111,   107,   684,   114,   118,   187,
      83,   793,   122,   243,    87,    88,   319,    83,     0,   817,
     198,    87,   355,   202,   357,     4,   109,   110,   111,   118,
     362,   114,   121,   122,   285,   817,     0,   659,   502,   325,
     267,   143,    83,   270,   315,   202,    87,    88,   150,   632,
     353,   634,   355,   210,   357,   454,   158,   538,   355,   286,
     357,   423,   111,    37,   243,   114,   369,   355,   355,   357,
     357,   355,    83,   357,     0,   378,    87,    88,   381,   382,
     651,   378,   355,   310,   311,   369,   243,   441,   442,   767,
     378,   202,   589,   355,   202,   357,   378,   100,   101,   381,
     382,   381,   382,   355,   601,   357,   612,    84,   380,   358,
       0,    90,   683,   684,   363,   223,   612,   620,   369,   378,
       0,   612,   817,     0,   594,   595,   683,   684,   115,   116,
     589,   358,   243,    57,   437,   243,   363,   618,     0,   620,
     437,   819,   601,   608,   609,   440,    83,   444,    90,   437,
      87,     9,   449,   132,   608,   437,   444,     9,    10,   604,
     605,   449,    20,    90,   444,   468,   438,   121,    20,   449,
      82,    83,    96,   476,    98,    99,   121,   480,   437,   476,
      13,   484,   693,   480,   108,   109,   110,   121,   476,   440,
     439,   124,   480,   126,   476,   119,   767,    83,   480,   121,
     451,    87,    88,   381,   382,   477,   103,   121,   187,   481,
     767,    83,   439,   440,   441,   442,    85,   476,    51,   198,
      85,   480,   572,   202,   683,   684,    59,   597,   598,   285,
      83,   210,   119,   484,    87,    88,     9,     7,    96,    64,
     118,   468,    83,   690,   119,   751,   588,   609,   819,    83,
     108,   109,   110,    87,    88,   588,    83,   539,   121,   539,
     751,   121,   819,   841,   243,   768,   121,   570,   122,   102,
     649,   121,    83,   570,   123,   108,    87,    88,   632,    83,
     634,    83,   570,    87,    88,    83,   751,   768,   570,    87,
      88,   588,    19,    66,    67,    68,   124,    70,   588,    37,
     588,   771,   772,   688,    82,   589,   484,   101,   767,   589,
      84,   570,   793,   121,   617,    83,   589,   601,    91,   622,
     617,   601,   378,   119,   776,   622,   791,   589,   601,   617,
     589,   121,   440,   285,   622,   617,   817,   589,   589,   601,
     622,   636,   601,   119,   730,   731,     9,    10,     3,   601,
     601,   854,    84,   856,   641,    18,   607,    20,   617,   589,
     819,   539,    83,   622,   109,   110,   111,   594,   595,   114,
     665,   601,    84,   854,   353,   856,   113,   680,   121,   682,
     121,   437,   699,   680,    83,   682,   683,   684,    87,    88,
     369,   121,   680,   644,   682,   683,   684,     5,   680,    83,
     682,    56,   705,   683,   684,   632,    31,   634,   705,   636,
     589,   662,    83,   812,   665,    20,   121,   705,   115,   773,
     476,   680,   601,   682,   480,    37,   378,    83,    31,   791,
     829,    94,   589,   489,   100,   834,   492,    83,   665,    94,
     121,   104,   105,   715,   601,   696,   705,     9,    83,   112,
     113,   842,   755,   118,   757,   841,   842,    54,   755,     9,
     757,   109,   110,   111,   843,   844,   114,   755,   444,   757,
     767,   825,   826,   449,    83,   757,   121,   132,   589,   767,
       9,   589,   121,    83,    46,   437,   758,   767,    83,   665,
     601,   114,    90,   601,   437,    96,   755,   152,   757,   215,
     357,   444,    61,   730,   731,   484,   449,   108,   109,   110,
     111,   186,    61,   665,   570,   818,    78,    61,    80,    61,
     152,   818,   819,   780,   476,   776,   729,   468,   480,   687,
     818,   819,   187,   476,    82,    83,   818,   480,    86,   819,
      88,   832,   662,   198,   771,   772,   773,   109,   110,   111,
     822,   462,   114,   109,   110,   111,   423,    -1,   114,   818,
      -1,   617,   865,   119,   667,   127,   622,     8,   865,    -1,
      11,    12,    13,    14,    15,    16,    17,   865,    -1,    -1,
     109,   110,   111,   865,    -1,   114,   858,    -1,    -1,   118,
     862,     9,   864,   122,   570,    96,    -1,    -1,   825,   826,
      18,    -1,   103,    -1,    -1,    -1,   865,   108,   109,   110,
     589,   109,   110,   111,   841,   842,   114,    -1,   570,    82,
      83,     4,   601,    86,   680,    88,   682,    19,    46,    82,
      83,   286,    -1,    86,    -1,    88,    82,    83,    -1,    -1,
      86,    -1,    88,    -1,    27,    28,   622,    30,    -1,   705,
       9,    -1,    35,    36,    -1,    38,    39,    -1,    -1,    -1,
      43,    44,    45,    -1,   319,   617,    -1,    50,    -1,    -1,
     622,    -1,    -1,    -1,   115,    58,    -1,    60,    -1,   622,
      -1,    -1,    65,    75,    76,    77,    -1,    46,    -1,    -1,
      73,   109,   110,   111,    -1,    -1,   114,    -1,   353,   755,
     355,   757,   357,    -1,   680,    56,   682,   683,   684,    66,
      67,    68,    -1,    70,   369,    -1,    -1,    -1,    -1,   102,
     103,    80,    -1,   115,   116,    -1,   381,   382,   680,   705,
     682,    -1,    -1,   125,   126,    -1,   119,   680,    -1,   682,
      -1,    -1,     0,     1,    -1,    96,     4,    98,    -1,    -1,
     109,   110,   111,   705,    46,   114,    -1,   108,   109,   110,
     111,    -1,   818,   114,    -1,    -1,    24,    25,    -1,    27,
      28,    -1,    30,    -1,    -1,    -1,    -1,    35,    36,   755,
      38,    39,    40,    41,    42,    43,    44,    45,    46,    47,
      48,   767,    50,    -1,    52,    66,    67,    68,    56,    70,
      58,    -1,    60,   755,    96,   757,    -1,    65,    -1,   865,
      -1,    -1,    -1,   468,    -1,    73,   108,   109,   110,   111,
      -1,    -1,   114,    -1,    -1,    -1,    -1,    -1,   120,   484,
      56,    57,    90,    -1,    -1,    -1,    -1,    -1,    96,    -1,
      -1,    -1,   818,   819,   102,   103,    -1,    -1,    -1,    -1,
     108,   109,   110,   111,    -1,    -1,   114,    -1,    -1,    -1,
      -1,   119,    -1,    -1,    -1,    -1,   818,    -1,    -1,    -1,
      96,    -1,    98,    99,    72,    -1,    -1,    -1,   821,    -1,
      -1,    -1,   108,   109,   110,   111,    -1,    -1,   114,   865,
      -1,    -1,    -1,   119,   120,    93,    -1,    -1,    96,    -1,
      -1,    -1,    -1,   846,   102,   103,   104,   105,    -1,    -1,
     108,   109,   110,   865,    -1,   113,   859,   860,   861,    -1,
     863,    -1,    -1,   866,   867,    -1,     0,     1,    -1,    -1,
       4,    -1,    -1,   588,     8,     9,    10,    11,    12,    13,
      14,    15,    16,    17,    18,    -1,    20,    -1,    -1,    -1,
      24,    25,    26,    27,    28,    -1,    30,    -1,    -1,    -1,
      -1,    35,    36,    -1,    38,    39,    40,    41,    42,    43,
      44,    45,    46,    47,    48,    -1,    50,    51,    52,    -1,
      -1,    55,    56,    -1,    58,    59,    60,    61,    -1,    63,
      64,    65,    -1,    -1,    -1,    -1,    -1,    71,    -1,    73,
      -1,    -1,    -1,    -1,    -1,    79,    -1,    81,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,    93,
      -1,    95,    96,    97,    -1,    -1,    -1,    -1,   102,   103,
     104,   105,   106,    -1,   108,   109,   110,   111,    -1,   113,
     114,   115,    -1,     1,    -1,   119,     4,    -1,    -1,    -1,
      -1,     9,    -1,    -1,    -1,    -1,    56,    57,    -1,    -1,
      18,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    26,    27,
      28,    -1,    30,    -1,    -1,    -1,    -1,    35,    36,    -1,
      38,    39,    -1,    -1,    -1,    43,    44,    45,    46,    -1,
      -1,    -1,    50,    51,    -1,    -1,    96,    55,    98,    99,
      58,    59,    60,    61,    -1,    63,    -1,    65,   108,   109,
     110,   111,    -1,    71,   114,    73,    -1,    -1,    -1,   119,
      -1,    79,    -1,    81,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    92,    93,    -1,    -1,    96,    97,
      -1,    -1,    -1,    -1,   102,   103,   104,   105,   106,    -1,
     108,   109,   110,   111,    -1,   113,   114,    -1,    -1,     0,
       1,   119,   120,     4,    -1,    -1,    -1,    -1,     9,    -1,
      -1,    -1,    -1,    56,    57,    -1,    -1,    18,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    26,    27,    28,    -1,    30,
      -1,    -1,    -1,    -1,    35,    36,    -1,    38,    39,    -1,
      -1,    -1,    43,    44,    45,    46,    -1,    -1,    -1,    50,
      51,    -1,    -1,    96,    55,    98,    99,    58,    59,    60,
      61,    -1,    63,    -1,    65,   108,   109,   110,   111,    -1,
      71,   114,    73,    -1,    -1,    -1,   119,    -1,    79,    -1,
      81,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
       1,    92,    93,     4,    -1,    96,    97,    -1,    -1,    -1,
      -1,   102,   103,   104,   105,   106,    -1,   108,   109,   110,
     111,    -1,   113,   114,    -1,    26,    27,    28,   119,    30,
      -1,    56,    57,    -1,    35,    36,    -1,    38,    39,    -1,
      -1,    -1,    43,    44,    45,    46,    -1,    -1,    -1,    50,
      51,    -1,    -1,    -1,    55,    -1,    -1,    58,    59,    60,
      61,    -1,    63,    -1,    65,    -1,    -1,    -1,    -1,    -1,
      71,    96,    73,    98,    99,    -1,    -1,    -1,    79,    -1,
      81,    -1,    -1,   108,   109,   110,   111,    -1,    -1,   114,
      -1,    92,    93,    -1,   119,    96,     1,    -1,    -1,     4,
      -1,   102,   103,    -1,    -1,   106,    -1,   108,   109,   110,
     111,    -1,    -1,   114,    -1,    -1,    -1,    -1,   119,   120,
      25,    -1,    27,    28,    -1,    30,    -1,    -1,    -1,    -1,
      35,    36,    -1,    38,    39,    40,    -1,    42,    43,    44,
      45,    46,    47,    48,    -1,    50,    -1,    52,    -1,    -1,
      -1,    56,    -1,    58,    -1,    60,    -1,    -1,    -1,    -1,
      65,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    73,    -1,
      -1,    -1,     8,    -1,    -1,    11,    12,    13,    14,    15,
      -1,    -1,     1,    19,    -1,     4,    -1,    -1,    -1,    -1,
      -1,    96,    -1,    -1,    -1,    -1,    -1,   102,   103,    -1,
      -1,    -1,    -1,   108,   109,   110,    -1,    -1,    27,    28,
      46,    30,    -1,    -1,   119,   120,    35,    36,    -1,    38,
      39,    40,    -1,    42,    43,    44,    45,    46,    47,    48,
      -1,    50,    -1,    52,    -1,    -1,    72,    56,    -1,    58,
      -1,    60,    -1,    -1,    -1,    -1,    65,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    73,    -1,    -1,    -1,    -1,    -1,
      96,    -1,    -1,    -1,    -1,    -1,   102,    -1,     1,    -1,
      -1,     4,   108,   109,   110,   111,     9,    96,   114,   115,
     116,    -1,   118,   102,   103,    18,    -1,    -1,    -1,   108,
     109,   110,    -1,    26,    27,    28,    -1,    30,    -1,    -1,
     119,   120,    35,    36,    -1,    38,    39,    -1,    -1,    -1,
      43,    44,    45,    46,    -1,    -1,    -1,    50,    51,    -1,
      -1,    -1,    55,    -1,    -1,    58,    59,    60,    61,    -1,
      63,    -1,    65,    -1,    -1,    -1,    -1,    -1,    71,    -1,
      73,    74,    -1,    -1,    -1,    -1,    79,    -1,    81,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,
      93,    -1,    -1,    96,    97,    -1,    -1,    -1,    -1,   102,
     103,   104,   105,   106,    -1,   108,   109,   110,   111,    -1,
     113,   114,    -1,     4,    -1,    -1,   119,     8,     9,    10,
      11,    12,    13,    14,    15,    16,    17,    18,    -1,    20,
      -1,    -1,    -1,    24,    25,    26,    27,    28,    -1,    30,
      -1,    -1,    -1,    -1,    35,    36,    37,    38,    39,    40,
      -1,    42,    43,    44,    45,    46,    47,    48,    -1,    50,
      51,    52,    -1,    -1,    55,    56,    -1,    58,    59,    60,
      61,    -1,    63,    64,    65,    -1,    -1,    -1,    -1,    -1,
      71,    -1,    73,    -1,    -1,    -1,    -1,    -1,    79,    -1,
      81,    -1,    -1,    -1,    85,    -1,    -1,    -1,    -1,    -1,
      -1,    92,    93,    -1,    95,    96,    -1,    -1,    -1,    -1,
      -1,   102,   103,   104,   105,   106,   107,   108,   109,   110,
     111,    -1,   113,   114,   115,     4,    -1,    -1,   119,     8,
       9,    10,    11,    12,    13,    14,    15,    16,    17,    18,
      -1,    20,    -1,    -1,    -1,    24,    25,    26,    27,    28,
      -1,    30,    31,    -1,    -1,    -1,    35,    36,    37,    38,
      39,    -1,    -1,    42,    43,    44,    45,    46,    47,    48,
      -1,    50,    51,    52,    -1,    -1,    55,    56,    -1,    58,
      59,    60,    61,    -1,    63,    64,    65,    -1,    -1,    -1,
      -1,    -1,    71,    -1,    73,    -1,    -1,    -1,    -1,    -1,
      79,    -1,    81,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    92,    93,    -1,    95,    96,    -1,    -1,
      -1,    -1,    -1,   102,   103,   104,   105,   106,   107,   108,
     109,   110,   111,    -1,   113,   114,   115,     4,    -1,    -1,
     119,     8,     9,    10,    11,    12,    13,    14,    15,    16,
      17,    18,    -1,    20,    -1,    -1,    -1,    24,    25,    26,
      27,    28,    -1,    30,    -1,    -1,    -1,    -1,    35,    36,
      -1,    38,    39,    40,    -1,    42,    43,    44,    45,    46,
      47,    48,    -1,    50,    51,    52,    -1,    -1,    55,    56,
      -1,    58,    59,    60,    61,    -1,    63,    64,    65,    -1,
      -1,    -1,    -1,    -1,    71,    -1,    73,    -1,    -1,    -1,
      -1,    -1,    79,    -1,    81,    -1,    -1,    -1,    85,    -1,
      -1,    -1,    -1,    -1,    -1,    92,    93,    -1,    95,    96,
      -1,    -1,    -1,    -1,    -1,   102,   103,   104,   105,   106,
     107,   108,   109,   110,   111,    -1,   113,   114,   115,     4,
      -1,    -1,   119,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    -1,    20,    -1,    -1,    -1,    24,
      25,    26,    27,    28,    -1,    30,    31,    -1,    -1,    -1,
      35,    36,    37,    38,    39,    -1,    -1,    42,    43,    44,
      45,    46,    47,    48,    -1,    50,    51,    52,    -1,    -1,
      55,    56,    -1,    58,    59,    60,    61,    -1,    63,    64,
      65,    -1,    -1,    -1,    -1,    -1,    71,    -1,    73,    -1,
      -1,    -1,    -1,    -1,    79,    -1,    81,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,    93,    -1,
      95,    96,    -1,    -1,    -1,    -1,    -1,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,    -1,   113,   114,
     115,     4,    -1,    -1,   119,     8,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    -1,    20,    -1,    -1,
      -1,    24,    25,    26,    27,    28,    -1,    30,    -1,    -1,
      -1,    -1,    35,    36,    37,    38,    39,    -1,    -1,    42,
      43,    44,    45,    46,    47,    48,    -1,    50,    51,    52,
      -1,    -1,    55,    56,    -1,    58,    59,    60,    61,    -1,
      63,    64,    65,    -1,    -1,    -1,    -1,    -1,    71,    -1,
      73,    -1,    -1,    -1,    -1,    -1,    79,    -1,    81,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,
      93,    -1,    95,    96,    -1,    -1,    -1,    -1,    -1,   102,
     103,   104,   105,   106,   107,   108,   109,   110,   111,    -1,
     113,   114,   115,     4,    -1,    -1,   119,     8,     9,    10,
      11,    12,    13,    14,    15,    16,    17,    18,    -1,    20,
      -1,    -1,    -1,    24,    25,    26,    27,    28,    -1,    30,
      31,    -1,    -1,    -1,    35,    36,    -1,    38,    39,    -1,
      -1,    42,    43,    44,    45,    46,    47,    48,    -1,    50,
      51,    52,    -1,    -1,    55,    56,    -1,    58,    59,    60,
      61,    -1,    63,    64,    65,    -1,    -1,    -1,    -1,    -1,
      71,    -1,    73,    -1,    -1,    -1,    -1,    -1,    79,    -1,
      81,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    92,    93,    -1,    95,    96,    -1,    -1,    -1,    -1,
      -1,   102,   103,   104,   105,   106,   107,   108,   109,   110,
     111,    -1,   113,   114,   115,     4,    -1,    -1,   119,     8,
       9,    10,    11,    12,    13,    14,    15,    16,    17,    18,
      -1,    20,    -1,    -1,    -1,    24,    25,    26,    27,    28,
      -1,    30,    -1,    -1,    -1,    -1,    35,    36,    37,    38,
      39,    -1,    -1,    42,    43,    44,    45,    46,    47,    48,
      -1,    50,    51,    52,    -1,    -1,    55,    56,    -1,    58,
      59,    60,    61,    -1,    63,    64,    65,    -1,    -1,    -1,
      -1,    -1,    71,    -1,    73,    -1,    -1,    -1,    -1,    -1,
      79,    -1,    81,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    92,    93,    -1,    95,    96,    -1,    -1,
      -1,    -1,    -1,   102,   103,   104,   105,   106,   107,   108,
     109,   110,   111,    -1,   113,   114,   115,     4,    -1,    -1,
     119,     8,     9,    10,    11,    12,    13,    14,    15,    16,
      17,    18,    -1,    20,    -1,    -1,    -1,    24,    25,    26,
      27,    28,    -1,    30,    -1,    -1,    -1,    -1,    35,    36,
      37,    38,    39,    -1,    -1,    42,    43,    44,    45,    46,
      47,    48,    -1,    50,    51,    52,    -1,    -1,    55,    56,
      -1,    58,    59,    60,    61,    -1,    63,    64,    65,    -1,
      -1,    -1,    -1,    -1,    71,    -1,    73,    -1,    -1,    -1,
      -1,    -1,    79,    -1,    81,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    92,    93,    -1,    95,    96,
      -1,    -1,    -1,    -1,    -1,   102,   103,   104,   105,   106,
     107,   108,   109,   110,   111,    -1,   113,   114,   115,     4,
      -1,    -1,   119,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    -1,    20,    -1,    -1,    -1,    24,
      25,    26,    27,    28,    -1,    30,    -1,    -1,    -1,    -1,
      35,    36,    37,    38,    39,    -1,    -1,    42,    43,    44,
      45,    46,    47,    48,    -1,    50,    51,    52,    -1,    -1,
      55,    56,    -1,    58,    59,    60,    61,    -1,    63,    64,
      65,    -1,    -1,    -1,    -1,    -1,    71,    -1,    73,    -1,
      -1,    -1,    -1,    -1,    79,    -1,    81,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,    93,    -1,
      95,    96,    -1,    -1,    -1,    -1,    -1,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,    -1,   113,   114,
     115,     4,    -1,    -1,   119,     8,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    -1,    20,    -1,    -1,
      -1,    24,    25,    26,    27,    28,    -1,    30,    -1,    -1,
      -1,    -1,    35,    36,    -1,    38,    39,    -1,    -1,    42,
      43,    44,    45,    46,    47,    48,    -1,    50,    51,    52,
      -1,    -1,    55,    56,    -1,    58,    59,    60,    61,    -1,
      63,    64,    65,    -1,    -1,    -1,    -1,    -1,    71,    -1,
      73,    -1,    -1,    -1,    -1,    -1,    79,    -1,    81,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,
      93,    -1,    95,    96,    -1,    -1,    -1,    -1,    -1,   102,
     103,   104,   105,   106,   107,   108,   109,   110,   111,    -1,
     113,   114,   115,     4,    -1,    -1,   119,     8,     9,    10,
      11,    12,    13,    14,    15,    16,    17,    -1,    -1,    20,
      -1,    -1,    -1,    24,    25,    26,    27,    28,    -1,    30,
      -1,    -1,    -1,    -1,    35,    36,    -1,    38,    39,    -1,
      -1,    42,    43,    44,    45,    46,    47,    48,    -1,    50,
      51,    52,    -1,    -1,    55,    56,    -1,    58,    59,    60,
      61,    -1,    63,    64,    65,    -1,    -1,    -1,    -1,    -1,
      71,    -1,    73,    -1,    -1,    -1,    -1,    -1,    79,    -1,
      81,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     9,
      10,    92,    93,    -1,    95,    96,    -1,    -1,    18,    -1,
      20,   102,   103,   104,   105,   106,    -1,   108,   109,   110,
     111,     4,   113,   114,   115,    -1,     9,    10,   119,    -1,
      13,    -1,    -1,    -1,    -1,    -1,    46,    20,    -1,    -1,
      -1,    24,    25,    26,    27,    28,    -1,    30,    -1,    -1,
      -1,    -1,    35,    36,    37,    38,    39,    -1,    -1,    42,
      43,    44,    45,    46,    47,    48,    -1,    50,    51,    52,
      -1,    -1,    55,    56,    -1,    58,    59,    60,    61,    -1,
      63,    64,    65,    -1,    94,    -1,    -1,    97,    71,    -1,
      73,    -1,    -1,    -1,   104,   105,    79,   107,    81,    -1,
      -1,   111,   112,   113,   114,    -1,    -1,     9,    10,    92,
      93,    -1,    95,    96,    -1,    -1,    18,    -1,    20,   102,
     103,   104,   105,   106,   107,   108,   109,   110,   111,     4,
     113,   114,   115,    -1,     9,    10,   119,    -1,    13,    -1,
      -1,    -1,    -1,    -1,    46,    20,    -1,    -1,    -1,    24,
      25,    26,    27,    28,    -1,    30,    -1,    -1,    -1,    -1,
      35,    36,    37,    38,    39,    -1,    -1,    42,    43,    44,
      45,    46,    47,    48,    -1,    50,    51,    52,    -1,    -1,
      55,    56,    -1,    58,    59,    60,    61,    -1,    63,    64,
      65,    -1,    94,    -1,    -1,    97,    71,    -1,    73,    -1,
      -1,    -1,   104,   105,    79,   107,    81,    -1,    -1,   111,
     112,   113,   114,    -1,    -1,    -1,    -1,    92,    93,    -1,
      95,    96,    -1,    -1,    -1,    -1,    -1,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,     4,   113,   114,
     115,    -1,     9,    10,   119,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    20,    -1,    -1,    -1,    24,    25,    26,
      27,    28,    -1,    30,    -1,    -1,    -1,    -1,    35,    36,
      -1,    38,    39,    -1,    -1,    42,    43,    44,    45,    46,
      47,    48,    -1,    50,    51,    52,    -1,    -1,    55,    56,
      -1,    58,    59,    60,    61,    -1,    63,    64,    65,    -1,
      -1,    -1,    -1,    -1,    71,    -1,    73,    -1,    -1,    -1,
      -1,    -1,    79,    -1,    81,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    92,    93,     4,    95,    96,
      -1,    -1,    -1,    -1,    -1,   102,   103,   104,   105,   106,
     107,   108,   109,   110,   111,    -1,   113,   114,   115,    26,
      27,    28,   119,    30,    -1,    -1,    -1,    -1,    35,    36,
      -1,    38,    39,    40,    -1,    42,    43,    44,    45,    46,
      -1,    48,    -1,    50,    51,    52,    -1,    -1,    55,    -1,
      -1,    58,    59,    60,    61,    -1,    63,    -1,    65,    -1,
      -1,    -1,    -1,    -1,    71,    -1,    73,    -1,    -1,    -1,
      -1,    -1,    79,    -1,    81,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    92,    93,    -1,    -1,    96,
      97,    -1,    -1,    -1,    -1,   102,   103,   104,   105,   106,
       4,   108,   109,   110,   111,     9,   113,   114,    -1,    -1,
      -1,    -1,   119,    -1,    18,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    26,    27,    28,    -1,    30,    -1,    -1,    -1,
      -1,    35,    36,    -1,    38,    39,    -1,    -1,    -1,    43,
      44,    45,    46,    -1,    -1,    -1,    50,    51,    -1,    -1,
      -1,    55,    -1,    -1,    58,    59,    60,    61,    -1,    63,
      -1,    65,    -1,    -1,    -1,    -1,    -1,    71,    -1,    73,
      -1,    -1,    -1,    -1,    -1,    79,    -1,    81,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,    93,
       4,    -1,    96,    97,    -1,    -1,    -1,    -1,   102,   103,
     104,   105,   106,    -1,   108,   109,   110,   111,    -1,   113,
     114,    -1,    26,    27,    28,   119,    30,    -1,    -1,    -1,
      -1,    35,    36,    -1,    38,    39,    -1,    -1,    -1,    43,
      44,    45,    46,    -1,    -1,    -1,    50,    51,    -1,    -1,
      -1,    55,    -1,    -1,    58,    59,    60,    61,    -1,    63,
      -1,    65,    -1,    -1,    -1,    -1,    -1,    71,    -1,    73,
      -1,    -1,    -1,    -1,    -1,    79,    -1,    81,    -1,    -1,
      -1,    -1,     4,    -1,    -1,    -1,    -1,    -1,    92,    93,
      -1,    -1,    -1,    97,    -1,    -1,    -1,    -1,   102,   103,
     104,   105,   106,    -1,    26,    27,    28,   111,    30,   113,
     114,    -1,    -1,    35,    36,   119,    38,    39,    -1,    -1,
      -1,    43,    44,    45,    -1,    -1,    -1,    -1,    50,    51,
      -1,    -1,    -1,    55,    -1,    -1,    58,    59,    60,    61,
      -1,    63,    -1,    65,    -1,    -1,    -1,    -1,    -1,    71,
      -1,    73,    -1,    -1,    -1,    -1,    -1,    79,    -1,    81,
      -1,    -1,    -1,    -1,     4,    -1,    -1,    -1,    -1,    -1,
      92,    93,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     102,   103,    -1,    -1,   106,    -1,    -1,    27,    28,    -1,
      30,    -1,    -1,    -1,    -1,    35,    36,   119,    38,    39,
      -1,    -1,    -1,    43,    44,    45,    -1,    -1,    -1,    -1,
      50,    -1,    -1,    -1,    -1,    -1,    22,    23,    58,    -1,
      60,    61,    -1,    29,    -1,    65,    32,    33,    34,    -1,
      -1,    71,    -1,    73,    -1,    -1,    -1,    -1,    -1,    79,
      -1,    81,    -1,    49,    -1,    51,    -1,    53,    -1,    55,
      -1,    -1,    92,    93,    -1,    -1,    62,    63,    64,    -1,
      22,    23,   102,   103,   104,   105,   106,    29,    -1,    -1,
      32,    33,    34,   113,    -1,    -1,    -1,    -1,    -1,   119,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    49,    -1,    51,
      96,    53,    -1,    55,    -1,    -1,    -1,    -1,    -1,    -1,
      62,    63,   108,   109,   110,   111,    -1,    -1,   114,    -1,
      -1,    -1,    -1,    -1,   120,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    96,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   108,   109,   110,   111,
      -1,    -1,   114,    -1,    -1,    -1,    -1,    -1,   120
};

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

  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint16 yyr1[] =
{
       0,   129,   130,   131,   130,   132,   132,   132,   132,   132,
     133,   133,   133,   133,   133,   133,   133,   133,   133,   133,
     133,   134,   134,   135,   135,   136,   136,   136,   137,   137,
     137,   137,   137,   137,   137,   137,   137,   137,   137,   137,
     137,   138,   138,   138,   139,   139,   139,   140,   141,   141,
     141,   142,   142,   142,   142,   142,   142,   142,   142,   143,
     143,   143,   143,   144,   146,   145,   147,   147,   148,   148,
     148,   148,   149,   149,   149,   149,   149,   150,   150,   150,
     150,   150,   150,   150,   150,   150,   150,   150,   150,   150,
     150,   150,   151,   151,   151,   151,   151,   151,   151,   151,
     151,   151,   151,   151,   151,   152,   153,   154,   153,   155,
     155,   155,   155,   156,   157,   157,   157,   157,   157,   157,
     157,   157,   157,   157,   158,   157,   157,   159,   160,   160,
     160,   160,   160,   160,   160,   160,   160,   161,   160,   160,
     162,   163,   163,   164,   164,   164,   165,   165,   166,   165,
     167,   168,   169,   169,   169,   170,   171,   171,   172,   172,
     172,   172,   173,   172,   172,   174,   174,   174,   175,   175,
     175,   176,   177,   177,   177,   178,   179,   179,   179,   179,
     180,   181,   181,   182,   182,   183,   183,   184,   184,   185,
     185,   185,   187,   186,   186,   188,   188,   189,   190,   190,
     191,   191,   191,   192,   192,   193,   193,   194,   194,   194,
     194,   194,   195,   195,   195,   196,   196,   196,   197,   197,
     197,   198,   198,   198,   199,   199,   200,   200,   200,   201,
     201,   201,   202,   202,   203,   203,   204,   204,   205,   205,
     205,   205,   205,   205,   205,   205,   205,   205,   205,   205,
     205,   205,   206,   207,   207,   207,   207,   207,   207,   207,
     207,   208,   208,   208,   208,   208,   208,   208,   208,   208,
     208,   208,   208,   208,   208,   208,   208,   208,   208,   208,
     208,   208,   209,   209,   210,   210,   211,   211,   211,   211,
     212,   212,   212,   212,   213,   213,   213,   213,   213,   213,
     213,   213,   213,   213,   213,   213,   214,   214,   214,   214,
     214,   214,   214,   214,   214,   214,   215,   215,   215,   216,
     216,   217,   218,   218,   220,   219,   219,   221,   221,   222,
     222,   222,   222,   222,   223,   223,   223,   223,   224,   225,
     226,   226,   226,   226,   227,   228,   229,   229,   229,   229,
     230,   230,   230,   230,   230,   230,   230,   230,   230,   231,
     231,   231,   231,   232,   233,   233,   234,   235,   236,   236,
     236,   236,   237,   237,   237,   238,   238,   238,   238,   239,
     239,   239,   240,   240,   240,   241,   241,   241,   241,   241,
     241,   241,   241,   242,   242,   242,   242,   242,   243,   244,
     244,   245,   245,   246,   246,   246,   247,   247,   247,   248,
     249,   249,   250,   250,   250,   250,   250,   250,   250,   250,
     251,   251,   252,   253,   253,   253,   253,   254,   254,   255,
     255,   256,   256,   256,   257,   257,   258,   258,   259,   260,
     261,   261,   262,   262,   263,   263,   263,   263,   264,   265,
     265,   265,   265,   265,   265,   265,   266,   266,   266,   267,
     267,   268,   269,   269,   270,   271,   271,   272,   272,   272,
     273,   273,   274,   274,   274,   274,   274,   275,   275,   275,
     276,   276,   276,   276,   276,   277,   277,   277,   277,   278,
     278,   279,   279,   280,   280,   281,   281,   282,   282,   283,
     283,   283,   283,   284,   285,   285,   286,   286,   287,   287,
     287,   287,   288,   288,   288,   289,   289,   290,   290,   290,
     291,   291,   292,   292,   292,   293,   293,   293,   294,   294,
     295,   295,   295,   296,   296,   296,   297,   297,   297,   298,
     298,   299,   299,   301,   300,   302,   303,   304,   304,   305,
     306,   306,   306,   308,   307,   309,   309,   310,   310,   310,
     311,   310,   312,   313,   314,   314,   314,   315,   316,   316,
     316,   316,   317,   317,   318,   318,   319,   319,   319,   319,
     320,   321,   321,   322,   322,   323,   323,   325,   324,   324,
     324,   326,   326
};

  /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     1,     0,     3,     0,     2,     2,     2,     2,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     3,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     2,     2,     1,
       2,     0,     1,     1,     2,     1,     3,     1,     2,     0,
       2,     2,     2,     4,     0,     2,     1,     1,     3,     5,
       5,     3,     1,     1,     3,     3,     2,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     2,     2,     2,     2,     3,     3,     4,     4,     4,
       4,     4,     5,     5,     5,     4,     1,     0,     2,     0,
       2,     2,     2,     4,     0,     1,     2,     2,     2,     2,
       2,     2,     2,     2,     0,     3,     2,     4,     0,     1,
       2,     2,     2,     2,     2,     2,     2,     0,     3,     2,
       4,     1,     2,     1,     1,     1,     0,     2,     0,     3,
       1,     2,     1,     1,     1,     1,     1,     1,     2,     2,
       2,     2,     0,     3,     2,     4,     5,     2,     0,     2,
       2,     3,     1,     1,     1,     1,     1,     1,     3,     2,
       1,     1,     1,     4,     6,     2,     1,     2,     3,     1,
       1,     1,     0,     5,     2,     1,     1,     1,     0,     2,
       0,     2,     2,     4,     4,     3,     4,     1,     1,     1,
       3,     5,     1,     1,     1,     3,     2,     2,     1,     1,
       2,     1,     1,     1,     1,     1,     1,     3,     3,     1,
       3,     3,     1,     1,     1,     1,     1,     1,     1,     4,
       5,     5,     5,     4,     4,     3,     3,     3,     3,     3,
       3,     3,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     1,     4,     4,     4,     4,     4,     4,     4,     4,
       5,     5,     5,     4,     4,     4,     4,     3,     3,     3,
       3,     3,     1,     4,     1,     3,     2,     2,     3,     3,
       2,     2,     3,     3,     1,     3,     3,     3,     4,     3,
       3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     4,     4,     1,     4,     2,     1,
       3,     2,     0,     2,     0,     2,     1,     2,     3,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     4,     1,
       3,     2,     4,     2,     3,     1,     1,     5,     5,     4,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       2,     2,     2,     1,     1,     2,     1,     1,     4,     3,
       4,     2,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     2,
       1,     3,     3,     2,     3,     3,     1,     1,     3,     3,
       3,     0,     2,     5,     2,     1,     1,     1,     1,     2,
       0,     2,     1,     2,     1,     1,     2,     2,     2,     2,
       1,     2,     1,     1,     1,     1,     1,     1,     1,     0,
       2,     0,     1,     1,     1,     2,     1,     2,     2,     2,
       1,     2,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     0,
       1,     1,     2,     2,     2,     0,     2,     0,     3,     3,
       1,     2,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     2,     2,     2,     1,     1,     1,     1,     1,
       2,     0,     2,     0,     1,     7,     2,     2,     2,     1,
       1,     1,     1,     3,     2,     4,     0,     2,     1,     1,
       2,     2,     1,     1,     1,     1,     3,     1,     2,     2,
       1,     3,     3,     3,     1,     1,     3,     3,     2,     1,
       1,     1,     2,     1,     1,     2,     1,     1,     1,     0,
       2,     0,     2,     0,     3,     1,     2,     2,     1,     3,
       1,     2,     1,     0,     3,     1,     1,     1,     1,     2,
       0,     5,     2,     3,     0,     2,     2,     2,     3,     3,
       3,     1,     1,     3,     2,     3,     2,     2,     2,     2,
       3,     1,     2,     1,     1,     1,     1,     0,     5,     2,
       2,     2,     1
};


#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


#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)                                  \
do                                                              \
  if (yychar == YYEMPTY)                                        \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      YYPOPSTACK (yylen);                                       \
      yystate = *yyssp;                                         \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror (&yylloc, parser, retval, YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
    }                                                           \
while (0)

/* Error token number */
#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).  */

#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)                                \
    do                                                                  \
      if (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 (0)
#endif

#define YYRHSLOC(Rhs, K) ((Rhs)[K])


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

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

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


/* 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 defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL

/* Print *YYLOCP on YYO.  Private, do not rely on its existence. */

YY_ATTRIBUTE_UNUSED
static unsigned
yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
{
  unsigned res = 0;
  int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
  if (0 <= yylocp->first_line)
    {
      res += YYFPRINTF (yyo, "%d", yylocp->first_line);
      if (0 <= yylocp->first_column)
        res += YYFPRINTF (yyo, ".%d", yylocp->first_column);
    }
  if (0 <= yylocp->last_line)
    {
      if (yylocp->first_line < yylocp->last_line)
        {
          res += YYFPRINTF (yyo, "-%d", yylocp->last_line);
          if (0 <= end_col)
            res += YYFPRINTF (yyo, ".%d", end_col);
        }
      else if (0 <= end_col && yylocp->first_column < end_col)
        res += YYFPRINTF (yyo, "-%d", end_col);
    }
  return res;
 }

#  define YY_LOCATION_PRINT(File, Loc)          \
  yy_location_print_ (File, &(Loc))

# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif


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


/*----------------------------------------.
| Print this symbol's value on YYOUTPUT.  |
`----------------------------------------*/

static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, Lily_parser *parser, SCM *retval)
{
  FILE *yyo = yyoutput;
  YYUSE (yyo);
  YYUSE (yylocationp);
  YYUSE (parser);
  YYUSE (retval);
  if (!yyvaluep)
    return;
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
  YYUSE (yytype);
}


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

static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, Lily_parser *parser, SCM *retval)
{
  YYFPRINTF (yyoutput, "%s %s (",
             yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);

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

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

static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

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


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

static void
yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, Lily_parser *parser, SCM *retval)
{
  unsigned long int yylno = yyrline[yyrule];
  int yynrhs = yyr2[yyrule];
  int yyi;
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
             yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr,
                       yystos[yyssp[yyi + 1 - yynrhs]],
                       &(yyvsp[(yyi + 1) - (yynrhs)])
                       , &(yylsp[(yyi + 1) - (yynrhs)])                       , parser, retval);
      YYFPRINTF (stderr, "\n");
    }
}

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

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define 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.  */
static YYSIZE_T
yystrlen (const char *yystr)
{
  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.  */
static char *
yystpcpy (char *yydest, const char *yysrc)
{
  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 *YYMSG, which is of size *YYMSG_ALLOC, an error message
   about the unexpected token YYTOKEN for the state stack whose top is
   YYSSP.

   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
   not large enough to hold the message.  In that case, also set
   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
   required number of bytes is too large to store.  */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
                yytype_int16 *yyssp, int yytoken)
{
  YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
  YYSIZE_T yysize = yysize0;
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  /* Internationalized format string. */
  const char *yyformat = YY_NULLPTR;
  /* Arguments of yyformat. */
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  /* Number of reported tokens (one for the "unexpected", one per
     "expected"). */
  int yycount = 0;

  /* There are many possibilities here to consider:
     - If this state is a consistent state with a default action, then
       the only way this function was invoked is if the default action
       is an error action.  In that case, don't check for expected
       tokens because there are none.
     - The only way there can be no lookahead present (in yychar) is if
       this state is a consistent state with a default action.  Thus,
       detecting the absence of a lookahead is sufficient to determine
       that there is no unexpected or expected token to report.  In that
       case, just report a simple "syntax error".
     - Don't assume there isn't a lookahead just because this state is a
       consistent state with a default action.  There might have been a
       previous inconsistent state, consistent state with a non-default
       action, or user semantic action that manipulated yychar.
     - Of course, the expected token list depends on states to have
       correct lookahead information, and it depends on the parser not
       to perform extra reductions after fetching a lookahead from the
       scanner and before detecting a syntax error.  Thus, state merging
       (from LALR or IELR) and default reductions corrupt the expected
       token list.  However, the list is correct for canonical LR with
       one exception: it will still contain any token that will not be
       accepted due to an error action in a later state.
  */
  if (yytoken != YYEMPTY)
    {
      int yyn = yypact[*yyssp];
      yyarg[yycount++] = yytname[yytoken];
      if (!yypact_value_is_default (yyn))
        {
          /* Start YYX at -YYN if negative to avoid negative indexes in
             YYCHECK.  In other words, skip the first -YYN actions for
             this state because they are default actions.  */
          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 yyx;

          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
                && !yytable_value_is_error (yytable[yyx + yyn]))
              {
                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
                  {
                    yycount = 1;
                    yysize = yysize0;
                    break;
                  }
                yyarg[yycount++] = yytname[yyx];
                {
                  YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
                  if (! (yysize <= yysize1
                         && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
                    return 2;
                  yysize = yysize1;
                }
              }
        }
    }

  switch (yycount)
    {
# define YYCASE_(N, S)                      \
      case N:                               \
        yyformat = S;                       \
      break
      YYCASE_(0, YY_("syntax error"));
      YYCASE_(1, YY_("syntax error, unexpected %s"));
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
# undef YYCASE_
    }

  {
    YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
    if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
      return 2;
    yysize = yysize1;
  }

  if (*yymsg_alloc < yysize)
    {
      *yymsg_alloc = 2 * yysize;
      if (! (yysize <= *yymsg_alloc
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
      return 1;
    }

  /* 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 = *yymsg;
    int yyi = 0;
    while ((*yyp = *yyformat) != '\0')
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
        {
          yyp += yytnamerr (yyp, yyarg[yyi++]);
          yyformat += 2;
        }
      else
        {
          yyp++;
          yyformat++;
        }
  }
  return 0;
}
#endif /* YYERROR_VERBOSE */

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

static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, Lily_parser *parser, SCM *retval)
{
  YYUSE (yyvaluep);
  YYUSE (yylocationp);
  YYUSE (parser);
  YYUSE (retval);
  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YYUSE (yytype);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}




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

int
yyparse (Lily_parser *parser, SCM *retval)
{
/* The lookahead symbol.  */
int yychar;


/* The semantic value of the lookahead symbol.  */
/* Default value used for initialization, for pacifying older GCCs
   or non-GCC compilers.  */
YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);

/* Location data for the lookahead symbol.  */
static YYLTYPE yyloc_default
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  = { 1, 1, 1, 1 }
# endif
;
YYLTYPE yylloc = yyloc_default;

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

    int yystate;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus;

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

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

    /* The state stack.  */
    yytype_int16 yyssa[YYINITDEPTH];
    yytype_int16 *yyss;
    yytype_int16 *yyssp;

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

    /* The location stack.  */
    YYLTYPE yylsa[YYINITDEPTH];
    YYLTYPE *yyls;
    YYLTYPE *yylsp;

    /* The locations where the error started and ended.  */
    YYLTYPE yyerror_range[3];

    YYSIZE_T yystacksize;

  int yyn;
  int yyresult;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken = 0;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;
  YYLTYPE yyloc;

#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

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

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

  yyssp = yyss = yyssa;
  yyvsp = yyvs = yyvsa;
  yylsp = yyls = yylsa;
  yystacksize = YYINITDEPTH;

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

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY; /* Cause a token to be read.  */
  yylsp[0] = yylloc;
  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_alloc, yyss);
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
        YYSTACK_RELOCATE (yyls_alloc, 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));

  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;

/*-----------.
| yybackup.  |
`-----------*/
yybackup:

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

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

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

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

  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 (yytable_value_is_error (yyn))
        goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

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

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

  /* Discard the shifted token.  */
  yychar = YYEMPTY;

  yystate = yyn;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END
  *++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 391 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::pitchnames);
	}
#line 2962 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 4:
#line 393 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->pop_state ();
                *retval = (yyvsp[0]);
 	}
#line 2971 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 5:
#line 399 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_UNSPECIFIED; }
#line 2977 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 6:
#line 400 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	}
#line 2984 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 7:
#line 402 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	}
#line 2991 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 8:
#line 404 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->error_level_ = 1;
	}
#line 2999 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 9:
#line 407 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->error_level_ = 1;
	}
#line 3007 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 10:
#line 414 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->set_identifier (ly_symbol2scm ("$defaultheader"), (yyvsp[0]));
	}
#line 3015 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 11:
#line 417 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("toplevel-book-handler");
		scm_call_1 (proc, (yyvsp[0]));
	}
#line 3024 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 12:
#line 421 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("toplevel-bookpart-handler");
		scm_call_1 (proc, (yyvsp[0]));
	}
#line 3033 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 13:
#line 425 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier
			(unsmob<Book>((yyvsp[0]))->paper_
			 ? "toplevel-book-handler"
			 : "toplevel-bookpart-handler");
		scm_call_1 (proc, (yyvsp[0]));
	}
#line 3045 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 14:
#line 432 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("toplevel-score-handler");
		scm_call_1 (proc, (yyvsp[0]));
	}
#line 3054 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 15:
#line 436 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("toplevel-music-handler");
		scm_call_1 (proc, (yyvsp[0]));
	}
#line 3063 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 16:
#line 440 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("toplevel-text-handler");
		scm_call_1 (proc, scm_list_1 ((yyvsp[0])));
	}
#line 3072 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 17:
#line 444 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("toplevel-text-handler");
		scm_call_1 (proc, (yyvsp[0]));
	}
#line 3081 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 18:
#line 448 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// Evaluate and ignore #xxx, as opposed to \xxx
		parser->lexer_->eval_scm_token ((yyvsp[0]), (yylsp[0]));
	}
#line 3090 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 19:
#line 453 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM out = SCM_UNDEFINED;
		if (Text_interface::is_markup ((yyvsp[0])))
			out = scm_list_1 ((yyvsp[0]));
		else if (Text_interface::is_markup_list ((yyvsp[0])))
			out = (yyvsp[0]);
		if (scm_is_pair (out))
		{
			SCM proc = parser->lexer_->lookup_identifier ("toplevel-text-handler");
			scm_call_1 (proc, out);
		} else if (unsmob<Score> ((yyvsp[0])))
		{
			SCM proc = parser->lexer_->lookup_identifier ("toplevel-score-handler");
			scm_call_1 (proc, (yyvsp[0]));
		} else if (Output_def * od = unsmob<Output_def> ((yyvsp[0]))) {
			SCM id = SCM_EOL;

			if (to_boolean (od->c_variable ("is-paper")))
				id = ly_symbol2scm ("$defaultpaper");
			else if (to_boolean (od->c_variable ("is-midi")))
				id = ly_symbol2scm ("$defaultmidi");
			else if (to_boolean (od->c_variable ("is-layout")))
				id = ly_symbol2scm ("$defaultlayout");

			parser->lexer_->set_identifier (id, (yyvsp[0]));
		} else if (ly_is_module ((yyvsp[0])))
		{
			SCM module = get_header (parser);
			ly_module_copy (module, (yyvsp[0]));
			parser->lexer_->set_identifier
				(ly_symbol2scm ("$defaultheader"), module);
		} else if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			parser->parser_error ((yylsp[0]), _("bad expression type"));
	}
#line 3129 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 20:
#line 487 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM id = SCM_EOL;
		Output_def * od = unsmob<Output_def> ((yyvsp[0]));

		if (to_boolean (od->c_variable ("is-paper")))
			id = ly_symbol2scm ("$defaultpaper");
		else if (to_boolean (od->c_variable ("is-midi")))
			id = ly_symbol2scm ("$defaultmidi");
		else if (to_boolean (od->c_variable ("is-layout")))
			id = ly_symbol2scm ("$defaultlayout");

		parser->lexer_->set_identifier (id, (yyvsp[0]));
	}
#line 3147 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 22:
#line 505 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = loc_on_copy (parser, (yyloc),
				  nested_property ((yyvsp[-2]), scm_reverse_x ((yyvsp[0]), SCM_EOL)));
	}
#line 3156 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 23:
#line 513 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = parser->lexer_->eval_scm_token ((yyvsp[0]), (yylsp[0]));
	}
#line 3164 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 29:
#line 528 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = parser->lexer_->eval_scm_token ((yyvsp[0]), (yylsp[0]));
	}
#line 3172 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 47:
#line 568 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (music_function, (yyloc),
				  (yyvsp[-1]), (yyvsp[0]));
	}
#line 3181 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 48:
#line 576 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
	}
#line 3189 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 50:
#line 581 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_product ((yyvsp[-1]), (yyvsp[0]));
	}
#line 3197 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 51:
#line 588 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// FIXME: @$ does not contain a useful source location
		// for empty rules, and the only token in the whole
		// production, EMBEDDED_LILY, is synthetic and also
		// contains no source location.
		(yyval) = MAKE_SYNTAX (void_music, (yyloc));
	}
#line 3209 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 54:
#line 598 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[0]), SCM_EOL);
		if (Music *m = unsmob<Music> ((yyvsp[-1])))
		{
			if (m->is_mus_type ("post-event-wrapper"))
				(yyval) = scm_append
					(scm_list_2 (m->get_property ("elements"),
						     (yyval)));
			else
				(yyval) = scm_cons ((yyvsp[-1]), (yyval));
		}
		if (scm_is_pair ((yyval))
		    && scm_is_null (scm_cdr ((yyval))))
			(yyval) = scm_car ((yyval));
		else
		{
			Music * m = MY_MAKE_MUSIC ("PostEvents", (yyloc));
			m->set_property ("elements", (yyval));
			(yyval) = m->unprotect ();
		}
	}
#line 3235 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 56:
#line 620 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyvsp[0]) = scm_reverse_x ((yyvsp[0]), SCM_EOL);
		if (unsmob<Music> ((yyvsp[-1])))
			(yyvsp[0]) = scm_cons ((yyvsp[-1]), (yyvsp[0]));
		if (unsmob<Music> ((yyvsp[-2])))
			(yyvsp[0]) = scm_cons ((yyvsp[-2]), (yyvsp[0]));
		(yyval) = MAKE_SYNTAX (sequential_music, (yyloc), (yyvsp[0]));
	}
#line 3248 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 57:
#line 628 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->error_level_ = 1;
                (yyval) = SCM_UNSPECIFIED;
	}
#line 3257 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 58:
#line 632 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->error_level_ = 1;
                (yyval) = (yyvsp[0]);
	}
#line 3266 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 59:
#line 640 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_UNSPECIFIED; }
#line 3272 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 60:
#line 641 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {

	}
#line 3280 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 61:
#line 644 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// Evaluate and ignore #xxx, as opposed to \xxx
		parser->lexer_->eval_scm_token ((yyvsp[0]), (yylsp[0]));
	}
#line 3289 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 62:
#line 648 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (ly_is_module ((yyvsp[0])))
			ly_module_copy (scm_current_module (), (yyvsp[0]));
		else if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			parser->parser_error ((yylsp[0]), _("bad expression type"));
	}
#line 3300 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 63:
#line 657 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = parser->lexer_->remove_scope ();
	}
#line 3308 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 64:
#line 663 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->add_scope (get_header (parser));
	}
#line 3316 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 65:
#line 665 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 3324 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 66:
#line 675 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_string_to_symbol ((yyvsp[0]));
	}
#line 3332 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 67:
#line 679 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_string_to_symbol ((yyvsp[0]));
	}
#line 3340 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 68:
#line 685 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	        parser->lexer_->set_identifier ((yyvsp[-2]), (yyvsp[0]));
                (yyval) = SCM_UNSPECIFIED;
	}
#line 3349 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 69:
#line 689 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM path = scm_cons ((yyvsp[-4]), (yyvsp[-2]));
		parser->lexer_->set_identifier (path, (yyvsp[0]));
                (yyval) = SCM_UNSPECIFIED;
	}
#line 3359 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 70:
#line 694 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM path = scm_cons ((yyvsp[-4]), (yyvsp[-2]));
		parser->lexer_->set_identifier (path, (yyvsp[0]));
                (yyval) = SCM_UNSPECIFIED;
	}
#line 3369 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 71:
#line 700 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_false (Lily::markup_function_p ((yyvsp[0]))))
		{
			parser->parser_error ((yylsp[0]), _ ("Not a markup function"));
		} else {
			scm_primitive_eval
				(scm_list_3
				 (Lily::define_markup_command,
				  scm_string_to_symbol ((yyvsp[-2])),
				  ly_quote_scm ((yyvsp[0]))));
		}
		(yyval) = SCM_UNSPECIFIED;
	}
#line 3387 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 74:
#line 720 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[-2]), (yyvsp[0]));
	}
#line 3395 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 75:
#line 724 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[-2]), (yyvsp[0]));
	}
#line 3403 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 76:
#line 728 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[0]), SCM_EOL);
		if (Music *m = unsmob<Music> ((yyvsp[-1])))
		{
			if (m->is_mus_type ("post-event-wrapper"))
				(yyval) = scm_append
					(scm_list_2 (m->get_property ("elements"),
						     (yyval)));
			else
				(yyval) = scm_cons ((yyvsp[-1]), (yyval));
		}
		if (scm_is_pair ((yyval))
		    && scm_is_null (scm_cdr ((yyval))))
			(yyval) = scm_car ((yyval));
		else
		{
			Music * m = MY_MAKE_MUSIC ("PostEvents", (yyloc));
			m->set_property ("elements", (yyval));
			(yyval) = m->unprotect ();
		}
	}
#line 3429 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 91:
#line 767 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (partial_music_function, (yyloc),
				  scm_reverse_x ((yyvsp[-1]), SCM_EOL));
	}
#line 3438 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 92:
#line 776 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-1]), (yyvsp[0]), SCM_EOL);
	}
#line 3446 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 93:
#line 780 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-1]), (yyvsp[0]), SCM_EOL);
	}
#line 3454 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 94:
#line 784 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-1]), (yyvsp[0]), SCM_EOL);
	}
#line 3462 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 95:
#line 788 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[-1])))
			(yyval) = scm_list_1 (SCM_BOOL_F);
		else
			(yyval) = scm_cons
				(scm_list_3 (Syntax::property_override_function,
					     scm_cdr ((yyvsp[-1])), scm_car ((yyvsp[-1]))),
				 SCM_EOL);
	}
#line 3476 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 96:
#line 798 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[-1])))
			(yyval) = scm_list_1 (SCM_BOOL_F);
		else
			(yyval) = scm_cons
				(scm_list_3 (Syntax::property_set_function,
					     scm_cadr ((yyvsp[-1])), scm_car ((yyvsp[-1]))),
				 SCM_EOL);
	}
#line 3490 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 97:
#line 808 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-3]), (yyvsp[-1]), (yyvsp[0]));
	}
#line 3498 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 98:
#line 812 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-3]), (yyvsp[-1]), (yyvsp[0]));
	}
#line 3506 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 99:
#line 816 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-3]), (yyvsp[-1]), (yyvsp[0]));
	}
#line 3514 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 100:
#line 820 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[-2])))
			(yyval) = scm_list_1 (SCM_BOOL_F);
		else
			(yyval) = scm_cons
				(scm_list_3 (Syntax::property_override_function,
					     scm_cdr ((yyvsp[-2])), scm_car ((yyvsp[-2]))),
				 (yyvsp[0]));
	}
#line 3528 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 101:
#line 830 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[-2])))
			(yyval) = scm_list_1 (SCM_BOOL_F);
		else
			(yyval) = scm_cons
				(scm_list_3 (Syntax::property_set_function,
					     scm_cadr ((yyvsp[-2])), scm_car ((yyvsp[-2]))),
				 (yyvsp[0]));
	}
#line 3542 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 102:
#line 840 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-4]), (yyvsp[-1]), (yyvsp[0]));
	}
#line 3550 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 103:
#line 844 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-4]), (yyvsp[-1]), (yyvsp[0]));
	}
#line 3558 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 104:
#line 848 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[-4]), (yyvsp[-1]), (yyvsp[0]));
	}
#line 3566 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 105:
#line 855 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		Context_def *td = unsmob<Context_def> ((yyval));
		if (!td) {
			(yyval) = Context_def::make_scm ();
			td = unsmob<Context_def> ((yyval));
		}
		td->origin ()->set_spot ((yyloc));
	}
#line 3580 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 107:
#line 869 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::pitchnames);
	}
#line 3588 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 108:
#line 873 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->pop_state ();
		(yyval) = (yyvsp[0]);
	}
#line 3597 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 109:
#line 881 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_UNSPECIFIED;
	}
#line 3605 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 110:
#line 884 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!SCM_UNBNDP ((yyvsp[0]))) {
			Context_def *td = unsmob<Context_def> ((yyval));
			if (!td) {
				(yyval) = Context_def::make_scm ();
				td = unsmob<Context_def> ((yyval));
			}
			unsmob<Context_def> ((yyval))->add_context_mod ((yyvsp[0]));
		}
	}
#line 3620 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 111:
#line 894 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                Context_def *td = unsmob<Context_def> ((yyval));
		if (!td) {
			(yyval) = Context_def::make_scm ();
			td = unsmob<Context_def> ((yyval));
		}
                SCM new_mods = unsmob<Context_mod> ((yyvsp[0]))->get_mods ();
                for (SCM m = new_mods; scm_is_pair (m); m = scm_cdr (m)) {
                    td->add_context_mod (scm_car (m));
                }
	}
#line 3636 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 112:
#line 905 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Context_def *td = unsmob<Context_def> ((yyvsp[-1]));
		if (scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			;
		else if (!td && unsmob<Context_def> ((yyvsp[0])))
			(yyval) = (yyvsp[0]);
		else {
			if (!td) {
				(yyval) = Context_def::make_scm ();
				td = unsmob<Context_def> ((yyval));
			}
			if (unsmob<Music> ((yyvsp[0]))) {
				SCM proc = parser->lexer_->lookup_identifier ("context-mod-music-handler");
				(yyvsp[0]) = scm_call_1 (proc, (yyvsp[0]));
			}
			if (Context_mod *cm = unsmob<Context_mod> ((yyvsp[0]))) {
				for (SCM m = cm->get_mods (); scm_is_pair (m); m = scm_cdr (m)) {
					td->add_context_mod (scm_car (m));
				}
			} else
				parser->parser_error ((yylsp[0]), _ ("not a context mod"));
		}
	}
#line 3664 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 113:
#line 933 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		unsmob<Book> ((yyval))->origin ()->set_spot ((yyloc));
		pop_paper (parser);
		parser->lexer_->set_identifier (ly_symbol2scm ("$current-book"), SCM_BOOL_F);
	}
#line 3675 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 114:
#line 945 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Book *book = new Book;
		init_papers (parser);
		book->paper_ = dynamic_cast<Output_def*> (unsmob<Output_def> (parser->lexer_->lookup_identifier ("$defaultpaper"))->clone ());
		book->paper_->unprotect ();
		push_paper (parser, book->paper_);
		book->header_ = get_header (parser);
                (yyval) = book->unprotect ();
		parser->lexer_->set_identifier (ly_symbol2scm ("$current-book"), (yyval));
	}
#line 3690 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 115:
#line 955 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->set_identifier (ly_symbol2scm ("$current-book"), (yyvsp[0]));
	}
#line 3698 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 116:
#line 958 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		unsmob<Book> ((yyvsp[-1]))->paper_ = unsmob<Output_def> ((yyvsp[0]));
		set_paper (parser, unsmob<Output_def> ((yyvsp[0])));
	}
#line 3707 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 117:
#line 962 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("book-bookpart-handler");
		scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
	}
#line 3716 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 118:
#line 966 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("book-score-handler");
		scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
	}
#line 3725 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 119:
#line 970 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("book-music-handler");
		scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
	}
#line 3734 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 120:
#line 974 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("book-text-handler");
		scm_call_2 (proc, (yyvsp[-1]), scm_list_1 ((yyvsp[0])));
	}
#line 3743 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 121:
#line 978 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("book-text-handler");
		scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
	}
#line 3752 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 122:
#line 982 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// Evaluate and ignore #xxx, as opposed to \xxx
		parser->lexer_->eval_scm_token ((yyvsp[0]), (yylsp[0]));
	}
#line 3761 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 123:
#line 987 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM out = SCM_UNDEFINED;
		if (Text_interface::is_markup ((yyvsp[0])))
			out = scm_list_1 ((yyvsp[0]));
		else if (Text_interface::is_markup_list ((yyvsp[0])))
			out = (yyvsp[0]);
		if (scm_is_pair (out))
		{
			SCM proc = parser->lexer_->lookup_identifier ("book-text-handler");
			scm_call_2 (proc, (yyvsp[-1]), out);
		} else if (unsmob<Score> ((yyvsp[0])))
		{
			SCM proc = parser->lexer_->lookup_identifier ("book-score-handler");
			scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
		} else if (Output_def *od = unsmob<Output_def> ((yyvsp[0]))) {
			if (to_boolean (od->lookup_variable (ly_symbol2scm ("is-paper")))) {
				unsmob<Book> ((yyvsp[-1]))->paper_ = od;
				set_paper (parser, od);
			} else {
				parser->parser_error ((yylsp[0]), _ ("need \\paper for paper block"));
			}
		} else if (ly_is_module ((yyvsp[0])))
		{
			ly_module_copy (unsmob<Book> ((yyvsp[-1]))->header_, (yyvsp[0]));
		} else if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			parser->parser_error ((yylsp[0]), _("bad expression type"));
	}
#line 3793 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 124:
#line 1015 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->add_scope (unsmob<Book> ((yyvsp[0]))->header_);
	}
#line 3801 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 126:
#line 1018 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                Book *book = unsmob<Book> ((yyvsp[-1]));
		book->paper_ = 0;
		book->scores_ = SCM_EOL;
		book->bookparts_ = SCM_EOL;
	}
#line 3812 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 127:
#line 1027 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		unsmob<Book> ((yyval))->origin ()->set_spot ((yyloc));
		parser->lexer_->set_identifier (ly_symbol2scm ("$current-bookpart"), SCM_BOOL_F);
	}
#line 3822 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 128:
#line 1035 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Book *book = new Book;
                (yyval) = book->unprotect ();
		parser->lexer_->set_identifier (ly_symbol2scm ("$current-bookpart"), (yyval));
	}
#line 3832 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 129:
#line 1040 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->set_identifier (ly_symbol2scm ("$current-bookpart"), (yyvsp[0]));
	}
#line 3840 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 130:
#line 1043 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		unsmob<Book> ((yyval))->paper_ = unsmob<Output_def> ((yyvsp[0]));
	}
#line 3848 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 131:
#line 1046 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("bookpart-score-handler");
		scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
	}
#line 3857 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 132:
#line 1050 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("bookpart-music-handler");
		scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
	}
#line 3866 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 133:
#line 1054 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("bookpart-text-handler");
		scm_call_2 (proc, (yyvsp[-1]), scm_list_1 ((yyvsp[0])));
	}
#line 3875 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 134:
#line 1058 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM proc = parser->lexer_->lookup_identifier ("bookpart-text-handler");
		scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
	}
#line 3884 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 135:
#line 1062 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// Evaluate and ignore #xxx, as opposed to \xxx
		parser->lexer_->eval_scm_token ((yyvsp[0]), (yylsp[0]));
	}
#line 3893 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 136:
#line 1067 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM out = SCM_UNDEFINED;
		if (Text_interface::is_markup ((yyvsp[0])))
			out = scm_list_1 ((yyvsp[0]));
		else if (Text_interface::is_markup_list ((yyvsp[0])))
			out = (yyvsp[0]);
		if (scm_is_pair (out))
		{
			SCM proc = parser->lexer_->lookup_identifier ("bookpart-text-handler");
			scm_call_2 (proc, (yyvsp[-1]), out);
		} else if (unsmob<Score> ((yyvsp[0])))
		{
			SCM proc = parser->lexer_->lookup_identifier ("bookpart-score-handler");
			scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
		} else if (Output_def *od = unsmob<Output_def> ((yyvsp[0]))) {
			if (to_boolean (od->lookup_variable (ly_symbol2scm ("is-paper")))) {
				unsmob<Book> ((yyvsp[-1]))->paper_ = od;
			} else {
				parser->parser_error ((yylsp[0]), _ ("need \\paper for paper block"));
			}
		} else if (ly_is_module ((yyvsp[0]))) {
			Book *book = unsmob<Book> ((yyvsp[-1]));
			if (!ly_is_module (book->header_))
				book->header_ = ly_make_module (false);
			ly_module_copy (book->header_, (yyvsp[0]));
		} else if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			parser->parser_error ((yylsp[0]), _("bad expression type"));
	}
#line 3926 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 137:
#line 1096 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                Book *book = unsmob<Book> ((yyvsp[0]));
		if (!ly_is_module (book->header_))
			book->header_ = ly_make_module (false);
		parser->lexer_->add_scope (book->header_);
	}
#line 3937 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 139:
#line 1102 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                Book *book = unsmob<Book> ((yyvsp[-1]));
		book->paper_ = 0;
		book->scores_ = SCM_EOL;
	}
#line 3947 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 140:
#line 1110 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		unsmob<Score> ((yyvsp[-1]))->origin ()->set_spot ((yyloc));
		(yyval) = (yyvsp[-1]);
	}
#line 3956 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 141:
#line 1117 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!unsmob<Score> ((yyvsp[0]))) {
			parser->parser_error ((yylsp[0]), _("Missing music in \\score"));
			(yyval) = (new Score)->unprotect ();
			if (scm_is_pair ((yyvsp[0])) && ly_is_module (scm_car ((yyvsp[0]))))
			{
				unsmob<Score> ((yyval))->set_header (scm_car ((yyvsp[0])));
				(yyvsp[0]) = scm_cdr ((yyvsp[0]));
			}
			for (SCM p = scm_reverse_x ((yyvsp[0]), SCM_EOL);
			     scm_is_pair (p); p = scm_cdr (p))
			{
				unsmob<Score> ((yyval))->
					add_output_def (unsmob<Output_def> (scm_car (p)));
			}
		}
	}
#line 3978 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 142:
#line 1134 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		unsmob<Score> ((yyval))->error_found_ = true;
	}
#line 3986 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 146:
#line 1147 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_EOL;
	}
#line 3994 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 147:
#line 1151 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Output_def *od = unsmob<Output_def> ((yyvsp[0]));
		if (od) {
			if (to_boolean (od->lookup_variable (ly_symbol2scm ("is-paper"))))
			{
				parser->parser_error ((yylsp[0]), _("\\paper cannot be used in \\score, use \\layout instead"));
				od = 0;
				(yyvsp[0]) = SCM_UNSPECIFIED;
			}
		} else if (!unsmob<Score> ((yyval))) {
			if (unsmob<Music> ((yyvsp[0]))) {
				(yyvsp[0]) = Lily::scorify_music ((yyvsp[0]));
			}
			if (unsmob<Score> ((yyvsp[0])))
			{
				(yyval) = (yyvsp[0]);
				(yyvsp[0]) = SCM_UNSPECIFIED;
			}
		}
		Score *score = unsmob<Score> ((yyval));
		if (score && scm_is_pair ((yyvsp[-1]))) {
			if (ly_is_module (scm_car ((yyvsp[-1]))))
			{
				score->set_header (scm_car ((yyvsp[-1])));
				(yyvsp[-1]) = scm_cdr ((yyvsp[-1]));
			}
			for (SCM p = scm_reverse_x ((yyvsp[-1]), SCM_EOL);
			     scm_is_pair (p); p = scm_cdr (p))
			{
				score->add_output_def (unsmob<Output_def> (scm_car (p)));
			}
		}
		if (od) {
			if (score)
				score->add_output_def (od);
			else if (scm_is_pair ((yyval)) && ly_is_module (scm_car ((yyval))))
				scm_set_cdr_x ((yyval), scm_cons ((yyvsp[0]), scm_cdr ((yyval))));
			else
				(yyval) = scm_cons ((yyvsp[0]), (yyval));
		} else if (ly_is_module ((yyvsp[0]))) {
			SCM module = SCM_UNSPECIFIED;
			if (score) {
				module = score->get_header ();
				if (!ly_is_module (module))
				{
					module = ly_make_module (false);
					score->set_header (module);
				}
			} else if (scm_is_pair ((yyval)) && ly_is_module (scm_car ((yyval))))
				module = scm_car ((yyval));
			else {
				module = ly_make_module (false);
				(yyval) = scm_cons (module, (yyval));
			}
			ly_module_copy (module, (yyvsp[0]));
		} else if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			parser->parser_error ((yylsp[0]), _("Spurious expression in \\score"));
	}
#line 4057 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 148:
#line 1210 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (Score *score = unsmob<Score> ((yyvsp[0]))) {
			if (!ly_is_module (score->get_header ()))
				score->set_header (ly_make_module (false));
			parser->lexer_->add_scope (score->get_header ());
		} else {
			if (!scm_is_pair ((yyvsp[0])) || !ly_is_module (scm_car ((yyvsp[0]))))
				(yyvsp[0]) = scm_cons (ly_make_module (false), (yyvsp[0]));
			parser->lexer_->add_scope (scm_car ((yyvsp[0])));
		}
	}
#line 4073 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 149:
#line 1221 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-2]);
	}
#line 4081 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 150:
#line 1232 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                Output_def *od = unsmob<Output_def> ((yyvsp[0]));

		if (!to_boolean (od->lookup_variable (ly_symbol2scm ("is-paper"))))
		{
			parser->parser_error ((yylsp[0]), _ ("need \\paper for paper block"));
			(yyval) = get_paper (parser)->unprotect ();
		}
	}
#line 4095 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 151:
#line 1245 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_pair ((yyvsp[-1])))
			(yyval) = scm_car ((yyvsp[-1]));

		parser->lexer_->remove_scope ();
		parser->lexer_->pop_state ();
	}
#line 4107 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 152:
#line 1255 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                Output_def *p = get_paper (parser);
		p->input_origin_ = (yyloc);
		parser->lexer_->add_scope (p->scope_);
                (yyval) = p->unprotect ();
	}
#line 4118 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 153:
#line 1261 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Output_def *p = get_midi (parser);
		(yyval) = p->unprotect ();
		parser->lexer_->add_scope (p->scope_);
	}
#line 4128 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 154:
#line 1266 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Output_def *p = get_layout (parser);

		parser->lexer_->add_scope (p->scope_);
		(yyval) = p->unprotect ();
	}
#line 4139 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 155:
#line 1275 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_initial_state ();
		(yyval) = (yyvsp[0]);
	}
#line 4148 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 158:
#line 1292 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		unsmob<Output_def> ((yyvsp[-1]))->input_origin_.set_spot ((yyloc));
		// This is a stupid trick to mark the beginning of the
		// body for deciding whether to allow
		// embedded_scm_active to have an output definition
		(yyval) = scm_list_1 ((yyvsp[-1]));
	}
#line 4160 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 159:
#line 1299 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_pair ((yyvsp[-1])))
			(yyval) = scm_car ((yyvsp[-1]));
	}
#line 4169 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 160:
#line 1304 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// We don't switch into note mode for Scheme functions
		// here.  Does not seem warranted/required in output
		// definitions.
		if (scm_is_pair ((yyvsp[-1])))
		{
			Output_def *o = unsmob<Output_def> ((yyvsp[0]));
			if (o) {
				o->input_origin_.set_spot ((yyloc));
				(yyvsp[-1]) = o->self_scm ();
				parser->lexer_->remove_scope ();
				parser->lexer_->add_scope (o->scope_);
				(yyvsp[0]) = SCM_UNSPECIFIED;
			} else
				(yyvsp[-1]) = scm_car ((yyvsp[-1]));
		}
		if (unsmob<Context_def> ((yyvsp[0])))
			assign_context_def (unsmob<Output_def> ((yyvsp[-1])), (yyvsp[0]));
		// Seems unlikely, but let's be complete:
		else if (unsmob<Music> ((yyvsp[0])))
		{
			SCM proc = parser->lexer_->lookup_identifier
				("output-def-music-handler");
			scm_call_2 (proc, (yyvsp[-1]), (yyvsp[0]));
		} else if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			parser->parser_error ((yylsp[0]), _("bad expression type"));
		(yyval) = (yyvsp[-1]);
	}
#line 4202 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 161:
#line 1332 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_pair ((yyvsp[-1])))
			(yyval) = scm_car ((yyvsp[-1]));
		// Evaluate and ignore #xxx, as opposed to \xxx
		parser->lexer_->eval_scm_token ((yyvsp[0]), (yylsp[0]));
	}
#line 4213 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 162:
#line 1339 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_pair ((yyvsp[0])))
			(yyvsp[0]) = scm_car ((yyvsp[0]));
		parser->lexer_->push_note_state (Lily::pitchnames);
	}
#line 4223 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 163:
#line 1344 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->pop_state ();
		if (unsmob<Context_def> ((yyvsp[0])))
			assign_context_def (unsmob<Output_def> ((yyvsp[-2])), (yyvsp[0]));
		else {

			SCM proc = parser->lexer_->lookup_identifier
				     ("output-def-music-handler");
			scm_call_2 (proc, (yyvsp[-2]), (yyvsp[0]));
		}
		(yyval) = (yyvsp[-2]);
	}
#line 4240 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 164:
#line 1356 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {

	}
#line 4248 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 165:
#line 1362 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (tempo, (yyloc), SCM_EOL, (yyvsp[-2]), (yyvsp[0]));
	}
#line 4256 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 166:
#line 1365 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (tempo, (yyloc), (yyvsp[-3]), (yyvsp[-2]), (yyvsp[0]));
	}
#line 4264 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 167:
#line 1368 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (tempo, (yyloc), (yyvsp[0]));
	}
#line 4272 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 168:
#line 1377 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_EOL;
	}
#line 4280 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 169:
#line 1380 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (unsmob<Music> ((yyvsp[0])))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
	}
#line 4289 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 170:
#line 1384 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = MY_MAKE_MUSIC("Music", (yyloc));
		// ugh. code dup
		m->set_property ("error-found", SCM_BOOL_T);
		(yyval) = scm_cons (m->self_scm (), (yyvsp[-1]));
		m->unprotect (); /* UGH */
	}
#line 4301 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 171:
#line 1395 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[-1]), SCM_EOL);
	}
#line 4309 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 175:
#line 1407 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	        (yyval) = make_music_from_simple (parser, (yylsp[0]), (yyvsp[0]));
                if (!unsmob<Music> ((yyval)))
		{
                        parser->parser_error ((yylsp[0]), _ ("music expected"));
			(yyval) = MAKE_SYNTAX (void_music, (yyloc));
		}
	}
#line 4322 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 176:
#line 1419 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (unsmob<Music> ((yyvsp[0]))->is_mus_type ("post-event")) {
			parser->parser_error ((yylsp[0]), _ ("unexpected post-event"));
			(yyval) = SCM_UNSPECIFIED;
		}
	}
#line 4333 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 177:
#line 1426 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 4341 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 178:
#line 1430 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 4349 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 179:
#line 1434 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));

		parser->default_duration_ = *unsmob<Duration> ((yyvsp[-1]));
		n->set_property ("duration", (yyvsp[-1]));

		if (scm_is_pair ((yyvsp[0])))
			n->set_property ("articulations",
					 scm_reverse_x ((yyvsp[0]), SCM_EOL));
		(yyval) = n->unprotect ();
	}
#line 4365 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 180:
#line 1449 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			(yyval) = (yyvsp[0]);
		else if (Music *m = unsmob<Music> ((yyvsp[0]))) {
			if (m->is_mus_type ("post-event")) {
				parser->parser_error
					((yylsp[0]), _ ("unexpected post-event"));
				(yyval) = SCM_UNSPECIFIED;
			} else
				(yyval) = (yyvsp[0]);
		} else if (parser->lexer_->is_lyric_state ()
			   && Text_interface::is_markup ((yyvsp[0])))
			MYBACKUP (LYRIC_ELEMENT, (yyvsp[0]), (yylsp[0]));
		else {
			(yyloc).warning (_ ("Ignoring non-music expression"));
			(yyval) = (yyvsp[0]);
		}
	}
#line 4388 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 183:
#line 1478 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (repeat, (yyloc), (yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]), SCM_EOL);
	}
#line 4396 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 184:
#line 1482 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (repeat, (yyloc), (yyvsp[-4]), (yyvsp[-3]), (yyvsp[-2]), (yyvsp[0]));
	}
#line 4404 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 185:
#line 1488 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (sequential_music, (yyloc), (yyvsp[0]));
	}
#line 4412 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 186:
#line 1491 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (sequential_music, (yyloc), (yyvsp[0]));
	}
#line 4420 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 187:
#line 1497 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (simultaneous_music, (yyloc), (yyvsp[0]));
	}
#line 4428 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 188:
#line 1500 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (simultaneous_music, (yyloc), scm_reverse_x ((yyvsp[-1]), SCM_EOL));
	}
#line 4436 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 192:
#line 1513 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::pitchnames);
	}
#line 4444 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 193:
#line 1516 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                parser->lexer_->pop_state ();
                (yyval) = (yyvsp[-1]);
        }
#line 4453 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 194:
#line 1521 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (unsmob<Music> ((yyvsp[0]))) {
			SCM proc = parser->lexer_->lookup_identifier ("context-mod-music-handler");
			(yyvsp[0]) = scm_call_1 (proc, (yyvsp[0]));
		}
		if (unsmob<Context_mod> ((yyvsp[0])))
			(yyval) = (yyvsp[0]);
		else {
			// let's permit \with #*unspecified* to go for
			// an empty context mod
			if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
				parser->parser_error ((yylsp[0]), _ ("not a context mod"));
			(yyval) = Context_mod ().smobbed_copy ();
		}
	}
#line 4473 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 197:
#line 1549 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_pair ((yyvsp[0])))
			(yyval) = scm_append_x (scm_reverse_x ((yyvsp[0]), SCM_EOL));
        }
#line 4482 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 198:
#line 1562 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_EOL;
	}
#line 4490 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 199:
#line 1566 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (Context_mod *m = unsmob<Context_mod> ((yyvsp[0])))
			(yyval) = scm_cons (m->get_mods (), (yyvsp[-1]));
	}
#line 4499 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 200:
#line 1578 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
            (yyval) = Context_mod ().smobbed_copy ();
        }
#line 4507 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 201:
#line 1581 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!SCM_UNBNDP ((yyvsp[0])))
			unsmob<Context_mod> ((yyvsp[-1]))->add_context_mod ((yyvsp[0]));
        }
#line 4516 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 202:
#line 1585 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (unsmob<Music> ((yyvsp[0]))) {
			SCM proc = parser->lexer_->lookup_identifier ("context-mod-music-handler");
			(yyvsp[0]) = scm_call_1 (proc, (yyvsp[0]));
		}
		if (unsmob<Context_mod> ((yyvsp[0])))
			unsmob<Context_mod> ((yyval))->add_context_mods
				(unsmob<Context_mod> ((yyvsp[0]))->get_mods ());
		else if (!scm_is_eq ((yyvsp[0]), SCM_UNSPECIFIED))
			parser->parser_error ((yylsp[0]), _ ("not a context mod"));
        }
#line 4532 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 203:
#line 1599 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = START_MAKE_SYNTAX (context_specification, (yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]), SCM_BOOL_F);
	}
#line 4540 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 204:
#line 1602 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = START_MAKE_SYNTAX (context_specification, (yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]), SCM_BOOL_T);
	}
#line 4548 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 205:
#line 1608 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[0]), (yyvsp[-1]), SCM_EOL);
	}
#line 4556 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 206:
#line 1611 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_acons ((yyvsp[0]), (yyvsp[-1]), (yyvsp[-3]));
	}
#line 4564 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 210:
#line 1636 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (lyric_combine, (yyloc), (yyvsp[-1]), SCM_EOL, (yyvsp[0]));
	}
#line 4572 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 211:
#line 1640 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (lyric_combine, (yyloc), (yyvsp[-1]), (yyvsp[-3]), (yyvsp[0]));
	}
#line 4580 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 215:
#line 1653 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Input i;
		i.set_location ((yylsp[-2]), (yylsp[-1]));
		(yyval) = FINISH_MAKE_SYNTAX ((yyvsp[-2]), i, (yyvsp[-1]));
		(yyval) = MAKE_SYNTAX (add_lyrics, (yyloc), (yyval), scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 4591 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 216:
#line 1660 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = FINISH_MAKE_SYNTAX ((yyvsp[-1]), (yyloc), (yyvsp[0]));
	}
#line 4599 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 217:
#line 1664 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = FINISH_MAKE_SYNTAX ((yyvsp[-1]), (yyloc), (yyvsp[0]));
	}
#line 4607 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 220:
#line 1673 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (add_lyrics, (yyloc), (yyvsp[-1]), scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 4615 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 224:
#line 1685 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = (yyvsp[0]); }
#line 4621 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 225:
#line 1686 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = (yyvsp[0]); }
#line 4627 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 227:
#line 1745 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_append (scm_list_2 ((yyvsp[-2]), scm_reverse_x ((yyvsp[0]), SCM_EOL)));
	}
#line 4635 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 228:
#line 1749 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_append (scm_list_2 ((yyvsp[-2]), scm_reverse_x ((yyvsp[0]), SCM_EOL)));
	}
#line 4643 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 230:
#line 1757 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_append_x (scm_list_2 ((yyvsp[0]), (yyvsp[-2])));
	}
#line 4651 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 231:
#line 1761 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_append_x (scm_list_2 ((yyvsp[0]), (yyvsp[-2])));
	}
#line 4659 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 233:
#line 1771 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_reverse_key_list ((yyvsp[0]));
		if (SCM_UNBNDP ((yyval))) {
			parser->parser_error ((yylsp[0]), _("not a key"));
			(yyval) = SCM_EOL;
		}
	}
#line 4671 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 234:
#line 1783 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_string_to_symbol ((yyvsp[0]));
	}
#line 4679 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 236:
#line 1792 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = try_word_variants (Lily::key_list_p, (yyvsp[0]));
		if (SCM_UNBNDP ((yyval))) {
			parser->parser_error ((yylsp[0]), _("not a key"));
			(yyval) = SCM_EOL;
		} else
			(yyval) = scm_reverse ((yyval));
	}
#line 4692 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 237:
#line 1801 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_1 ((yyvsp[0]));
	}
#line 4700 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 239:
#line 1809 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-1]), (yyvsp[-2]));
	}
#line 4708 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 240:
#line 1813 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM n = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
		if (scm_is_true (scm_call_1 ((yyvsp[-3]), n)))
			(yyval) = scm_cons (n, (yyvsp[-2]));
		else {
			Music *t = MY_MAKE_MUSIC ("FingeringEvent", (yylsp[0]));
			t->set_property ("digit", (yyvsp[0]));
			(yyval) = check_scheme_arg (parser, (yylsp[-1]), t->unprotect (),
					       (yyvsp[-2]), (yyvsp[-3]), n);
		}
	}
#line 4724 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 241:
#line 1825 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[-1]),
				       scm_difference ((yyvsp[0]), SCM_UNDEFINED),
				       (yyvsp[-2]), (yyvsp[-3]));
	}
#line 4734 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 242:
#line 1831 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[-1]),
				       scm_difference ((yyvsp[0]), SCM_UNDEFINED),
				       (yyvsp[-2]), (yyvsp[-3]));
	}
#line 4744 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 243:
#line 1837 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		else
			(yyval) = check_scheme_arg (parser, (yylsp[0]),
					       make_music_from_simple
					       (parser, (yylsp[0]), (yyvsp[0])),
					       (yyvsp[-1]), (yyvsp[-2]));
	}
#line 4758 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 244:
#line 1847 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-1]), (yyvsp[-2]));
	}
#line 4766 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 245:
#line 1851 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-1]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-2]));
		else
			(yyval) = check_scheme_arg (parser, (yylsp[0]),
					       make_music_from_simple
					       (parser, (yylsp[0]), (yyvsp[0])),
					       (yyvsp[-2]), (yyvsp[-1]));
	}
#line 4780 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 246:
#line 1861 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 4788 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 247:
#line 1865 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 4796 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 248:
#line 1869 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 4804 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 249:
#line 1873 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 4812 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 250:
#line 1877 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 4820 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 251:
#line 1881 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 4828 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 252:
#line 1889 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_music_from_simple (parser, (yyloc),
					     make_duration ((yyvsp[-3]), scm_to_int ((yyvsp[-2])), (yyvsp[-1])));
		Music *m = unsmob<Music> ((yyval));
		assert (m);
		if (scm_is_pair ((yyvsp[0])))
			m->set_property ("articulations",
					 scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 4842 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 253:
#line 1902 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		SCM res = try_string_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res))
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, res);
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple
			   (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), STRING, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 4863 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 254:
#line 1919 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true
		    (scm_call_1
		     ((yyvsp[-2]), make_music_from_simple
		      (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), PITCH_IDENTIFIER, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 4878 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 255:
#line 1930 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true
		    (scm_call_1
		     ((yyvsp[-2]), make_music_from_simple
		      (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), TONICNAME_PITCH, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 4893 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 256:
#line 1941 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		SCM res = try_string_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res))
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, res);
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple
			   (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), STRING, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 4914 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 257:
#line 1958 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		SCM res = try_word_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res))
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, res);
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple
			   (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), STRING, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 4935 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 258:
#line 1975 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple
			   (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), STRING, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 4952 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 259:
#line 1988 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			// May be 3 \cm or similar
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), REAL, (yyvsp[0]));
		else if (scm_is_true (scm_call_1 ((yyvsp[-2]), scm_list_1 ((yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, scm_list_1 ((yyvsp[0])));
		else {
			SCM d = make_duration ((yyvsp[0]));
			if (!SCM_UNBNDP (d)) {
				if (scm_is_true (scm_call_1 ((yyvsp[-2]), d)))
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_IDENTIFIER, d);
				else if (scm_is_true
					 (scm_call_1
					  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), d))))
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_ARG, d);
				else
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0])); // trigger error
			} else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0])); // trigger error
		}
	}
#line 4979 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 260:
#line 2011 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_IDENTIFIER, (yyvsp[0]));
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_ARG, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0])); // trigger error
	}
#line 4995 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 262:
#line 2030 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		else {
			(yyval) = make_music_from_simple (parser, (yylsp[0]), (yyvsp[0]));
			if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyval))))
				(yyval) = scm_cons ((yyval), (yyvsp[-1]));
			else
			{
				(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
				MYBACKUP (SCM_ARG, (yyvsp[0]), (yylsp[0]));
			}
		}
	}
#line 5014 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 263:
#line 2045 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
		{
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		} else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (EVENT_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5028 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 264:
#line 2055 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true
		    (scm_call_1
		     ((yyvsp[-2]), make_music_from_simple
		      (parser, (yylsp[0]), (yyvsp[0])))))
		{
			(yyval) = (yyvsp[-1]);
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), PITCH_IDENTIFIER, (yyvsp[0]));
		} else if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (PITCH_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5048 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 265:
#line 2071 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true
		    (scm_call_1
		     ((yyvsp[-2]), make_music_from_simple
		      (parser, (yylsp[0]), (yyvsp[0])))))
		{
			(yyval) = (yyvsp[-1]);
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), TONICNAME_PITCH, (yyvsp[0]));
		} else if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (TONICNAME_PITCH, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5068 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 266:
#line 2087 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (SCM_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5081 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 267:
#line 2096 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			// May be 3 \cm or similar
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), REAL, (yyvsp[0]));
		else if (scm_is_true (scm_call_1 ((yyvsp[-2]), scm_list_1 ((yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, scm_list_1 ((yyvsp[0])));
		else {
			SCM d = make_duration ((yyvsp[0]));
			if (!SCM_UNBNDP (d)) {
				if (scm_is_true (scm_call_1 ((yyvsp[-2]), d)))
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_IDENTIFIER, d);
				else if (scm_is_true
					 (scm_call_1
					  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), d))))
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_ARG, d);
				else {
					(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
					MYBACKUP (UNSIGNED, (yyvsp[0]), (yylsp[0]));
				}
			} else {
				(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
				MYBACKUP (UNSIGNED, (yyvsp[0]), (yylsp[0]));
			}
		}
	}
#line 5112 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 268:
#line 2123 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
		{
			(yyval) = (yyvsp[-1]);
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), REAL, (yyvsp[0]));
		} else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (REAL, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5127 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 269:
#line 2134 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
		{
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		} else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (NUMBER_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5141 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 270:
#line 2144 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM n = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
		if (scm_is_true (scm_call_1 ((yyvsp[-3]), n))) {
			(yyval) = (yyvsp[-2]);
			MYREPARSE ((yylsp[0]), (yyvsp[-3]), REAL, n);
		} else {
			Music *t = MY_MAKE_MUSIC ("FingeringEvent", (yylsp[0]));
			t->set_property ("digit", (yyvsp[0]));
			(yyval) = t->unprotect ();
			if (scm_is_true (scm_call_1 ((yyvsp[-3]), (yyval))))
				(yyval) = scm_cons ((yyval), (yyvsp[-2]));
			else {
				(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-2]), (yyvsp[-4])), (yyvsp[-2]));
				MYBACKUP (UNSIGNED, (yyvsp[0]), (yylsp[0]));
				parser->lexer_->push_extra_token ((yylsp[-1]), '-');
			}
		}
	}
#line 5164 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 271:
#line 2163 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM n = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
		if (scm_is_true (scm_call_1 ((yyvsp[-3]), n))) {
			MYREPARSE ((yylsp[0]), (yyvsp[-3]), REAL, n);
			(yyval) = (yyvsp[-2]);
		} else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-2]), (yyvsp[-4])), (yyvsp[-2]));
			MYBACKUP (REAL, n, (yylsp[0]));
		}
	}
#line 5179 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 272:
#line 2174 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM n = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
		if (scm_is_true (scm_call_1 ((yyvsp[-3]), n))) {
			(yyval) = scm_cons (n, (yyvsp[-2]));
		} else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-2]), (yyvsp[-4])), (yyvsp[-2]));
			MYBACKUP (NUMBER_IDENTIFIER, n, (yylsp[0]));
		}
	}
#line 5193 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 273:
#line 2184 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_IDENTIFIER, (yyvsp[0]));
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_ARG, (yyvsp[0]));
		else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (DURATION_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5211 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 274:
#line 2198 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM res = try_string_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res)) {
				(yyval) = (yyvsp[-1]);
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			}
			else
				(yyval) = scm_cons (res, (yyvsp[-1]));
		else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (SCM_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5230 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 275:
#line 2213 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM res = try_string_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res)) {
				(yyval) = (yyvsp[-1]);
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			}
			else
				(yyval) = scm_cons (res, (yyvsp[-1]));
		else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (STRING, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5249 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 276:
#line 2228 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM res = try_word_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res)) {
				(yyval) = (yyvsp[-1]);
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			}
			else
				(yyval) = scm_cons (res, (yyvsp[-1]));
		else {
			(yyval) = scm_cons (loc_on_copy (parser, (yylsp[-1]), (yyvsp[-3])), (yyvsp[-1]));
			MYBACKUP (STRING, (yyvsp[0]), (yylsp[0]));
		}
	}
#line 5268 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 277:
#line 2243 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-1]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-2]));
		else
			(yyval) = check_scheme_arg (parser, (yylsp[0]),
					       make_music_from_simple
					       (parser, (yylsp[0]), (yyvsp[0])),
					       (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5282 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 278:
#line 2253 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5291 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 279:
#line 2258 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5300 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 280:
#line 2263 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5309 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 281:
#line 2268 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5317 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 283:
#line 2276 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons (loc_on_copy (parser, (yylsp[0]), (yyvsp[-3])), (yyvsp[-1]));
	}
#line 5325 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 285:
#line 2284 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons (loc_on_copy (parser, (yylsp[0]), (yyvsp[-2])), (yyvsp[0]));
	}
#line 5333 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 286:
#line 2303 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5341 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 287:
#line 2307 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5349 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 288:
#line 2311 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5357 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 289:
#line 2315 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5365 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 290:
#line 2322 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5373 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 291:
#line 2326 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5381 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 292:
#line 2330 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5389 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 293:
#line 2334 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5397 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 294:
#line 2340 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_EOL;
	}
#line 5405 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 295:
#line 2344 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
		else
			(yyval) = check_scheme_arg (parser, (yylsp[0]),
					       make_music_from_simple
					       (parser, (yylsp[0]), (yyvsp[0])),
					       (yyvsp[-1]), (yyvsp[-2]));
	}
#line 5419 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 296:
#line 2354 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-1]), (yyvsp[-2]));
	}
#line 5428 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 297:
#line 2359 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-1]), (yyvsp[-2]));
	}
#line 5437 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 298:
#line 2364 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM n = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
		(yyval) = check_scheme_arg (parser, (yylsp[0]), n, (yyvsp[-2]), (yyvsp[-3]));
	}
#line 5446 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 299:
#line 2369 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5455 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 300:
#line 2374 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5464 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 301:
#line 2379 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_true (scm_call_1 ((yyvsp[-1]), (yyvsp[0]))))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-2]));
		else
			(yyval) = check_scheme_arg (parser, (yylsp[0]),
					       make_music_from_simple
					       (parser, (yylsp[0]), (yyvsp[0])),
					       (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5478 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 302:
#line 2389 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5487 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 303:
#line 2394 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5496 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 304:
#line 2399 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]),
				       (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5505 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 305:
#line 2404 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-2]), (yyvsp[-1]));
	}
#line 5513 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 306:
#line 2411 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		SCM res = try_string_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res))
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, res);
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), LYRIC_ELEMENT, (yyvsp[0]));
		else
			// This is going to flag a syntax error, we
			// know the predicate to be false.
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 5535 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 307:
#line 2429 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true
		    (scm_call_1
		     ((yyvsp[-2]), make_music_from_simple
		      (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), PITCH_IDENTIFIER, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 5550 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 308:
#line 2440 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true
		    (scm_call_1
		     ((yyvsp[-2]), make_music_from_simple
		      (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), TONICNAME_PITCH, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 5565 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 309:
#line 2451 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		SCM res = try_string_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res))
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, res);
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), LYRIC_ELEMENT, (yyvsp[0]));
		else
			// This is going to flag a syntax error, we
			// know the predicate to be false.
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 5587 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 310:
#line 2469 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		SCM res = try_word_variants ((yyvsp[-2]), (yyvsp[0]));
		if (!SCM_UNBNDP (res))
			if (scm_is_pair (res))
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, res);
			else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, res);
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), LYRIC_ELEMENT, (yyvsp[0]));
		else
			// This is going to flag a syntax error, we
			// know the predicate to be false.
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 5609 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 311:
#line 2487 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), LYRIC_ELEMENT, (yyvsp[0]));
		else
			// This is going to flag a syntax error, we
			// know the predicate to be false.
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0]));
	}
#line 5627 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 312:
#line 2501 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			// May be 3 \cm or similar
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), REAL, (yyvsp[0]));
		else if (scm_is_true (scm_call_1 ((yyvsp[-2]), scm_list_1 ((yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SYMBOL_LIST, scm_list_1 ((yyvsp[0])));
		else {
			SCM d = make_duration ((yyvsp[0]));
			if (!SCM_UNBNDP (d)) {
				if (scm_is_true (scm_call_1 ((yyvsp[-2]), d)))
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_IDENTIFIER, d);
				else if (scm_is_true
					 (scm_call_1
					  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), d))))
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_ARG, d);
				else
					MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0])); // trigger error
			} else
				MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0])); // trigger error
		}
	}
#line 5654 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 313:
#line 2524 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (scm_is_true (scm_call_1 ((yyvsp[-2]), (yyvsp[0]))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_IDENTIFIER, (yyvsp[0]));
		else if (scm_is_true
			 (scm_call_1
			  ((yyvsp[-2]), make_music_from_simple (parser, (yylsp[0]), (yyvsp[0])))))
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), DURATION_ARG, (yyvsp[0]));
		else
			MYREPARSE ((yylsp[0]), (yyvsp[-2]), SCM_ARG, (yyvsp[0])); // trigger error
	}
#line 5670 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 314:
#line 2536 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-2]);
		SCM n = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
		if (scm_is_true (scm_call_1 ((yyvsp[-3]), n)))
			MYREPARSE ((yylsp[0]), (yyvsp[-3]), REAL, n);
		else {
			Music *t = MY_MAKE_MUSIC ("FingeringEvent", (yylsp[0]));
			t->set_property ("digit", (yyvsp[0]));
			SCM m = t->unprotect ();
			if (scm_is_true (scm_call_1 ((yyvsp[-3]), m)))
				MYREPARSE ((yylsp[0]), (yyvsp[-3]), SCM_ARG, m);
			else
				MYREPARSE ((yylsp[0]), (yyvsp[-3]), SCM_ARG, (yyvsp[0]));
		}
	}
#line 5690 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 315:
#line 2552 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-2]);
		SCM n = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
		MYREPARSE ((yylsp[0]), (yyvsp[-3]), REAL, n);
	}
#line 5700 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 317:
#line 2562 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons (loc_on_copy (parser, (yylsp[0]), (yyvsp[-3])), (yyvsp[-1]));
	}
#line 5708 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 320:
#line 2571 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons (loc_on_copy (parser, (yylsp[0]), (yyvsp[-2])), (yyvsp[0]));
	}
#line 5716 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 321:
#line 2577 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (music_function, (yyloc),
				  (yyvsp[-1]), (yyvsp[0]));
	}
#line 5725 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 322:
#line 2585 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_EOL; }
#line 5731 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 323:
#line 2586 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5739 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 324:
#line 2598 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_lyric_state ();
	}
#line 5747 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 325:
#line 2601 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->pop_state ();
		(yyval) = (yyvsp[0]);
	}
#line 5756 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 327:
#line 2609 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_eq ((yyvsp[-1]), ly_symbol2scm ("chords")))
		{
		  (yyval) = MAKE_SYNTAX (unrelativable_music, (yyloc), (yyvsp[0]));
		}
		else
		{
		  (yyval) = (yyvsp[0]);
		}
		parser->lexer_->pop_state ();
	}
#line 5772 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 328:
#line 2620 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (context_specification, (yyloc), (yyvsp[-2]), SCM_EOL, (yyvsp[-1]), SCM_BOOL_T, (yyvsp[0]));
		if (scm_is_eq ((yyvsp[-2]), ly_symbol2scm ("ChordNames")))
		{
		  (yyval) = MAKE_SYNTAX (unrelativable_music, (yyloc), (yyval));
		}
		parser->lexer_->pop_state ();
	}
#line 5785 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 329:
#line 2631 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::pitchnames);

		(yyval) = ly_symbol2scm ("notes");
	}
#line 5795 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 330:
#line 2637 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::drum_pitch_names);

		(yyval) = ly_symbol2scm ("drums");
	}
#line 5805 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 331:
#line 2642 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_figuredbass_state ();

		(yyval) = ly_symbol2scm ("figures");
	}
#line 5815 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 332:
#line 2647 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->chordmodifier_tab_ =
			alist_to_hashq (Lily::chordmodifiers);
		parser->lexer_->push_chord_state (Lily::pitchnames);
		(yyval) = ly_symbol2scm ("chords");

	}
#line 5827 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 333:
#line 2655 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { parser->lexer_->push_lyric_state ();
		(yyval) = ly_symbol2scm ("lyrics");
	}
#line 5835 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 334:
#line 2661 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::drum_pitch_names);

		(yyval) = ly_symbol2scm ("DrumStaff");
	}
#line 5845 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 335:
#line 2666 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_figuredbass_state ();

		(yyval) = ly_symbol2scm ("FiguredBass");
	}
#line 5855 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 336:
#line 2671 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->chordmodifier_tab_ =
			alist_to_hashq (Lily::chordmodifiers);
		parser->lexer_->push_chord_state (Lily::pitchnames);
		(yyval) = ly_symbol2scm ("ChordNames");
	}
#line 5866 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 337:
#line 2678 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { parser->lexer_->push_lyric_state ();
		(yyval) = ly_symbol2scm ("Lyrics");
	}
#line 5874 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 338:
#line 2684 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (context_change, (yyloc), (yyvsp[-2]), (yyvsp[0]));
	}
#line 5882 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 339:
#line 2691 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[0]), SCM_EOL);
	}
#line 5890 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 340:
#line 2697 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_3 (ly_symbol2scm ("assign"), (yyvsp[-2]), (yyvsp[0]));
	}
#line 5898 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 341:
#line 2700 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_2 (ly_symbol2scm ("unset"), (yyvsp[0]));
	}
#line 5906 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 342:
#line 2703 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_ilength ((yyvsp[-2])) < 2) {
			parser->parser_error ((yylsp[-2]), _("bad grob property path"));
			(yyval) = SCM_UNDEFINED;
		} else {
			(yyval) = scm_cons (ly_symbol2scm ("push"),
				       scm_cons2 (scm_car ((yyvsp[-2])),
						  (yyvsp[0]),
						  scm_cdr ((yyvsp[-2]))));
		}
	}
#line 5922 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 343:
#line 2714 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons (ly_symbol2scm ("pop"), (yyvsp[0]));
	}
#line 5930 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 344:
#line 2744 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 5938 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 345:
#line 2751 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_null ((yyvsp[0]))
		    || scm_is_null (scm_cdr ((yyvsp[0]))))
			MYBACKUP (SCM_ARG, (yyvsp[0]), (yylsp[0]));
		else
			MYBACKUP (SYMBOL_LIST, scm_reverse_x ((yyvsp[0]), SCM_EOL), (yylsp[0]));
	}
#line 5950 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 347:
#line 2764 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_append_x (scm_list_2 ((yyvsp[0]), (yyvsp[-2])));
	}
#line 5958 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 348:
#line 2768 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_append_x (scm_list_2 ((yyvsp[0]), (yyvsp[-2])));
	}
#line 5966 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 349:
#line 2772 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_append_x (scm_list_2 ((yyvsp[0]), (yyvsp[-1])));
	}
#line 5974 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 350:
#line 2778 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("consists"); }
#line 5980 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 351:
#line 2779 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("remove"); }
#line 5986 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 352:
#line 2781 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("accepts"); }
#line 5992 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 353:
#line 2782 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("default-child"); }
#line 5998 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 354:
#line 2783 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("denies"); }
#line 6004 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 355:
#line 2785 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("alias"); }
#line 6010 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 356:
#line 2786 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("translator-type"); }
#line 6016 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 357:
#line 2787 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("description"); }
#line 6022 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 358:
#line 2788 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_symbol2scm ("context-name"); }
#line 6028 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 359:
#line 2792 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = (yyvsp[0]); }
#line 6034 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 360:
#line 2793 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_2 ((yyvsp[-1]), (yyvsp[0]));
	}
#line 6042 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 361:
#line 2796 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_2 ((yyvsp[-1]), (yyvsp[0]));
	}
#line 6050 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 362:
#line 2800 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!scm_is_string ((yyvsp[0]))
		    && !scm_is_eq ((yyvsp[-1]), ly_symbol2scm ("consists"))
		    && !scm_is_eq ((yyvsp[-1]), ly_symbol2scm ("remove")))
		{
			(yyval) = SCM_EOL;
			parser->parser_error ((yylsp[-1]), _ ("only \\consists and \\remove take non-string argument."));
		}
		else
		{
			(yyval) = scm_list_2 ((yyvsp[-1]), (yyvsp[0]));
		}
	}
#line 6068 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 363:
#line 2818 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM l = scm_reverse_x ((yyvsp[0]), SCM_EOL);
		if (scm_is_pair (l)
		    && to_boolean
		    (scm_object_property (scm_car (l),
					  ly_symbol2scm ("is-grob?"))))
			l = scm_cons (ly_symbol2scm ("Bottom"), l);
		if (scm_is_null (l) || scm_is_null (scm_cdr (l))) {
			parser->parser_error ((yylsp[0]), _ ("bad grob property path"));
			l = SCM_UNDEFINED;
		}
		(yyval) = l;
	}
#line 6086 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 364:
#line 2836 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!SCM_UNBNDP ((yyvsp[0])) && scm_is_null (scm_cddr ((yyvsp[0]))))
		{
			parser->parser_error ((yylsp[0]), _ ("bad grob property path"));
			(yyval) = SCM_UNDEFINED;
		}
	}
#line 6098 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 365:
#line 2844 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!SCM_UNBNDP ((yyvsp[-1]))) {
			(yyval) = scm_append_x (scm_list_2 ((yyvsp[-1]), (yyvsp[0])));
			if (scm_is_null (scm_cddr ((yyval)))) {
				parser->parser_error ((yyloc), _ ("bad grob property path"));
				(yyval) = SCM_UNDEFINED;
			}
		}

	}
#line 6113 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 366:
#line 2859 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM l = scm_reverse_x ((yyvsp[0]), SCM_EOL);
		switch (scm_ilength (l)) {
		case 1:
			l = scm_cons (ly_symbol2scm ("Bottom"), l);
		case 2:
			break;
		default:
			parser->parser_error ((yylsp[0]), _ ("bad context property path"));
			l = SCM_UNDEFINED;
		}
		(yyval) = l;
	}
#line 6131 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 367:
#line 2891 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyvsp[0]) = scm_reverse_x ((yyvsp[0]), SCM_EOL);
		if (scm_is_null ((yyvsp[0]))
		    || to_boolean
		    (scm_object_property (scm_car ((yyvsp[0])),
					  ly_symbol2scm ("is-grob?")))) {
			(yyval) = ly_symbol2scm ("Bottom");
			parser->lexer_->push_extra_token ((yylsp[0]), SCM_IDENTIFIER, (yyvsp[0]));
		} else {
			(yyval) = scm_car ((yyvsp[0]));
			parser->lexer_->push_extra_token ((yylsp[0]), SCM_IDENTIFIER,
							  scm_cdr ((yyvsp[0])));
		}
	}
#line 6150 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 368:
#line 2908 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[-2])))
			(yyval) = MAKE_SYNTAX (void_music, (yyloc));
		else
			(yyval) = MAKE_SYNTAX (property_override, (yyloc),
					  scm_car ((yyvsp[-2])),
					  scm_cdr ((yyvsp[-2])),
					  (yyvsp[0]));
	}
#line 6164 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 369:
#line 2917 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (property_revert, (yyloc), (yyvsp[-1]), (yyvsp[0]));
	}
#line 6172 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 370:
#line 2920 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[-2])))
			(yyval) = MAKE_SYNTAX (void_music, (yyloc));
		else
			(yyval) = MAKE_SYNTAX (property_set, (yyloc),
					  scm_car ((yyvsp[-2])),
					  scm_cadr ((yyvsp[-2])),
					  (yyvsp[0]));
	}
#line 6186 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 371:
#line 2929 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[0])))
			(yyval) = MAKE_SYNTAX (void_music, (yyloc));
		else
			(yyval) = MAKE_SYNTAX (property_unset, (yyloc),
					  scm_car ((yyvsp[0])),
					  scm_cadr ((yyvsp[0])));
	}
#line 6199 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 378:
#line 2950 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (Text_interface::is_markup ((yyvsp[0]))) {
			(yyval) = (yyvsp[0]);
		} else {
			parser->parser_error ((yylsp[0]), (_ ("markup expected")));
			(yyval) = scm_string (SCM_EOL);
		}
	}
#line 6212 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 381:
#line 2963 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (scm_is_string ((yyvsp[0]))) {
			(yyval) = (yyvsp[0]);
		} else {
			parser->parser_error ((yylsp[0]), (_ ("simple string expected")));
			(yyval) = scm_string (SCM_EOL);
		}
	}
#line 6225 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 382:
#line 2974 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_string_to_symbol ((yyvsp[0]));
	}
#line 6233 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 383:
#line 2978 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!is_regular_identifier ((yyvsp[0]), false))
			parser->parser_error ((yylsp[0]), (_ ("symbol expected")));
		(yyval) = scm_string_to_symbol ((yyvsp[0]));
	}
#line 6243 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 384:
#line 2984 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// This is a bit of overkill but makes the same
		// routine responsible for all symbol interpretations.
		(yyval) = try_string_variants (Guile_user::symbol_p, (yyvsp[0]));
		if (SCM_UNBNDP ((yyval)))
		{
			parser->parser_error ((yylsp[0]), (_ ("symbol expected")));
			// Generate a unique symbol in case it is used
			// for an assignment or similar
			(yyval) = scm_make_symbol (ly_string2scm ("undefined"));
		}
	}
#line 6260 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 389:
#line 3011 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
	}
#line 6268 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 391:
#line 3016 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[-2]), (yyvsp[0]));
	}
#line 6276 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 392:
#line 3020 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[-2]), (yyvsp[0]));
	}
#line 6284 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 393:
#line 3026 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// Let the rhythmic music iterator sort this mess out.
		if (scm_is_pair ((yyvsp[0]))) {
			unsmob<Music> ((yyval))->set_property ("articulations",
							 scm_reverse_x ((yyvsp[0]), SCM_EOL));
		}
	}
#line 6296 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 394:
#line 3033 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (repetition_chord, (yyloc),
				  (yyvsp[-1]), scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 6305 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 395:
#line 3037 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (multi_measure_rest, (yyloc), (yyvsp[-1]),
				  scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 6314 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 398:
#line 3048 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[-2]));
		SCM dur = unsmob<Duration> ((yyvsp[-1]))->smobbed_copy ();
		SCM es = m->get_property ("elements");
		SCM postevs = scm_reverse_x ((yyvsp[0]), 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 (parser->lexer_->override_input ((yyloc)));
		(yyval) = m->self_scm ();
	}
#line 6333 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 399:
#line 3066 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (event_chord, (yyloc), scm_reverse_x ((yyvsp[-1]), SCM_EOL));
	}
#line 6341 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 400:
#line 3070 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (event_chord, (yyloc), scm_reverse_x ((yyvsp[-1]), SCM_EOL));
	}
#line 6349 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 401:
#line 3076 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_EOL; }
#line 6355 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 402:
#line 3077 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!SCM_UNBNDP ((yyvsp[0])))
			(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
	}
#line 6364 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 403:
#line 3085 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		bool q = to_boolean ((yyvsp[-2]));
		bool ex = to_boolean ((yyvsp[-3]));
		SCM check = (yyvsp[-1]);
		SCM post = (yyvsp[0]);

		Music *n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));
		n->set_property ("pitch", (yyvsp[-4]));
		if (q)
			n->set_property ("cautionary", SCM_BOOL_T);
                if (ex || q)
			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) = n->unprotect ();
	}
#line 6394 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 404:
#line 3110 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));
		n->set_property ("drum-type", (yyvsp[-1]));

		if (scm_is_pair ((yyvsp[0]))) {
			SCM arts = scm_reverse_x ((yyvsp[0]), SCM_EOL);
			n->set_property ("articulations", arts);
		}
		(yyval) = n->unprotect ();
	}
#line 6409 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 405:
#line 3121 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[0]));

		while (m && m->is_mus_type ("music-wrapper-music")) {
			(yyval) = m->get_property ("element");
			m = unsmob<Music> ((yyval));
		}

		if (!(m && m->is_mus_type ("rhythmic-event"))) {
			parser->parser_error ((yyloc), _ ("not a rhythmic event"));
			(yyval) = SCM_UNDEFINED;
		}
	}
#line 6427 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 409:
#line 3143 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (music_function, (yyloc),
				  (yyvsp[-1]), (yyvsp[0]));
	}
#line 6436 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 410:
#line 3150 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_EOL;
	}
#line 6444 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 411:
#line 3153 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		if (Music *m = unsmob<Music> ((yyvsp[0])))
		{
			if (m->is_mus_type ("post-event-wrapper"))
			{
				for (SCM p = m->get_property ("elements");
				     scm_is_pair (p);
				     p = scm_cdr (p))
				{
					(yyval) = scm_cons (scm_car (p), (yyval));
				}
			} else {
				m->set_spot (parser->lexer_->override_input ((yylsp[0])));
				(yyval) = scm_cons ((yyvsp[0]), (yyval));
			}
		}
	}
#line 6467 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 412:
#line 3174 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 6475 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 413:
#line 3177 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[0]));
		if (!m->is_mus_type ("post-event")) {
			parser->parser_error ((yylsp[0]), _ ("post-event expected"));
			(yyval) = SCM_UNSPECIFIED;
		} else {
			m->set_spot (parser->lexer_->override_input ((yyloc)));
			if (!SCM_UNBNDP ((yyvsp[-1])))
				m->set_property ("direction", (yyvsp[-1]));
			(yyval) = (yyvsp[0]);
		}
	}
#line 6492 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 414:
#line 3189 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!parser->lexer_->is_lyric_state ())
			parser->parser_error ((yylsp[0]), _ ("have to be in Lyric mode for lyrics"));
		(yyval) = MY_MAKE_MUSIC ("HyphenEvent", (yyloc))->unprotect ();
	}
#line 6502 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 415:
#line 3194 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!parser->lexer_->is_lyric_state ())
			parser->parser_error ((yylsp[0]), _ ("have to be in Lyric mode for lyrics"));
		(yyval) = MY_MAKE_MUSIC ("ExtenderEvent", (yyloc))->unprotect ();
	}
#line 6512 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 416:
#line 3199 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (Music *m = unsmob<Music> ((yyvsp[0]))) {
			m->set_spot (parser->lexer_->override_input ((yyloc)));
			if (!SCM_UNBNDP ((yyvsp[-1])))
			{
				m->set_property ("direction", (yyvsp[-1]));
			}
		}
		(yyval) = (yyvsp[0]);
	}
#line 6527 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 417:
#line 3209 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[0]));
		m->set_spot (parser->lexer_->override_input ((yyloc)));
		if (!SCM_UNBNDP ((yyvsp[-1])))
			m->set_property ("direction", (yyvsp[-1]));
		(yyval) = (yyvsp[0]);
	}
#line 6539 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 418:
#line 3217 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[0]));
		m->set_spot (parser->lexer_->override_input ((yyloc)));
		m->set_property ("direction", scm_from_int (UP));
		(yyval) = (yyvsp[0]);
	}
#line 6550 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 419:
#line 3224 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[0]));
		m->set_spot (parser->lexer_->override_input ((yyloc)));
		m->set_property ("direction", scm_from_int (DOWN));
		(yyval) = (yyvsp[0]);
	}
#line 6561 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 421:
#line 3234 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		unsmob<Music> ((yyvsp[0]))->set_spot (parser->lexer_->override_input ((yyloc)));
		(yyval) = (yyvsp[0]);
	}
#line 6570 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 422:
#line 3241 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *s = MY_MAKE_MUSIC ("StringNumberEvent", (yyloc));
		s->set_property ("string-number", (yyvsp[0]));
		(yyval) = s->unprotect ();
	}
#line 6580 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 424:
#line 3250 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 6588 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 425:
#line 3253 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
               Music *a = MY_MAKE_MUSIC ("TremoloEvent", (yyloc));
               a->set_property ("tremolo-type", (yyvsp[0]));
               (yyval) = a->unprotect ();
        }
#line 6598 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 427:
#line 3262 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 6606 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 428:
#line 3265 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM s = parser->lexer_->lookup_identifier ("dash" + ly_scm2string ((yyvsp[0])));
		if (scm_is_string (s)) {
			Music *a = MY_MAKE_MUSIC ("ArticulationEvent", (yyloc));
			a->set_property ("articulation-type", s);
			(yyval) = a->unprotect ();
		} else {
			Music *original = unsmob<Music> (s);
			if (original && original->is_mus_type ("post-event")) {
				Music *a = original->clone ();
				// origin will be set by post_event_nofinger
				(yyval) = a->unprotect ();
			} else {
				parser->parser_error ((yylsp[0]), _ ("expecting string or post-event as script definition"));
				(yyval) = SCM_UNSPECIFIED;
			}
		}
	}
#line 6629 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 429:
#line 3286 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_EOL; }
#line 6635 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 430:
#line 3287 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = (yyvsp[0]); }
#line 6641 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 431:
#line 3292 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                (yyval) = SCM_INUM0;
        }
#line 6649 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 434:
#line 3300 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_int (1);
	}
#line 6657 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 435:
#line 3303 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_oneplus ((yyvsp[-1]));
	}
#line 6665 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 436:
#line 3309 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_int (-1);
	}
#line 6673 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 437:
#line 3312 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_oneminus ((yyvsp[-1]));
	}
#line 6681 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 438:
#line 3318 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                if (!scm_is_eq (SCM_INUM0, (yyvsp[0])))
                {
                        Pitch p = *unsmob<Pitch> ((yyvsp[-1]));
                        p = p.transposed (Pitch (scm_to_int ((yyvsp[0])), 0));
                        (yyval) = p.smobbed_copy ();
                }
	}
#line 6694 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 439:
#line 3333 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                if (!scm_is_eq (SCM_INUM0, (yyvsp[0])))
                {
                        Pitch p = *unsmob<Pitch> ((yyvsp[-1]));
                        p = p.transposed (Pitch (scm_to_int ((yyvsp[0])), 0));
                        (yyval) = p.smobbed_copy ();
                }
	}
#line 6707 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 441:
#line 3345 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                if (!scm_is_eq (SCM_INUM0, (yyvsp[0])))
                {
                        Pitch p = *unsmob<Pitch> ((yyvsp[-1]));
                        p = p.transposed (Pitch (scm_to_int ((yyvsp[0])), 0));
                        (yyval) = p.smobbed_copy ();
                }
	}
#line 6720 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 444:
#line 3361 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *t = MY_MAKE_MUSIC ("TextScriptEvent", (yyloc));
		t->set_property ("text", (yyvsp[0]));
		(yyval) = t->unprotect ();
	}
#line 6730 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 445:
#line 3366 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *t = MY_MAKE_MUSIC ("TextScriptEvent", (yyloc));
		t->set_property ("text",
			make_simple_markup ((yyvsp[0])));
		(yyval) = t->unprotect ();
	}
#line 6741 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 446:
#line 3372 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// Flag a warning? could be unintentional
		Music *t = MY_MAKE_MUSIC ("TextScriptEvent", (yyloc));
		t->set_property ("text",
			make_simple_markup ((yyvsp[0])));
		(yyval) = t->unprotect ();
	}
#line 6753 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 447:
#line 3380 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[0]));
		if (m && m->is_mus_type ("post-event"))
			(yyval) = (yyvsp[0]);
		else if (Text_interface::is_markup ((yyvsp[0]))) {
			Music *t = MY_MAKE_MUSIC ("TextScriptEvent", (yyloc));
			t->set_property ("text", (yyvsp[0]));
			(yyval) = t->unprotect ();
		} else {
			parser->parser_error ((yylsp[0]), _ ("not an articulation"));
			(yyval) = SCM_UNSPECIFIED;
		}
	}
#line 6771 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 448:
#line 3396 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *t = MY_MAKE_MUSIC ("FingeringEvent", (yyloc));
		t->set_property ("digit", (yyvsp[0]));
		(yyval) = t->unprotect ();
	}
#line 6781 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 449:
#line 3404 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_ascii_string ("Hat");
	}
#line 6789 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 450:
#line 3407 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_ascii_string ("Plus");
	}
#line 6797 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 451:
#line 3410 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_ascii_string ("Dash");
	}
#line 6805 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 452:
#line 3413 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_ascii_string ("Bang");
	}
#line 6813 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 453:
#line 3416 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_ascii_string ("Larger");
	}
#line 6821 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 454:
#line 3419 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_ascii_string ("Dot");
	}
#line 6829 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 455:
#line 3422 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_ascii_string ("Underscore");
	}
#line 6837 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 456:
#line 3428 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = scm_from_int (DOWN); }
#line 6843 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 457:
#line 3429 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = scm_from_int (UP); }
#line 6849 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 458:
#line 3430 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_UNDEFINED; }
#line 6855 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 459:
#line 3434 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_UNDEFINED;
	}
#line 6863 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 460:
#line 3437 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
		parser->default_duration_ = *unsmob<Duration> ((yyval));
	}
#line 6872 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 461:
#line 3446 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyval)))
			(yyval) = parser->default_duration_.smobbed_copy ();
	}
#line 6881 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 462:
#line 3453 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_duration ((yyvsp[-1]), scm_to_int ((yyvsp[0])));
		if (SCM_UNBNDP ((yyval)))
		{
			parser->parser_error ((yylsp[-1]), _ ("not a duration"));
			(yyval) = Duration ().smobbed_copy ();
		}
	}
#line 6894 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 463:
#line 3461 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_duration ((yyvsp[-1]), scm_to_int ((yyvsp[0])));
	}
#line 6902 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 464:
#line 3467 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_duration ((yyvsp[-1]), 0, (yyvsp[0]));
	}
#line 6910 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 465:
#line 3473 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_INUM0;
	}
#line 6918 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 466:
#line 3476 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_oneplus ((yyvsp[-1]));
	}
#line 6926 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 467:
#line 3483 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_UNDEFINED;
	}
#line 6934 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 468:
#line 3487 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!SCM_UNBNDP ((yyvsp[-2])))
			(yyval) = scm_product ((yyvsp[-2]), (yyvsp[0]));
		else
			(yyval) = (yyvsp[0]);
	}
#line 6945 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 469:
#line 3494 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!SCM_UNBNDP ((yyvsp[-2])))
			(yyval) = scm_product ((yyvsp[-2]), scm_divide (scm_car ((yyvsp[0])),
							  scm_cdr ((yyvsp[0]))));
		else
			(yyval) = scm_divide (scm_car ((yyvsp[0])), scm_cdr ((yyvsp[0])));
	}
#line 6957 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 470:
#line 3504 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_from_int (parser->default_tremolo_type_);
	}
#line 6965 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 471:
#line 3507 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP (make_duration ((yyvsp[0])))) {
			parser->parser_error ((yylsp[0]), _ ("not a duration"));
			(yyval) = scm_from_int (parser->default_tremolo_type_);
		} else {
			(yyval) = (yyvsp[0]);
			parser->default_tremolo_type_ = scm_to_int ((yyvsp[0]));
		}
	}
#line 6979 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 476:
#line 3524 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		// as an integer, it needs to be non-negative, and otherwise
		// it needs to be suitable as a markup.
		if (scm_is_integer ((yyvsp[0]))
		    ? scm_is_true (scm_negative_p ((yyvsp[0])))
		    : !Text_interface::is_markup ((yyvsp[0])))
		{
			parser->parser_error ((yylsp[0]), _ ("bass number expected"));
			(yyval) = SCM_INUM0;
		}
	}
#line 6995 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 477:
#line 3538 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_rational2scm (FLAT_ALTERATION); }
#line 7001 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 478:
#line 3539 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = ly_rational2scm (SHARP_ALTERATION); }
#line 7007 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 479:
#line 3540 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = scm_from_int (0); }
#line 7013 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 480:
#line 3544 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *bfr = MY_MAKE_MUSIC ("BassFigureEvent", (yyloc));
		(yyval) = bfr->unprotect ();
	}
#line 7022 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 481:
#line 3548 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *bfr = MY_MAKE_MUSIC ("BassFigureEvent", (yyloc));
		(yyval) = bfr->self_scm ();

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

		bfr->unprotect ();
	}
#line 7038 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 482:
#line 3559 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[-1]);
		unsmob<Music> ((yyvsp[-1]))->set_property ("bracket-stop", SCM_BOOL_T);
	}
#line 7047 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 483:
#line 3563 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[-1]));
		if (scm_to_double ((yyvsp[0]))) {
			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[0])));
		} else {
			m->set_property ("alteration", scm_from_int (0));
		}
	}
#line 7063 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 484:
#line 3574 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *m = unsmob<Music> ((yyvsp[-1]));
		m->set_property ((yyvsp[0]), SCM_BOOL_T);
	}
#line 7072 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 485:
#line 3582 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = ly_symbol2scm ("augmented");
	}
#line 7080 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 486:
#line 3585 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = ly_symbol2scm ("no-continuation");
	}
#line 7088 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 487:
#line 3588 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = ly_symbol2scm ("diminished");
	}
#line 7096 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 488:
#line 3591 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = ly_symbol2scm ("augmented-slash");
	}
#line 7104 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 489:
#line 3597 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7112 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 490:
#line 3600 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
		unsmob<Music> ((yyval))->set_property ("bracket-start", SCM_BOOL_T);
	}
#line 7121 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 491:
#line 3607 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_EOL;
	}
#line 7129 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 492:
#line 3610 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
	}
#line 7137 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 493:
#line 3616 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_BOOL_F; }
#line 7143 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 494:
#line 3617 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_BOOL_T; }
#line 7149 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 495:
#line 3621 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!parser->lexer_->is_note_state ())
			parser->parser_error ((yylsp[-6]), _ ("have to be in Note mode for notes"));
		if (!SCM_UNBNDP ((yyvsp[-5]))
                    || !SCM_UNBNDP ((yyvsp[-4]))
                    || scm_is_number ((yyvsp[-3]))
                    || !SCM_UNBNDP ((yyvsp[-2]))
                    || scm_is_true ((yyvsp[-1]))
		    || scm_is_pair ((yyvsp[0])))
		{
			Music *n = 0;
			if (scm_is_true ((yyvsp[-1])))
				n = MY_MAKE_MUSIC ("RestEvent", (yyloc));
			else
				n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));

			n->set_property ("pitch", (yyvsp[-6]));
			if (SCM_UNBNDP ((yyvsp[-2])))
				n->set_property ("duration",
						 parser->default_duration_.smobbed_copy ());
			else
				n->set_property ("duration", (yyvsp[-2]));

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

			if (to_boolean ((yyvsp[-4])))
				n->set_property ("cautionary", SCM_BOOL_T);
			if (to_boolean ((yyvsp[-5])) || to_boolean ((yyvsp[-4])))
				n->set_property ("force-accidental", SCM_BOOL_T);
			if (scm_is_pair ((yyvsp[0])))
				n->set_property ("articulations",
						 scm_reverse_x ((yyvsp[0]), SCM_EOL));
			(yyval) = n->unprotect ();
		}
	}
#line 7193 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 496:
#line 3660 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!parser->lexer_->is_chord_state ())
                        parser->parser_error ((yylsp[-1]), _ ("have to be in Chord mode for chords"));
		if (scm_is_pair ((yyvsp[0]))) {
			if (unsmob<Pitch> ((yyvsp[-1])))
				(yyvsp[-1]) = make_chord_elements ((yylsp[-1]),
							  (yyvsp[-1]),
							  parser->default_duration_.smobbed_copy (),
							  SCM_EOL);

			SCM elts = ly_append2 ((yyvsp[-1]), scm_reverse_x ((yyvsp[0]), SCM_EOL));

			(yyval) = MAKE_SYNTAX (event_chord, (yylsp[-1]), elts);
		} else if (!unsmob<Pitch> ((yyvsp[-1])))
			(yyval) = MAKE_SYNTAX (event_chord, (yylsp[-1]), (yyvsp[-1]));
		// A mere pitch drops through.
	}
#line 7215 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 497:
#line 3680 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *n = MY_MAKE_MUSIC ("NoteEvent", (yyloc));
		n->set_property ("duration", (yyvsp[0]));
		n->set_property ("drum-type", (yyvsp[-1]));

		(yyval) = n->unprotect ();
	}
#line 7227 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 498:
#line 3687 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Music *ev = 0;
 		if (ly_scm2string ((yyvsp[-1])) == "s") {
			/* Space */
			ev = MY_MAKE_MUSIC ("SkipEvent", (yyloc));
		  }
		else {
			ev = MY_MAKE_MUSIC ("RestEvent", (yyloc));

		    }
		ev->set_property ("duration", (yyvsp[0]));
 		(yyval) = ev->unprotect ();
	}
#line 7245 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 499:
#line 3703 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!parser->lexer_->is_lyric_state ())
			parser->parser_error ((yylsp[0]), _ ("markup outside of text script or \\lyricmode"));
		(yyval) = (yyvsp[0]);
	}
#line 7255 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 500:
#line 3708 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!parser->lexer_->is_lyric_state ())
			parser->parser_error ((yylsp[0]), _f ("not a note name: %s", ly_scm2string ((yyvsp[0]))));
		(yyval) = (yyvsp[0]);
	}
#line 7265 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 501:
#line 3713 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!parser->lexer_->is_lyric_state ())
			parser->parser_error ((yylsp[0]), _ ("string outside of text script or \\lyricmode"));
		(yyval) = (yyvsp[0]);
	}
#line 7275 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 503:
#line 3722 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (lyric_event, (yyloc), (yyvsp[-2]), (yyvsp[-1]));
		if (scm_is_pair ((yyvsp[0])))
			unsmob<Music> ((yyval))->set_property
				("articulations", scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 7286 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 504:
#line 3732 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (SCM_UNBNDP ((yyvsp[0])))
			(yyval) = (yyvsp[-1]);
		else
			(yyval) = make_chord_elements ((yyloc), (yyvsp[-1]), (yyvsp[0]), SCM_EOL);
	}
#line 7297 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 505:
#line 3738 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		SCM its = scm_reverse_x ((yyvsp[0]), SCM_EOL);
		(yyval) = make_chord_elements ((yyloc), (yyvsp[-3]), (yyvsp[-2]), scm_cons ((yyvsp[-1]), its));
	}
#line 7306 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 506:
#line 3745 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = SCM_EOL;
	}
#line 7314 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 507:
#line 3748 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons ((yyvsp[0]), (yyval));
	}
#line 7322 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 508:
#line 3754 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = ly_symbol2scm ("chord-colon");
	}
#line 7330 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 509:
#line 3757 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = ly_symbol2scm ("chord-caret");
	}
#line 7338 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 510:
#line 3760 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
 		(yyval) = scm_list_2 (ly_symbol2scm ("chord-slash"), (yyvsp[0]));
	}
#line 7346 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 511:
#line 3763 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_2 (ly_symbol2scm ("chord-bass"), (yyvsp[0]));
	}
#line 7354 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 512:
#line 3769 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7362 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 513:
#line 3772 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[0]), SCM_EOL);
	}
#line 7370 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 514:
#line 3775 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7378 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 515:
#line 3781 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = scm_cons ((yyvsp[0]), SCM_EOL); }
#line 7384 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 516:
#line 3782 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons ((yyvsp[0]), (yyval));
	}
#line 7392 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 517:
#line 3788 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_chord_step ((yyvsp[0]), 0);
        }
#line 7400 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 518:
#line 3791 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_chord_step ((yyvsp[-1]), SHARP_ALTERATION);
	}
#line 7408 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 519:
#line 3794 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_chord_step ((yyvsp[-1]), FLAT_ALTERATION);
	}
#line 7416 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 520:
#line 3800 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7424 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 521:
#line 3803 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons ((yyvsp[-2]), (yyvsp[0]));
	}
#line 7432 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 522:
#line 3815 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_sum ((yyvsp[-2]), (yyvsp[0]));
	}
#line 7440 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 523:
#line 3818 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_difference ((yyvsp[-2]), (yyvsp[0]));
	}
#line 7448 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 525:
#line 3825 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7456 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 526:
#line 3828 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_product ((yyvsp[-2]), (yyvsp[0]));
	}
#line 7464 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 527:
#line 3831 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_divide ((yyvsp[-2]), (yyvsp[0]));
	}
#line 7472 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 528:
#line 3837 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { /* %prec UNARY_MINUS */
		(yyval) = scm_difference ((yyvsp[0]), SCM_UNDEFINED);
	}
#line 7480 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 532:
#line 3847 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_product ((yyvsp[-1]), (yyvsp[0]));
	}
#line 7488 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 535:
#line 3855 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_product ((yyvsp[-1]), (yyvsp[0]));
	}
#line 7496 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 537:
#line 3863 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!scm_is_integer ((yyvsp[0]))
		    || scm_is_true (scm_negative_p ((yyvsp[0]))))
		{
			parser->parser_error ((yylsp[0]), _("not an unsigned integer"));
			(yyval) = SCM_INUM0;
		}
	}
#line 7509 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 538:
#line 3872 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (!scm_is_integer ((yyvsp[0]))
		    || scm_is_true (scm_negative_p ((yyvsp[0]))))
		{
			parser->parser_error ((yylsp[0]), _("not an unsigned integer"));
			(yyval) = SCM_INUM0;
		}
	}
#line 7522 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 539:
#line 3883 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_UNDEFINED; }
#line 7528 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 540:
#line 3885 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                if (SCM_UNBNDP ((yyvsp[-1])))
                        (yyval) = SCM_BOOL_T;
                else
                        (yyval) = scm_not ((yyvsp[-1]));
        }
#line 7539 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 541:
#line 3900 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = SCM_UNDEFINED; }
#line 7545 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 542:
#line 3902 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
                if (SCM_UNBNDP ((yyvsp[-1])))
                        (yyval) = SCM_BOOL_T;
                else
                        (yyval) = scm_not ((yyvsp[-1]));
        }
#line 7556 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 543:
#line 3912 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { parser->lexer_->push_markup_state (); }
#line 7562 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 544:
#line 3913 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
		parser->lexer_->pop_state ();
	}
#line 7571 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 545:
#line 3921 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_markup_state ();
	}
#line 7579 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 546:
#line 3937 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
		parser->lexer_->pop_state ();
	}
#line 7588 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 547:
#line 3945 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
		parser->lexer_->pop_state ();
	}
#line 7597 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 548:
#line 3950 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_simple_markup ((yyvsp[0]));
	}
#line 7605 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 549:
#line 3957 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (partial_markup, (yylsp[-1]), (yyvsp[-1]));
		parser->lexer_->pop_state ();
	}
#line 7614 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 550:
#line 3964 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_2 (Lily::line_markup,  (yyvsp[0]));
	}
#line 7622 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 551:
#line 3968 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_car (MAKE_SYNTAX (composed_markup_list,
					   (yylsp[0]), (yyvsp[-1]), scm_list_1 ((yyvsp[0]))));
	}
#line 7631 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 552:
#line 3972 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7639 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 553:
#line 3979 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		if (Text_interface::is_markup ((yyvsp[0])))
			MYBACKUP (MARKUP_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		else if (Text_interface::is_markup_list ((yyvsp[0])))
			MYBACKUP (MARKUPLIST_IDENTIFIER, (yyvsp[0]), (yylsp[0]));
		else {
			parser->parser_error ((yylsp[0]), _ ("not a markup"));
			MYBACKUP (MARKUP_IDENTIFIER, scm_string (SCM_EOL), (yylsp[0]));
		}
	}
#line 7654 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 555:
#line 3993 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7662 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 557:
#line 4000 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7670 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 558:
#line 4003 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_1 ((yyvsp[0]));
	}
#line 7678 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 559:
#line 4007 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7686 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 560:
#line 4010 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::pitchnames);
	}
#line 7694 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 561:
#line 4012 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Score *sc = unsmob<Score> ((yyvsp[-1]));
		sc->origin ()->set_spot ((yyloc));
		if (sc->defs_.empty ()) {
			Output_def *od = get_layout (parser);
			sc->add_output_def (od);
			od->unprotect ();
		}
		(yyval) = scm_list_1 (scm_list_2 (Lily::score_lines_markup_list, (yyvsp[-1])));
		parser->lexer_->pop_state ();
	}
#line 7710 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 562:
#line 4026 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = MAKE_SYNTAX (composed_markup_list,
				  (yylsp[0]), (yyvsp[-1]), (yyvsp[0]));
	}
#line 7719 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 563:
#line 4033 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[-1]), SCM_EOL);
	}
#line 7727 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 564:
#line 4039 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {  (yyval) = SCM_EOL; }
#line 7733 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 565:
#line 4040 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
	}
#line 7741 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 566:
#line 4043 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_reverse_x ((yyvsp[0]), (yyvsp[-1]));
	}
#line 7749 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 567:
#line 4049 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	  (yyval) = scm_cons ((yyvsp[-1]), scm_reverse_x((yyvsp[0]), SCM_EOL));
	}
#line 7757 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 568:
#line 4055 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	  (yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
	}
#line 7765 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 569:
#line 4058 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	  (yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-1]), (yyvsp[-2]));
	}
#line 7773 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 570:
#line 4061 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = check_scheme_arg (parser, (yylsp[0]), (yyvsp[0]), (yyvsp[-1]), (yyvsp[-2]));
	}
#line 7781 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 571:
#line 4064 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	  (yyval) = SCM_EOL;
	}
#line 7789 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 572:
#line 4070 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    { (yyval) = (yyvsp[0]); }
#line 7795 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 573:
#line 4071 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	  (yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
	}
#line 7803 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 574:
#line 4078 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_1 (scm_cons ((yyvsp[-1]), scm_reverse_x ((yyvsp[0]), SCM_EOL)));
	}
#line 7811 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 575:
#line 4082 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons (scm_cons ((yyvsp[-1]), scm_reverse_x ((yyvsp[0]), SCM_EOL)),
			       (yyvsp[-2]));
	}
#line 7820 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 576:
#line 4090 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7828 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 577:
#line 4094 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval)= (yyvsp[0]);
	}
#line 7836 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 578:
#line 4098 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7844 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 579:
#line 4102 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7852 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 580:
#line 4108 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
	  (yyval) = scm_cons ((yyvsp[-2]), scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 7860 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 581:
#line 4114 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_list_1 ((yyvsp[0]));
	}
#line 7868 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 582:
#line 4117 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons ((yyvsp[0]), (yyvsp[-1]));
	}
#line 7876 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 585:
#line 4129 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = make_simple_markup ((yyvsp[0]));
	}
#line 7884 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 587:
#line 4136 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		parser->lexer_->push_note_state (Lily::pitchnames);
	}
#line 7892 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 588:
#line 4138 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		Score *sc = unsmob<Score> ((yyvsp[-1]));
		sc->origin ()->set_spot ((yyloc));
		if (sc->defs_.empty ()) {
			Output_def *od = get_layout (parser);
			sc->add_output_def (od);
			od->unprotect ();
		}
		(yyval) = scm_list_2 (Lily::score_markup, (yyvsp[-1]));
		parser->lexer_->pop_state ();
	}
#line 7908 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 589:
#line 4149 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_cons ((yyvsp[-1]), scm_reverse_x ((yyvsp[0]), SCM_EOL));
	}
#line 7916 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 590:
#line 4153 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7924 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 591:
#line 4160 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = scm_car (MAKE_SYNTAX (composed_markup_list,
					   (yylsp[0]), (yyvsp[-1]), scm_list_1 ((yyvsp[0]))));
	}
#line 7933 "./out/parser.cc" /* yacc.c:1646  */
    break;

  case 592:
#line 4164 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1646  */
    {
		(yyval) = (yyvsp[0]);
	}
#line 7941 "./out/parser.cc" /* yacc.c:1646  */
    break;


#line 7945 "./out/parser.cc" /* yacc.c:1646  */
      default: break;
    }
  /* User semantic actions sometimes alter yychar, and that requires
     that yytoken be updated with the new translation.  We take the
     approach of translating immediately before every use of yytoken.
     One alternative is translating here after every semantic action,
     but that translation would be missed if the semantic action invokes
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
     incorrect destructor might then be invoked immediately.  In the
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
     to an incorrect destructor call or verbose syntax error message
     before the lookahead is translated.  */
  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:
  /* Make sure we have latest lookahead translation.  See comments at
     user semantic actions for why this is necessary.  */
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);

  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (&yylloc, parser, retval, YY_("syntax error"));
#else
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
                                        yyssp, yytoken)
      {
        char const *yymsgp = YY_("syntax error");
        int yysyntax_error_status;
        yysyntax_error_status = YYSYNTAX_ERROR;
        if (yysyntax_error_status == 0)
          yymsgp = yymsg;
        else if (yysyntax_error_status == 1)
          {
            if (yymsg != yymsgbuf)
              YYSTACK_FREE (yymsg);
            yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
            if (!yymsg)
              {
                yymsg = yymsgbuf;
                yymsg_alloc = sizeof yymsgbuf;
                yysyntax_error_status = 2;
              }
            else
              {
                yysyntax_error_status = YYSYNTAX_ERROR;
                yymsgp = yymsg;
              }
          }
        yyerror (&yylloc, parser, retval, yymsgp);
        if (yysyntax_error_status == 2)
          goto yyexhaustedlab;
      }
# undef YYSYNTAX_ERROR
#endif
    }

  yyerror_range[1] = yylloc;

  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead 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, parser, retval);
          yychar = YYEMPTY;
        }
    }

  /* Else will try to reuse lookahead 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[1] = yylsp[1-yylen];
  /* Do not reclaim the symbols of the rule whose 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 (!yypact_value_is_default (yyn))
        {
          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[1] = *yylsp;
      yydestruct ("Error: popping",
                  yystos[yystate], yyvsp, yylsp, parser, retval);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END

  yyerror_range[2] = yylloc;
  /* Using YYLLOC is tempting, but would change the location of
     the lookahead.  YYLOC is available though.  */
  YYLLOC_DEFAULT (yyloc, yyerror_range, 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;

#if !defined yyoverflow || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (&yylloc, parser, retval, YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEMPTY)
    {
      /* Make sure we have latest lookahead translation.  See comments at
         user semantic actions for why this is necessary.  */
      yytoken = YYTRANSLATE (yychar);
      yydestruct ("Cleanup: discarding lookahead",
                  yytoken, &yylval, &yylloc, parser, retval);
    }
  /* Do not reclaim the symbols of the rule whose action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
                  yystos[*yyssp], yyvsp, yylsp, parser, retval);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  return yyresult;
}
#line 4169 "/cygdrive/e/cyg_pub/devel/lilypond/lilypond-2.19.81-1.i686/src/lilypond-2.19.81/lily/parser.yy" /* yacc.c:1906  */


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

SCM
Lily_parser::do_yyparse ()
{
	return scm_c_with_fluid (Lily::f_parser,
				 self_scm (),
				 do_yyparse_trampoline,
				 static_cast <void *>(this));
}

SCM
Lily_parser::do_yyparse_trampoline (void *parser)
{
	SCM retval = SCM_UNDEFINED;
	yyparse (static_cast <Lily_parser *>(parser), &retval);
	return retval;
}



/*

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 (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))
	{
		*destination = unsmob<Context_def> (sid)->clone ()->unprotect ();
		return SCM_IDENTIFIER;
        } else if (unsmob<Context_mod> (sid)) {
                *destination = unsmob<Context_mod> (sid)->smobbed_copy ();
                return SCM_IDENTIFIER;
	} else if (Music *mus = unsmob<Music> (sid)) {
		mus = mus->clone ();
		*destination = mus->self_scm ();
		bool is_event = mus->is_mus_type ("post-event");
		mus->unprotect ();
		return is_event ? EVENT_IDENTIFIER : MUSIC_IDENTIFIER;
	} else if (unsmob<Pitch> (sid)) {
		*destination = unsmob<Pitch> (sid)->smobbed_copy ();
		return PITCH_IDENTIFIER;
	} else if (unsmob<Duration> (sid)) {
		*destination = unsmob<Duration> (sid)->smobbed_copy ();
		return DURATION_IDENTIFIER;
	} else if (unsmob<Output_def> (sid)) {
		*destination = unsmob<Output_def> (sid)->clone ()->unprotect ();
		return SCM_IDENTIFIER;
	} else if (unsmob<Score> (sid)) {
		*destination = unsmob<Score> (sid)->clone ()->unprotect ();
		return SCM_IDENTIFIER;
	} else if (scm_is_pair (sid)
		   && scm_is_pair (scm_car (sid))
		   && scm_is_true (Lily::key_p (scm_caar (sid)))) {
		*destination = sid;
		return LOOKUP_IDENTIFIER;
	}
	return -1;
}

SCM
get_next_unique_context_id ()
{
	return scm_from_ascii_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_ascii_string (s);
}

// check_scheme_arg checks one argument with a given predicate for use
// in an argument list and throws a syntax error if it is unusable.
// The argument is prepended to the argument list in any case.  After
// throwing a syntax error, the argument list is terminated with #f as
// its last cdr in order to mark it as uncallable while not losing
// track of its total length.
//
// There are a few special considerations: if optional argument disp
// is given (otherwise it defaults to SCM_UNDEFINED), it will be used
// instead of arg in a prospective error message.  This is useful if
// arg is not the actual argument but rather a transformation of it.
//
// If arg itself is SCM_UNDEFINED, the predicate is considered false
// and an error message using disp is produced unconditionally.

SCM check_scheme_arg (Lily_parser *parser, Input loc,
		      SCM arg, SCM args, SCM pred, SCM disp)
{
	if (SCM_UNBNDP (arg))
		args = scm_cons (disp, args);
	else {
		args = scm_cons (arg, args);
		if (scm_is_true (scm_call_1 (pred, arg)))
			return args;
	}
	scm_set_cdr_x (scm_last_pair (args), SCM_EOL);
	MAKE_SYNTAX (argument_error, loc, scm_length (args), pred,
		     SCM_UNBNDP (disp) ? arg : disp);
	scm_set_cdr_x (scm_last_pair (args), SCM_BOOL_F);
	return args;
}

SCM loc_on_copy (Lily_parser *parser, Input loc, SCM arg)
{
	if (Music *m = unsmob<Music> (arg))
	{
		m = m->clone ();
		m->set_spot (parser->lexer_->override_input (loc));
		return m->unprotect ();
	}
	if (Book *b = unsmob<Book> (arg))
	{
		b = b->clone ();
		b->origin ()->set_spot (parser->lexer_->override_input (loc));
		return b->unprotect ();
	}
	if (Context_def *cd = unsmob<Context_def> (arg))
	{
		cd = cd->clone ();
		cd->origin ()->set_spot (parser->lexer_->override_input (loc));
		return cd->unprotect ();
	}
	if (Output_def *od = unsmob<Output_def> (arg))
	{
		od = od->clone ();
		od->input_origin_ = parser->lexer_->override_input (loc);
		return od->unprotect ();
	}
	if (Score *s = unsmob<Score> (arg))
	{
		s = s->clone ();
		s->origin ()->set_spot (parser->lexer_->override_input (loc));
		return s->unprotect ();
	}
	if (Context_mod *cm = unsmob<Context_mod> (arg))
	{
		return cm->smobbed_copy ();
	}
	return arg;
}

SCM
make_reverse_key_list (SCM keys)
{
	if (scm_is_true (Lily::key_p (keys)))
		return scm_list_1 (keys);
	if (scm_is_string (keys))
		return scm_list_1 (scm_string_to_symbol (keys));
	if (!ly_is_list (keys))
		return SCM_UNDEFINED;
	SCM res = SCM_EOL;
	for (; scm_is_pair (keys); keys = scm_cdr (keys))
	{
		SCM elt = scm_car (keys);
		if (scm_is_true (Lily::key_p (elt)))
			res = scm_cons (elt, res);
		else if (scm_is_string (elt))
			res = scm_cons (scm_string_to_symbol (elt), res);
		else return SCM_UNDEFINED;
	}
	return res;
}

SCM
try_string_variants (SCM pred, SCM str)
{
	// a matching predicate is always ok
	if (scm_is_true (scm_call_1 (pred, str)))
		return str;
	// a key may be interpreted as a list of keys if it helps
	if (scm_is_true (Lily::key_p (str))) {
		str = scm_list_1 (str);
		if (scm_is_true (scm_call_1 (pred, str)))
			return str;
		return SCM_UNDEFINED;
	}

	if (!scm_is_string (str))
		return SCM_UNDEFINED;

	// Let's attempt the symbol list interpretation first.

	str = scm_string_to_symbol (str);

	SCM lst = scm_list_1 (str);

	if (scm_is_true (scm_call_1 (pred, lst)))
		return lst;

	// Try the single symbol interpretation

	if (scm_is_true (scm_call_1 (pred, str)))
		return str;

	return SCM_UNDEFINED;
}

SCM
try_word_variants (SCM pred, SCM str)
{
	// str is always a string when we come here

	if (scm_is_true (scm_call_1 (pred, str)))
		return str;

	// If this cannot be a string representation of a symbol list,
	// we are through.

	if (!is_regular_identifier (str, true))
		return SCM_UNDEFINED;

	str = scm_string_split (str, SCM_MAKE_CHAR ('.'));
	for (SCM p = str; scm_is_pair (p); p = scm_cdr (p))
		scm_set_car_x (p, scm_string_split (scm_car (p),
						    SCM_MAKE_CHAR (',')));
	str = scm_append_x (str);
	for (SCM p = str; scm_is_pair (p); p = scm_cdr (p))
		scm_set_car_x (p, scm_string_to_symbol (scm_car (p)));

	// Let's attempt the symbol list interpretation first.

	if (scm_is_true (scm_call_1 (pred, str)))
		return str;

	// If there is just one symbol in the list, we might interpret
	// it as a single symbol

	if (scm_is_null (scm_cdr (str)))
	{
		str = scm_car (str);
		if (scm_is_true (scm_call_1 (pred, str)))
			return str;
	}

	return SCM_UNDEFINED;
}

bool
is_regular_identifier (SCM id, bool multiple)
{
  if (!scm_is_string (id))
	  return false;

  string str = ly_scm2string (id);

  bool middle = false;

  for (string::iterator it=str.begin(); it != str.end (); it++)
  {
	  int c = *it & 0xff;
	  if ((c >= 'a' && c <= 'z')
	      || (c >= 'A' && c <= 'Z')
	      || c > 0x7f)
		  middle = true;
	  else if (middle && (c == '-' || c == '_' || (multiple &&
						       (c == '.' || c == ','))))
		  middle = false;
	  else
		  return false;
  }
  return middle;
}

SCM
make_music_from_simple (Lily_parser *parser, Input loc, SCM simple)
{
	if (unsmob<Music> (simple))
		return simple;

	if (scm_is_symbol (simple))
	{
		SCM out = SCM_UNDEFINED;
		switch (parser->lexer_->scan_word (out, simple))
		{
		case DRUM_PITCH:
		{
			Music *n = MY_MAKE_MUSIC ("NoteEvent", loc);
			n->set_property ("duration", parser->default_duration_.smobbed_copy ());
			n->set_property ("drum-type", out);
			return n->unprotect ();
		}
		case NOTENAME_PITCH:
		case TONICNAME_PITCH:
			// Take the parsed pitch
			simple = out;
			break;
		// Don't scan CHORD_MODIFIER etc.
		}
	}

	if (parser->lexer_->is_note_state ()) {
		if (unsmob<Pitch> (simple)) {
			Music *n = MY_MAKE_MUSIC ("NoteEvent", loc);
			n->set_property ("duration", parser->default_duration_.smobbed_copy ());
			n->set_property ("pitch", simple);
			return n->unprotect ();
		}
		SCM d = simple;
		if (scm_is_integer (simple))
			d = make_duration (simple);
		if (unsmob<Duration> (d)) {
			Music *n = MY_MAKE_MUSIC ("NoteEvent", loc);
			n->set_property ("duration", d);
			return n->unprotect ();
		}
		return simple;
	} else if (parser->lexer_->is_lyric_state ()) {
		if (Text_interface::is_markup (simple))
			return MAKE_SYNTAX (lyric_event, loc, simple,
					    parser->default_duration_.smobbed_copy ());
	} else if (parser->lexer_->is_chord_state ()) {
		if (unsmob<Pitch> (simple))
			return MAKE_SYNTAX
				(event_chord,
				 loc,
				 make_chord_elements (loc, simple,
						      parser->default_duration_.smobbed_copy (),
						      SCM_EOL));
	}
	return simple;
}

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

SCM
make_simple_markup (SCM a)
{
	return a;
}

SCM
make_duration (SCM d, int dots, SCM factor)
{
	Duration k;

	if (Duration *dur = unsmob<Duration> (d)) {
		if (!dots && SCM_UNBNDP (factor))
			return d;
		k = *dur;
		if (dots)
			k = Duration (k.duration_log (), k.dot_count () + dots)
				.compressed (k.factor ());
	} else {
		int t = scm_to_int (d);
		if (t > 0 && (t & (t-1)) == 0)
			k = Duration (intlog2 (t), dots);
		else
			return SCM_UNDEFINED;
	}

	if (!SCM_UNBNDP (factor))
		k = k.compressed (ly_scm2rational (factor));

	return k.smobbed_copy ();
}

SCM
make_chord_step (SCM step_scm, Rational alter)
{
	Pitch m (0, scm_to_int (step_scm) - 1, alter);

	// Notename/octave are normalized
	if (m.get_notename () == 6)
		m = m.transposed (Pitch (0, 0, FLAT_ALTERATION));

	return m.smobbed_copy ();
}


SCM
make_chord_elements (Input loc, SCM pitch, SCM dur, SCM modification_list)
{
	SCM res = Lily::construct_chord_elements (pitch, dur, modification_list);
	for (SCM s = res; scm_is_pair (s); s = scm_cdr (s))
	{
		unsmob<Music> (scm_car (s))->set_spot (loc);
	}
	return res;
}

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

	lex->lexval_ = s;
	lex->lexloc_ = loc;
	int tok = lex->pop_extra_token ();
	if (tok >= 0)
		return tok;
	lex->prepare_for_next_token ();
	return lex->yylex ();
}
