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

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

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   Free Software Foundation, Inc.

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

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

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

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

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

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

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

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

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

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

/* Pure parsers.  */
#define YYPURE 1

/* Using locations.  */
#define YYLSP_NEEDED 1



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




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


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

#define yyerror PARSER->parser_error

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


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

/*
FIXME:

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

   * There are too many lexical modes?
*/

#include "config.hh"

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

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



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

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

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

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

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


/* Copy the second part of user declarations.  */
#line 109 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"


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

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

SCM get_next_unique_context_id ();
SCM get_next_unique_lyrics_context_id ();

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


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



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

#ifdef short
# undef short
#endif

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

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

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

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

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

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

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

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

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

#if ! defined yyoverflow || YYERROR_VERBOSE

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

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

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


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

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

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

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

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

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

#endif

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

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  150
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  132
/* YYNRULES -- Number of rules.  */
#define YYNRULES  373
/* YYNRULES -- Number of states.  */
#define YYNSTATES  537

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

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

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

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     4,     7,    10,    13,    16,    19,    21,
      23,    25,    27,    29,    31,    33,    35,    36,    39,    44,
      46,    48,    52,    54,    56,    58,    60,    62,    64,    66,
      68,    70,    72,    74,    76,    81,    82,    84,    88,    91,
      96,    97,    99,   102,   105,   108,   111,   114,   117,   122,
     124,   126,   129,   132,   135,   138,   140,   143,   145,   147,
     149,   151,   154,   158,   161,   164,   167,   172,   173,   176,
     179,   182,   184,   186,   187,   192,   198,   203,   207,   212,
     216,   218,   220,   222,   224,   225,   226,   232,   233,   236,
     238,   240,   242,   244,   246,   248,   252,   256,   260,   262,
     266,   270,   272,   274,   276,   279,   280,   283,   285,   291,
     297,   301,   303,   308,   311,   315,   317,   319,   321,   323,
     325,   327,   329,   331,   333,   335,   337,   341,   344,   345,
     349,   350,   355,   358,   359,   364,   369,   373,   376,   382,
     389,   393,   395,   397,   399,   401,   403,   405,   407,   409,
     411,   413,   416,   418,   422,   428,   435,   439,   444,   447,
     449,   452,   454,   456,   460,   462,   464,   466,   468,   470,
     472,   474,   476,   478,   481,   485,   487,   489,   493,   497,
     498,   501,   507,   510,   512,   514,   519,   522,   527,   530,
     532,   535,   537,   539,   541,   543,   546,   549,   552,   554,
     557,   559,   562,   566,   567,   570,   572,   575,   577,   579,
     582,   585,   587,   589,   591,   593,   595,   597,   599,   601,
     603,   605,   607,   609,   611,   613,   615,   617,   619,   620,
     622,   625,   628,   630,   633,   635,   638,   640,   643,   646,
     648,   651,   654,   656,   658,   660,   662,   664,   666,   668,
     670,   672,   674,   676,   678,   680,   682,   684,   686,   688,
     690,   691,   693,   696,   699,   701,   705,   709,   711,   715,
     716,   719,   721,   724,   726,   728,   730,   732,   734,   736,
     738,   740,   742,   745,   748,   751,   753,   755,   757,   759,
     762,   763,   766,   770,   771,   773,   780,   783,   786,   789,
     791,   793,   796,   798,   800,   803,   808,   809,   812,   814,
     816,   819,   822,   824,   826,   828,   830,   834,   836,   839,
     842,   846,   850,   852,   854,   858,   862,   865,   867,   869,
     871,   873,   876,   879,   881,   883,   884,   887,   888,   891,
     893,   894,   898,   900,   901,   905,   907,   910,   912,   914,
     916,   919,   923,   924,   927,   930,   932,   935,   939,   941,
     944,   946,   948,   950,   952,   953,   959,   962,   967,   971,
     973,   976,   980,   983
};

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

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   438,   438,   439,   441,   443,   446,   453,   457,   460,
     466,   473,   478,   482,   499,   500,   505,   509,   515,   524,
     525,   529,   540,   545,   549,   553,   557,   560,   572,   575,
     578,   581,   584,   587,   593,   600,   604,   608,   619,   627,
     636,   643,   648,   652,   657,   660,   663,   667,   673,   679,
     689,   694,   697,   700,   712,   723,   736,   745,   750,   755,
     764,   771,   775,   785,   788,   791,   797,   810,   813,   823,
     826,   843,   844,   848,   851,   858,   865,   868,   874,   877,
     883,   884,   885,   886,   890,   891,   891,   900,   901,   907,
     908,   912,   913,   917,   918,   926,   932,   935,   940,   943,
     946,   951,   956,   957,   961,   968,   969,   976,   979,   982,
     986,   989,   990,   996,  1007,  1015,  1016,  1020,  1026,  1033,
    1038,  1046,  1053,  1059,  1064,  1071,  1079,  1083,  1090,  1090,
    1099,  1099,  1108,  1111,  1111,  1120,  1126,  1130,  1134,  1138,
    1142,  1149,  1150,  1152,  1153,  1154,  1156,  1157,  1158,  1159,
    1163,  1164,  1170,  1179,  1186,  1192,  1198,  1204,  1210,  1218,
    1221,  1227,  1230,  1233,  1238,  1241,  1244,  1249,  1252,  1255,
    1258,  1261,  1264,  1273,  1282,  1287,  1288,  1293,  1311,  1318,
    1319,  1325,  1351,  1362,  1367,  1380,  1383,  1392,  1395,  1401,
    1404,  1407,  1412,  1417,  1420,  1434,  1440,  1445,  1453,  1456,
    1460,  1463,  1467,  1485,  1488,  1495,  1498,  1501,  1506,  1511,
    1519,  1527,  1531,  1539,  1542,  1545,  1548,  1551,  1554,  1557,
    1560,  1563,  1566,  1572,  1586,  1589,  1597,  1600,  1611,  1612,
    1613,  1614,  1618,  1621,  1627,  1630,  1636,  1639,  1644,  1656,
    1659,  1664,  1673,  1679,  1680,  1684,  1689,  1695,  1703,  1706,
    1709,  1712,  1715,  1718,  1721,  1727,  1728,  1729,  1734,  1740,
    1746,  1750,  1757,  1766,  1775,  1778,  1781,  1789,  1790,  1796,
    1799,  1805,  1808,  1816,  1819,  1822,  1823,  1827,  1828,  1829,
    1833,  1837,  1848,  1852,  1863,  1882,  1885,  1888,  1894,  1897,
    1904,  1907,  1913,  1920,  1921,  1925,  1951,  1958,  1971,  1983,
    1986,  1991,  2001,  2004,  2010,  2013,  2020,  2023,  2029,  2032,
    2035,  2038,  2044,  2047,  2050,  2056,  2057,  2063,  2066,  2069,
    2081,  2084,  2087,  2091,  2094,  2097,  2103,  2106,  2111,  2114,
    2117,  2120,  2123,  2130,  2133,  2139,  2140,  2144,  2145,  2153,
    2157,  2156,  2165,  2169,  2168,  2177,  2180,  2183,  2189,  2192,
    2198,  2205,  2211,  2212,  2215,  2221,  2224,  2227,  2233,  2236,
    2242,  2245,  2248,  2251,  2254,  2254,  2263,  2266,  2269,  2272,
    2275,  2278,  2284,  2288
};
#endif

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

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,
     345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
     355,   356,   357,   358,   359,   360,   361,   362,   363,   364,
     365,   366,   367,   368,   369,   370,   371,   372,   373,   374,
     375,   376,   377,   378,   379,   380,   381,   382,    45,    43,
     383,   123,   125,    61,    46,   124,    91,    93,   126,    40,
      41,    39,    44,    94,    95,    42,    47,    58,    33,    63
};
# endif

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

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

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

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     1,   329,    38,   201,   111,   330,    41,    42,   233,
     101,   370,    43,   108,    44,   189,   263,   331,    46,    47,
      48,   165,    86,   202,   425,    49,    50,    51,   167,   106,
     255,   456,   168,    53,   340,    91,    92,   431,    93,    54,
     110,    55,    56,    57,    58,   103,   253,   372,    59,   112,
     169,   452,   453,   454,   300,   170,   171,   295,   301,   296,
     172,   173,   174,   313,   398,   346,   400,   347,   175,   176,
     324,   423,   241,   242,   243,   361,   487,   137,   138,    81,
     177,   178,    84,   362,   363,   244,    72,   303,   316,   304,
     317,    79,   390,   245,   408,   480,   409,   481,   410,   314,
     179,   528,   180,   181,   182,   183,   484,   419,   507,   508,
     509,   246,   247,   248,   249,   306,   322,   421,   184,   315,
     298,    68,   128,   129,   130,   131,   282,   132,   133,   275,
     271,   276
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -358
static const yytype_int16 yypact[] =
{
    -358,  1275,  -358,  -358,     5,  -358,  -358,   -48,  -358,  -358,
    -358,  -358,     7,  -358,  -358,  -358,  -358,   -48,  -358,  -358,
    -358,  -358,  1609,   -48,    11,    23,    25,   -40,   -36,   -48,
    -358,  -358,  -358,   347,  -358,  -358,  -358,  -358,  -358,  -358,
    -358,    27,  -358,  -358,  -358,  -358,  -358,    48,    45,  -358,
    -358,  -358,  -358,   172,  -358,  -358,     1,    77,  -358,  -358,
    -358,    89,  -358,  -358,  -358,    53,  -358,  -358,  1241,   -37,
    -358,  -358,  1491,   -34,  1373,  -358,  -358,    43,  -358,  1491,
     -37,  -358,  -358,  -358,   -36,    53,   651,   347,   347,   347,
    -358,  -358,  -358,  -358,   769,   511,    76,  -358,    75,  -358,
    -358,  -358,  -358,   219,  -358,  -358,     1,  -358,    39,   -48,
      77,   113,  1491,  -358,  -358,  -358,   158,  -358,   402,   -38,
     -38,   -38,   -38,   -38,  -358,  -358,  -358,  -358,  -358,  -358,
    -358,  -358,  -358,  1241,  -358,  -358,  -358,    50,    95,   114,
      26,   187,   320,   -48,    35,   -48,   -48,    35,    35,   -48,
     -40,  -358,  -358,  -358,  -358,  -358,  -358,  -358,    35,    35,
    -358,  -358,  -358,    35,  -358,  -358,  -358,  -358,  -358,  -358,
    -358,  -358,  -358,  -358,    35,  -358,  -358,    35,  -358,    35,
    -358,  -358,    35,  -358,  -358,  -358,  -358,  1491,  -358,    56,
    -358,   896,  1023,   156,  -358,    50,    95,  1491,    77,  -358,
    -358,  -358,  -358,    16,  1491,   130,  -358,    47,  -358,  -358,
    -358,  -358,  -358,  -358,  -358,  -358,  -358,   131,  -358,  -358,
     163,  -358,  -358,    79,  -358,  -358,  -358,  -358,  -358,  -358,
    -358,   -34,  -358,  -358,  -358,  -358,  -358,  -358,  -358,   143,
    -358,  -358,  -358,  -358,   290,  -358,    72,  -358,    18,  -358,
    -358,  -358,   186,     1,  -358,   155,  -358,  -358,   179,  -358,
    -358,  -358,  -358,  -358,  -358,  -358,  -358,  1491,  -358,  -358,
    -358,   157,  -358,   158,   402,  -358,   402,  -358,  -358,   -38,
     -38,   -38,   356,  -358,  -358,  -358,  -358,  -358,   164,  -358,
     189,  -358,  -358,  -358,  -358,   143,  -358,  -358,  -358,  -358,
     -38,   174,  -358,  -358,  -358,   173,  -358,   -38,   182,  -358,
     193,  -358,  -358,    81,   160,  1241,  -358,   173,  -358,  -358,
    -358,   274,   181,  -358,  1594,  -358,   312,  -358,  -358,  -358,
    -358,  -358,  -358,  -358,  -358,  -358,  1491,  -358,  -358,  -358,
    -358,  -358,  -358,  -358,  -358,   -30,   352,  -358,  -358,  -358,
     141,  -358,  -358,  -358,  -358,  -358,  -358,  -358,  -358,   143,
    -358,  -358,  -358,  -358,  -358,   -30,   -30,   -30,   -30,  -358,
     208,  -358,     1,  -358,  -358,  -358,  1373,  -358,  -358,  -358,
    -358,   -38,  -358,  -358,  1241,  -358,   205,  -358,   107,   -48,
     203,   132,   203,  -358,   229,   -34,  -358,  -358,  -358,   380,
    -358,  -358,  -358,  -358,  -358,  -358,  -358,    41,  -358,   154,
    -358,  -358,  -358,  1594,  1594,   212,  -358,  -358,   212,  -358,
    -358,   -80,   227,  -358,   217,  -358,  -358,   166,   166,   166,
    -358,  -358,  -358,  -358,  -358,  -358,  -358,  -358,  -358,  -358,
    -358,  -358,  -358,   -38,  -358,   -48,  -358,   -48,  -358,   -48,
     220,  -358,  -358,   225,  -358,  -358,   366,    73,  -358,  -358,
     229,   224,  -358,  -358,  -358,  -358,  -358,  -358,  1594,   166,
    -358,   181,   154,  -358,  -358,  -358,  -358,  -358,  -358,  -358,
    -358,  -358,  -358,  -358,   121,   -37,  -358,    35,  -358,    16,
    1594,   130,  -358,   -38,   -38,  -358,   229,  -358,  -358,  -358,
    -358,  -358,   229,    34,   -80,  -358,  -358,  -358,   234,  -358,
     -18,    50,    95,   313,  1150,  -358,  -358,  -358,   170,  -358,
    -358,  -358,  -358,  -358,   -34,  -358,  -358,  -358,  -358,  -358,
     -38,   228,  1594,  -358,  -358,   -38,  -358
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -358,  -358,   263,  -358,    -1,  -358,    38,  -358,    -4,  -358,
     279,  -358,   280,  -358,     6,     9,  -358,    33,  -358,  -358,
    -358,  -358,   -33,   -60,  -358,  -358,  -358,  -358,  -358,   -72,
    -358,  -358,    60,   -41,  -114,  -358,  -358,  -312,   257,  -358,
     296,  -358,  -358,  -358,  -358,  -358,  -358,  -358,  -358,  -358,
    -358,  -358,  -358,   -68,   149,   244,  -358,   -79,     3,  -357,
    -358,  -358,  -358,  -358,  -113,  -290,  -358,  -358,  -358,  -358,
    -295,   -88,  -358,  -358,   145,  -358,  -110,   -75,   -74,   374,
     -20,   -26,   315,  -358,  -358,  -358,  -358,   250,  -146,   253,
     -77,   256,   102,  -358,  -358,  -358,    10,  -358,  -358,  -358,
    -358,  -358,  -358,  -358,  -358,  -358,  -358,   -71,  -358,  -358,
    -104,  -358,   -42,  -193,  -132,   -70,    22,   -39,  -358,  -358,
       0,  -358,   116,   -92,  -358,  -111,  -358,  -115,   -89,   -57,
    -358,  -183
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -1
static const yytype_uint16 yytable[] =
{
      39,    60,    83,   187,    94,   195,   196,   240,    82,   297,
      65,   134,   166,   318,   190,   104,   239,   319,   284,   194,
      67,   413,   283,   399,   272,   414,    73,   273,   320,   274,
     348,   321,    85,   323,    45,   238,   325,   466,   267,    40,
     257,   289,   191,   192,   100,   525,    97,    39,    18,    25,
      77,    26,   270,   485,   185,    62,   186,   327,    83,    98,
     217,    52,    78,    12,    82,   256,    14,   305,    30,   486,
     305,    18,    19,    18,   327,   258,   285,    63,    64,    21,
      12,    69,    70,    14,    34,    35,    24,   470,   219,    19,
     220,    80,   258,   378,   232,   250,    21,    12,   345,   385,
      14,   236,   468,   501,   135,   136,    19,   269,   265,   258,
      39,   526,   266,    21,   262,   489,   490,   491,   277,   278,
     279,   280,   281,   185,   403,   186,   336,   326,   237,   404,
      32,   405,    37,   397,   105,   302,    61,   335,    66,   520,
     294,   264,    74,   290,   338,   521,   261,   396,    31,   344,
      62,    69,   348,    32,    75,    32,    76,   503,   284,   284,
      95,   349,   283,   367,   368,   359,   406,    34,    35,   217,
      36,   259,    63,    64,   435,   436,   102,    99,   252,    96,
     397,   415,   416,   417,   107,   418,   109,   274,   328,   193,
     383,   286,    18,   384,   344,   251,   344,   219,    69,   220,
     365,   366,   291,   337,   339,   500,   252,   375,   341,   185,
      65,   186,   371,   399,   437,   438,    31,   377,   505,    18,
     185,   439,   186,   254,   440,   441,   442,   473,   532,    34,
      35,   443,   474,    62,   464,    34,    35,   287,    36,   288,
     460,   402,   444,   403,   364,   268,   334,   445,   404,   342,
     405,   446,    34,    35,   447,    63,    64,   427,   134,   429,
     430,    18,   297,   448,   449,   117,   221,   222,   120,   284,
     122,   432,   350,   283,    32,   292,   426,   217,   379,   380,
     381,   343,   475,   476,   369,   406,   373,   401,   376,   127,
     293,   477,    34,    35,   307,   308,   407,   386,   311,   388,
     478,    32,   479,   530,   374,   219,   393,   220,   389,    34,
      35,   387,   221,   222,   411,   394,   190,   292,   391,   217,
     424,   465,    18,   433,   434,   467,   395,   377,   297,   420,
     459,   455,   293,   450,   415,   416,   417,   463,   418,    80,
     451,   513,   344,    32,   203,   204,   205,   219,   488,   220,
     497,    34,    35,   496,   221,   222,   351,   502,   527,   143,
     208,   535,   209,   210,   297,   211,   145,   212,   524,   146,
     297,   260,   437,   438,   234,   235,   149,   517,   352,   439,
     458,   198,   440,   441,   442,   457,   299,   461,   499,   360,
     522,   218,   462,   294,   523,   482,    71,   309,   483,   197,
     444,   310,   516,   113,    32,   445,   312,   411,   392,   446,
     511,   512,   447,   506,   510,   221,   222,   472,   353,   354,
     533,   448,   449,   471,   355,   356,   224,   225,   226,   227,
     228,   412,   504,   357,   358,     0,     0,   231,    87,    88,
      89,    90,   492,   427,   428,   429,   430,     0,   493,   113,
     494,     0,   495,     0,   510,   514,     0,     0,     0,   294,
     114,   115,   116,   117,   118,   119,   120,   121,   122,   123,
     124,   427,   469,   429,   430,     0,     0,   401,     0,     0,
       0,   125,   126,     0,     0,     0,     0,   127,   382,   515,
     339,   450,   518,   519,   341,   294,     0,     0,   498,     0,
       0,   294,     0,     0,     0,     0,   114,   115,   116,   117,
     118,   119,   120,   121,   122,   123,   124,   531,     0,     0,
       4,   139,     5,     6,     0,   207,     0,   125,   126,   534,
       8,     9,    10,    11,   536,     0,     0,   140,    14,    15,
      16,    17,   141,    18,    19,     0,    20,     0,     0,   142,
     143,    21,   144,    22,     0,    23,     0,   145,    24,    25,
     146,    26,   147,   148,    27,    28,     0,   149,     0,   150,
      29,     0,     0,     0,     0,     0,   151,     0,    30,     0,
     152,   208,     0,   209,   210,   153,   211,   154,   212,     0,
     155,   213,     0,   156,     0,   214,     0,   157,   158,   215,
     216,   217,     0,     0,     0,     0,     0,     0,     0,     0,
     159,     0,   218,     0,   160,   161,     0,     0,     0,     0,
       0,     0,     0,     0,     0,    32,    33,   162,    69,   219,
       0,   220,   163,    34,    35,     0,   221,   222,    80,   223,
       0,     0,    37,     0,     0,     0,   164,   224,   225,   226,
     227,   228,   199,     0,   229,   230,     0,     0,   231,     0,
       0,   139,     5,     6,     0,     7,     0,     0,     0,     0,
       8,     9,    10,    11,     0,     0,     0,   140,     0,    15,
      16,    17,   141,     0,     0,     0,    20,     0,     0,   142,
     143,     0,   144,    22,     0,    23,     0,   145,     0,    25,
     146,    26,   147,   148,    27,    28,     0,   149,     0,   150,
      29,     0,     0,     0,     0,     0,   151,     0,    30,   200,
     152,     0,     0,     0,     0,   153,     0,   154,     0,     0,
     155,     0,     0,   156,     0,     0,     0,   157,   158,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     159,     0,     0,     0,   160,   161,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    33,   162,    69,     0,
     199,     0,   163,    34,    35,     0,     0,     0,    80,   139,
       5,     6,    37,     7,     0,     0,   164,     0,     8,     9,
      10,    11,     0,     0,     0,   140,     0,    15,    16,    17,
     141,     0,     0,     0,    20,     0,     0,   142,   143,     0,
     144,    22,     0,    23,     0,   145,     0,    25,   146,    26,
     147,   148,    27,    28,     0,   149,     0,   150,    29,     0,
       0,     0,     0,     0,   151,     0,    30,     0,   152,     0,
       0,     0,     0,   153,     0,   154,     0,     0,   155,     0,
       0,   156,     0,     0,     0,   157,   158,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   159,     0,
       0,     0,   160,   161,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    33,   162,    69,     0,     0,     0,
     163,    34,    35,     0,     0,     0,    80,   199,     0,     0,
      37,   206,     0,     0,   164,     0,   139,     5,     6,     0,
       7,     0,     0,     0,     0,     8,     9,    10,    11,     0,
       0,     0,   140,     0,    15,    16,    17,   141,     0,     0,
       0,    20,     0,     0,   142,   143,     0,   144,    22,     0,
      23,     0,   145,     0,    25,   146,    26,   147,   148,    27,
      28,     0,   149,     0,   150,    29,     0,     0,     0,     0,
       0,   151,     0,    30,     0,   152,     0,     0,     0,     0,
     153,     0,   154,     0,     0,   155,     0,     0,   156,     0,
       0,     0,   157,   158,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   159,     0,     0,     0,   160,
     161,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    33,   162,    69,     0,     0,     0,   163,    34,    35,
       0,     0,     0,    80,   199,     0,     0,    37,   332,     0,
       0,   164,     0,   139,     5,     6,     0,     7,     0,     0,
       0,     0,     8,     9,    10,    11,     0,     0,     0,   140,
       0,    15,    16,    17,   141,     0,     0,     0,    20,     0,
       0,   142,   143,     0,   144,    22,     0,    23,     0,   145,
       0,    25,   146,    26,   147,   148,    27,    28,     0,   149,
       0,   150,    29,     0,     0,     0,     0,     0,   151,     0,
      30,     0,   152,     0,     0,     0,     0,   153,     0,   154,
       0,     0,   155,     0,     0,   156,     0,     0,     0,   157,
     158,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   159,     0,     0,     0,   160,   161,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    33,   162,
      69,     0,     0,     0,   163,    34,    35,     0,     0,     0,
      80,   199,     0,     0,    37,   333,     0,     0,   164,     0,
     139,     5,     6,     0,     7,     0,     0,     0,     0,     8,
       9,    10,    11,     0,     0,     0,   140,     0,    15,    16,
      17,   141,     0,     0,     0,    20,     0,     0,   142,   143,
       0,   144,    22,     0,    23,     0,   145,     0,    25,   146,
      26,   147,   148,    27,    28,     0,   149,     0,   150,    29,
       0,     0,     0,     0,     0,   151,     0,    30,     0,   152,
       0,     0,     0,     0,   153,     0,   154,     0,     0,   155,
       0,     0,   156,     0,     0,     0,   157,   158,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   159,
       0,     0,     0,   160,   161,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,    33,   162,    69,     0,     0,
       0,   163,    34,    35,     0,     2,     3,    80,     0,     0,
       0,    37,   529,     0,     4,   164,     5,     6,   113,     7,
       0,     0,     0,     0,     8,     9,    10,    11,     0,    12,
      13,     0,    14,    15,    16,    17,     0,    18,    19,     0,
      20,     0,     0,     0,     0,    21,     0,    22,     0,    23,
       0,     0,    24,    25,     0,    26,     0,     0,    27,    28,
       0,     0,     0,     0,    29,     0,     0,     0,     0,     0,
       0,     0,    30,     0,     0,   114,   115,   116,   117,   118,
     119,   120,   121,   122,   123,   124,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   125,   126,     0,     0,
       0,     0,   127,     0,     0,     0,     0,     0,    31,     0,
       0,     0,     0,   139,     5,     6,     0,     7,     0,    32,
      33,     0,     8,     9,    10,    11,     0,    34,    35,   140,
      36,    15,    16,    17,   141,     0,    37,     0,    20,     0,
       0,   142,   143,     0,   144,    22,     0,    23,     0,   145,
       0,    25,   146,    26,   147,   148,    27,    28,     0,   149,
       0,   150,    29,     0,     0,     0,     0,     0,   151,     0,
      30,     0,   152,     0,     0,     0,     0,   153,     0,   154,
       0,     0,   155,     0,     0,   156,     0,     0,     0,   157,
     158,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   159,     0,     0,     0,   160,   161,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    33,   162,
      69,     0,     0,     0,   163,     0,     0,   188,     0,     0,
      80,   139,     5,     6,    37,     7,     0,     0,   164,     0,
       8,     9,    10,    11,     0,     0,     0,   140,     0,    15,
      16,    17,   141,     0,     0,     0,    20,     0,     0,   142,
     143,     0,   144,    22,     0,    23,     0,   145,     0,    25,
     146,    26,   147,   148,    27,    28,     0,   149,     0,   150,
      29,     0,     0,     0,     0,     0,   151,     0,    30,     0,
     152,     0,     0,     0,     0,   153,     0,   154,     0,     0,
     155,     0,     0,   156,     0,     0,     0,   157,   158,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     159,     0,     0,     0,   160,   161,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    33,   162,    69,     0,
       0,     0,   163,     0,     0,     0,     0,     0,    80,     0,
       5,     6,    37,     7,     0,     0,   164,     0,     8,     9,
      10,    11,     0,     0,     0,     0,     0,    15,    16,    17,
       0,     0,     0,     0,    20,     0,     0,     0,     0,     0,
       0,    22,     0,    23,     0,     0,     0,    25,     0,    26,
       0,     0,    27,    28,   208,     0,   209,   210,    29,   211,
       0,   212,     0,     0,   213,     0,    30,     0,   214,     0,
       0,     0,     0,   216,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   218,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   422,     0,    33,     0,    69,     0,     0,     0,
     224,   225,   226,   227,   228,     0,     0,   229,   230,     0,
      37,   231
};

static const yytype_int16 yycheck[] =
{
       1,     1,    28,    73,    37,    80,    80,    95,    28,   141,
       7,    68,    72,   159,    74,    56,    95,   163,   133,    79,
      17,   316,   133,   313,   116,   320,    23,   116,   174,   118,
     223,   177,    29,   179,     1,    95,   182,   394,   110,     1,
       1,    15,    75,    76,    48,    63,     1,    48,    32,    48,
      90,    50,   112,   133,    88,   103,    90,     1,    84,    14,
      90,     1,   102,    24,    84,   106,    27,   144,    67,   149,
     147,    32,    33,    32,     1,    36,   133,   125,   126,    40,
      24,   117,    22,    27,   122,   123,    47,   399,   118,    33,
     120,   127,    36,   276,    95,    95,    40,    24,   128,   282,
      27,    95,   397,   460,   141,   142,    33,   111,   108,    36,
     111,   129,   109,    40,   108,   427,   428,   429,   119,   120,
     121,   122,   123,    88,    83,    90,   198,   187,    95,    88,
     114,    90,   131,    99,    57,   100,   131,   197,   131,   496,
     141,   108,   131,   117,   204,   502,   108,    66,   103,   115,
     103,   117,   345,   114,   131,   114,   131,   469,   273,   274,
     133,   231,   273,   145,   146,   244,   125,   122,   123,    90,
     125,   132,   125,   126,   367,   368,     4,   132,   131,   131,
      99,    60,    61,    62,    95,    64,   133,   276,   132,   146,
     282,   141,    32,   282,   115,   119,   115,   118,   117,   120,
     128,   129,    15,   203,   205,   132,   131,   267,   205,    88,
     207,    90,   253,   503,     6,     7,   103,   274,    97,    32,
      88,    13,    90,     4,    16,    17,    18,    73,   523,   122,
     123,    23,    78,   103,   102,   122,   123,   142,   125,   125,
     133,    81,    34,    83,   244,   132,    90,    39,    88,   118,
      90,    43,   122,   123,    46,   125,   126,    91,   315,    93,
      94,    32,   394,    55,    56,   107,   125,   126,   110,   384,
     112,   350,   129,   384,   114,    88,   336,    90,   279,   280,
     281,   118,   128,   129,    98,   125,   131,   313,   131,   131,
     103,   137,   122,   123,   145,   146,   136,   133,   149,   300,
     146,   114,   148,   133,   125,   118,   307,   120,   134,   122,
     123,   122,   125,   126,   314,   133,   376,    88,   145,    90,
       8,   391,    32,   365,   366,   395,   133,   384,   460,   148,
     125,   372,   103,   125,    60,    61,    62,   134,    64,   127,
     132,   487,   115,   114,    87,    88,    89,   118,   131,   120,
     125,   122,   123,   133,   125,   126,    66,   133,    45,    39,
      70,   133,    72,    73,   496,    75,    46,    77,   134,    49,
     502,   108,     6,     7,    95,    95,    56,   491,    88,    13,
     381,    85,    16,    17,    18,   376,   142,   388,   456,   244,
     503,   101,   389,   394,   504,   415,    22,   147,   418,    84,
      34,   148,   490,    47,   114,    39,   150,   407,   306,    43,
     485,   485,    46,   484,   484,   125,   126,   407,   128,   129,
     524,    55,    56,   401,   134,   135,   136,   137,   138,   139,
     140,   315,   471,   143,   144,    -1,    -1,   147,    91,    92,
      93,    94,   443,    91,    92,    93,    94,    -1,   445,    47,
     447,    -1,   449,    -1,   524,   488,    -1,    -1,    -1,   460,
     104,   105,   106,   107,   108,   109,   110,   111,   112,   113,
     114,    91,    92,    93,    94,    -1,    -1,   503,    -1,    -1,
      -1,   125,   126,    -1,    -1,    -1,    -1,   131,   132,   489,
     491,   125,   493,   494,   491,   496,    -1,    -1,   132,    -1,
      -1,   502,    -1,    -1,    -1,    -1,   104,   105,   106,   107,
     108,   109,   110,   111,   112,   113,   114,   518,    -1,    -1,
       9,    10,    11,    12,    -1,    14,    -1,   125,   126,   530,
      19,    20,    21,    22,   535,    -1,    -1,    26,    27,    28,
      29,    30,    31,    32,    33,    -1,    35,    -1,    -1,    38,
      39,    40,    41,    42,    -1,    44,    -1,    46,    47,    48,
      49,    50,    51,    52,    53,    54,    -1,    56,    -1,    58,
      59,    -1,    -1,    -1,    -1,    -1,    65,    -1,    67,    -1,
      69,    70,    -1,    72,    73,    74,    75,    76,    77,    -1,
      79,    80,    -1,    82,    -1,    84,    -1,    86,    87,    88,
      89,    90,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      99,    -1,   101,    -1,   103,   104,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   114,   115,   116,   117,   118,
      -1,   120,   121,   122,   123,    -1,   125,   126,   127,   128,
      -1,    -1,   131,    -1,    -1,    -1,   135,   136,   137,   138,
     139,   140,     1,    -1,   143,   144,    -1,    -1,   147,    -1,
      -1,    10,    11,    12,    -1,    14,    -1,    -1,    -1,    -1,
      19,    20,    21,    22,    -1,    -1,    -1,    26,    -1,    28,
      29,    30,    31,    -1,    -1,    -1,    35,    -1,    -1,    38,
      39,    -1,    41,    42,    -1,    44,    -1,    46,    -1,    48,
      49,    50,    51,    52,    53,    54,    -1,    56,    -1,    58,
      59,    -1,    -1,    -1,    -1,    -1,    65,    -1,    67,    68,
      69,    -1,    -1,    -1,    -1,    74,    -1,    76,    -1,    -1,
      79,    -1,    -1,    82,    -1,    -1,    -1,    86,    87,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      99,    -1,    -1,    -1,   103,   104,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   115,   116,   117,    -1,
       1,    -1,   121,   122,   123,    -1,    -1,    -1,   127,    10,
      11,    12,   131,    14,    -1,    -1,   135,    -1,    19,    20,
      21,    22,    -1,    -1,    -1,    26,    -1,    28,    29,    30,
      31,    -1,    -1,    -1,    35,    -1,    -1,    38,    39,    -1,
      41,    42,    -1,    44,    -1,    46,    -1,    48,    49,    50,
      51,    52,    53,    54,    -1,    56,    -1,    58,    59,    -1,
      -1,    -1,    -1,    -1,    65,    -1,    67,    -1,    69,    -1,
      -1,    -1,    -1,    74,    -1,    76,    -1,    -1,    79,    -1,
      -1,    82,    -1,    -1,    -1,    86,    87,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    99,    -1,
      -1,    -1,   103,   104,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,   115,   116,   117,    -1,    -1,    -1,
     121,   122,   123,    -1,    -1,    -1,   127,     1,    -1,    -1,
     131,   132,    -1,    -1,   135,    -1,    10,    11,    12,    -1,
      14,    -1,    -1,    -1,    -1,    19,    20,    21,    22,    -1,
      -1,    -1,    26,    -1,    28,    29,    30,    31,    -1,    -1,
      -1,    35,    -1,    -1,    38,    39,    -1,    41,    42,    -1,
      44,    -1,    46,    -1,    48,    49,    50,    51,    52,    53,
      54,    -1,    56,    -1,    58,    59,    -1,    -1,    -1,    -1,
      -1,    65,    -1,    67,    -1,    69,    -1,    -1,    -1,    -1,
      74,    -1,    76,    -1,    -1,    79,    -1,    -1,    82,    -1,
      -1,    -1,    86,    87,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    99,    -1,    -1,    -1,   103,
     104,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,   115,   116,   117,    -1,    -1,    -1,   121,   122,   123,
      -1,    -1,    -1,   127,     1,    -1,    -1,   131,   132,    -1,
      -1,   135,    -1,    10,    11,    12,    -1,    14,    -1,    -1,
      -1,    -1,    19,    20,    21,    22,    -1,    -1,    -1,    26,
      -1,    28,    29,    30,    31,    -1,    -1,    -1,    35,    -1,
      -1,    38,    39,    -1,    41,    42,    -1,    44,    -1,    46,
      -1,    48,    49,    50,    51,    52,    53,    54,    -1,    56,
      -1,    58,    59,    -1,    -1,    -1,    -1,    -1,    65,    -1,
      67,    -1,    69,    -1,    -1,    -1,    -1,    74,    -1,    76,
      -1,    -1,    79,    -1,    -1,    82,    -1,    -1,    -1,    86,
      87,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    99,    -1,    -1,    -1,   103,   104,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   115,   116,
     117,    -1,    -1,    -1,   121,   122,   123,    -1,    -1,    -1,
     127,     1,    -1,    -1,   131,   132,    -1,    -1,   135,    -1,
      10,    11,    12,    -1,    14,    -1,    -1,    -1,    -1,    19,
      20,    21,    22,    -1,    -1,    -1,    26,    -1,    28,    29,
      30,    31,    -1,    -1,    -1,    35,    -1,    -1,    38,    39,
      -1,    41,    42,    -1,    44,    -1,    46,    -1,    48,    49,
      50,    51,    52,    53,    54,    -1,    56,    -1,    58,    59,
      -1,    -1,    -1,    -1,    -1,    65,    -1,    67,    -1,    69,
      -1,    -1,    -1,    -1,    74,    -1,    76,    -1,    -1,    79,
      -1,    -1,    82,    -1,    -1,    -1,    86,    87,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    99,
      -1,    -1,    -1,   103,   104,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   115,   116,   117,    -1,    -1,
      -1,   121,   122,   123,    -1,     0,     1,   127,    -1,    -1,
      -1,   131,   132,    -1,     9,   135,    11,    12,    47,    14,
      -1,    -1,    -1,    -1,    19,    20,    21,    22,    -1,    24,
      25,    -1,    27,    28,    29,    30,    -1,    32,    33,    -1,
      35,    -1,    -1,    -1,    -1,    40,    -1,    42,    -1,    44,
      -1,    -1,    47,    48,    -1,    50,    -1,    -1,    53,    54,
      -1,    -1,    -1,    -1,    59,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    67,    -1,    -1,   104,   105,   106,   107,   108,
     109,   110,   111,   112,   113,   114,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   125,   126,    -1,    -1,
      -1,    -1,   131,    -1,    -1,    -1,    -1,    -1,   103,    -1,
      -1,    -1,    -1,    10,    11,    12,    -1,    14,    -1,   114,
     115,    -1,    19,    20,    21,    22,    -1,   122,   123,    26,
     125,    28,    29,    30,    31,    -1,   131,    -1,    35,    -1,
      -1,    38,    39,    -1,    41,    42,    -1,    44,    -1,    46,
      -1,    48,    49,    50,    51,    52,    53,    54,    -1,    56,
      -1,    58,    59,    -1,    -1,    -1,    -1,    -1,    65,    -1,
      67,    -1,    69,    -1,    -1,    -1,    -1,    74,    -1,    76,
      -1,    -1,    79,    -1,    -1,    82,    -1,    -1,    -1,    86,
      87,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    99,    -1,    -1,    -1,   103,   104,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   115,   116,
     117,    -1,    -1,    -1,   121,    -1,    -1,   124,    -1,    -1,
     127,    10,    11,    12,   131,    14,    -1,    -1,   135,    -1,
      19,    20,    21,    22,    -1,    -1,    -1,    26,    -1,    28,
      29,    30,    31,    -1,    -1,    -1,    35,    -1,    -1,    38,
      39,    -1,    41,    42,    -1,    44,    -1,    46,    -1,    48,
      49,    50,    51,    52,    53,    54,    -1,    56,    -1,    58,
      59,    -1,    -1,    -1,    -1,    -1,    65,    -1,    67,    -1,
      69,    -1,    -1,    -1,    -1,    74,    -1,    76,    -1,    -1,
      79,    -1,    -1,    82,    -1,    -1,    -1,    86,    87,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      99,    -1,    -1,    -1,   103,   104,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   115,   116,   117,    -1,
      -1,    -1,   121,    -1,    -1,    -1,    -1,    -1,   127,    -1,
      11,    12,   131,    14,    -1,    -1,   135,    -1,    19,    20,
      21,    22,    -1,    -1,    -1,    -1,    -1,    28,    29,    30,
      -1,    -1,    -1,    -1,    35,    -1,    -1,    -1,    -1,    -1,
      -1,    42,    -1,    44,    -1,    -1,    -1,    48,    -1,    50,
      -1,    -1,    53,    54,    70,    -1,    72,    73,    59,    75,
      -1,    77,    -1,    -1,    80,    -1,    67,    -1,    84,    -1,
      -1,    -1,    -1,    89,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   101,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   128,    -1,   115,    -1,   117,    -1,    -1,    -1,
     136,   137,   138,   139,   140,    -1,    -1,   143,   144,    -1,
     131,   147
};

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

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

#define YYACCEPT	goto yyacceptlab
#define YYABORT		goto yyabortlab
#define YYERROR		goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */

#define YYFAIL		goto yyerrlab

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yytoken = YYTRANSLATE (yychar);				\
      YYPOPSTACK (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;							\
    }								\
while (YYID (0))


#define YYTERROR	1
#define YYERRCODE	256


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

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


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

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


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

#ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
#else
# define YYLEX yylex (&yylval, &yylloc)
#endif

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

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

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

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


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

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


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

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

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

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

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

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


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

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

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

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


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

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

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

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
    const char *yystr;
#endif
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  endif
# endif

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

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

  return yyd - 1;
}
#  endif
# endif

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

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

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

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

  if (! yyres)
    return yystrlen (yystr);

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

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

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

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

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

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

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

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

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

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

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

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

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

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

  switch (yytype)
    {

      default:
	break;
    }
}


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

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






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

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

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

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

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

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

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

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

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

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

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

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

  YYSIZE_T yystacksize = YYINITDEPTH;

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

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

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

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

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

  yyssp = yyss;
  yyvsp = yyvs;
  yylsp = yyls;
#if YYLTYPE_IS_TRIVIAL
  /* Initialize the default location before parsing starts.  */
  yylloc.first_line   = yylloc.last_line   = 1;
  yylloc.first_column = yylloc.last_column = 0;
#endif

  goto yysetstate;

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

 yysetstate:
  *yyssp = yystate;

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

#ifdef yyoverflow
      {
	/* Give user a chance to reallocate the stack.  Use copies of
	   these so that the &'s don't force the real ones into
	   memory.  */
	YYSTYPE *yyvs1 = yyvs;
	yytype_int16 *yyss1 = yyss;
	YYLTYPE *yyls1 = yyls;

	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  This used to be a
	   conditional around just the two extra args, but that might
	   be undefined if yyoverflow is a macro.  */
	yyoverflow (YY_("memory exhausted"),
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),
		    &yyls1, yysize * sizeof (*yylsp),
		    &yystacksize);
	yyls = yyls1;
	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

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

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

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

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

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

  goto yybackup;

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

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

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

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

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

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

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

  if (yyn == YYFINAL)
    YYACCEPT;

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

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

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

  yystate = yyn;
  *++yyvsp = yylval;
  *++yylsp = yylloc;
  goto yynewstate;


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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 16:
#line 505 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = get_header(PARSER);
		PARSER->lexer_->add_scope ((yyval.scm));
	;}
    break;

  case 17:
#line 509 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		
	;}
    break;

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

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

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

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

/*
 TODO: devise standard for protection in parser.

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

*/
	;}
    break;

  case 22:
#line 540 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    { ;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 37:
#line 608 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		Context_def*td = unsmob_context_def ((yyval.scm));

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

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

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

  case 39:
#line 627 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.book) = (yyvsp[(3) - (4)].book);
	;}
    break;

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

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

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

  case 43:
#line 652 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		SCM s = (yyvsp[(2) - (2)].score)->self_scm ();
		(yyval.book)->add_score (s);
		(yyvsp[(2) - (2)].score)->unprotect();
	;}
    break;

  case 44:
#line 657 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.book)->add_score ((yyvsp[(2) - (2)].scm));
	;}
    break;

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

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

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

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

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

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

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

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

  case 52:
#line 697 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.score)->header_ = (yyvsp[(2) - (2)].scm);
	;}
    break;

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

  case 54:
#line 712 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.score)->error_found_ = true;
	;}
    break;

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

  case 56:
#line 736 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.outputdef) = (yyvsp[(1) - (2)].outputdef);

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

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

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

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

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

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

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

  case 62:
#line 775 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyvsp[(1) - (3)].outputdef)->unprotect ();

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

  case 63:
#line 785 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {

	;}
    break;

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

  case 65:
#line 791 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {

	;}
    break;

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

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

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

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

  case 69:
#line 823 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {

	;}
    break;

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

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

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

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

  case 75:
#line 859 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = MAKE_SYNTAX ("repeat", (yyloc), (yyvsp[(2) - (5)].scm), scm_int2num ((yyvsp[(3) - (5)].i)), (yyvsp[(4) - (5)].scm), (yyvsp[(5) - (5)].scm));
	;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 117:
#line 1020 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("pitchnames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));

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

  case 118:
#line 1027 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("drumPitchNames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));

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

  case 119:
#line 1033 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		PARSER->lexer_->push_figuredbass_state ();

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

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

	;}
    break;

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

  case 122:
#line 1053 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		SCM nn = PARSER->lexer_->lookup_identifier ("drumPitchNames");
		PARSER->lexer_->push_note_state (alist_to_hashq (nn));

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

  case 123:
#line 1059 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		PARSER->lexer_->push_figuredbass_state ();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 138:
#line 1134 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_list_4 (ly_symbol2scm ("push"),
			scm_string_to_symbol ((yyvsp[(2) - (5)].scm)), (yyvsp[(5) - (5)].scm), (yyvsp[(3) - (5)].scm));
	;}
    break;

  case 139:
#line 1138 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_list_5 (ly_symbol2scm ("push"),
				scm_string_to_symbol ((yyvsp[(2) - (6)].scm)), (yyvsp[(6) - (6)].scm), (yyvsp[(4) - (6)].scm), (yyvsp[(3) - (6)].scm));
	;}
    break;

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

  case 141:
#line 1149 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    { (yyval.scm) = ly_symbol2scm ("consists"); ;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 154:
#line 1186 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_list_5 (scm_car ((yyvsp[(2) - (5)].scm)),
			ly_symbol2scm ("OverrideProperty"),
			scm_cadr ((yyvsp[(2) - (5)].scm)),
			(yyvsp[(5) - (5)].scm), (yyvsp[(3) - (5)].scm));
	;}
    break;

  case 155:
#line 1192 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_list_n (scm_car ((yyvsp[(2) - (6)].scm)),			
			ly_symbol2scm ("OverrideProperty"),
			scm_cadr ((yyvsp[(2) - (6)].scm)),
			(yyvsp[(6) - (6)].scm), (yyvsp[(4) - (6)].scm), (yyvsp[(3) - (6)].scm), SCM_UNDEFINED);
	;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 194:
#line 1420 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		SCM pipe = PARSER->lexer_->lookup_identifier ("pipeSymbol");

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

	;}
    break;

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

  case 196:
#line 1440 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		SCM proc = ly_lily_module_constant ("make-time-signature-set");

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

  case 197:
#line 1445 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		SCM proc = ly_lily_module_constant ("make-mark-set");

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

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

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

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

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

  case 202:
#line 1467 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {

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

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

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

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

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

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

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

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

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

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

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

  case 213:
#line 1539 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("bracketOpenSymbol");
	;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 233:
#line 1621 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.i) ++;
	;}
    break;

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

  case 235:
#line 1630 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.i)++;
	;}
    break;

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

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

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

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

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

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

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

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

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

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

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

  case 248:
#line 1703 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_makfrom0str ("Hat");
	;}
    break;

  case 249:
#line 1706 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_makfrom0str ("Plus");
	;}
    break;

  case 250:
#line 1709 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_makfrom0str ("Dash");
	;}
    break;

  case 251:
#line 1712 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_makfrom0str ("Bar");
	;}
    break;

  case 252:
#line 1715 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_makfrom0str ("Larger");
	;}
    break;

  case 253:
#line 1718 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_makfrom0str ("Dot");
	;}
    break;

  case 254:
#line 1721 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = scm_makfrom0str ("Underscore");
	;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 270:
#line 1799 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.i) ++;
	;}
    break;

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

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

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

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

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

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

  case 277:
#line 1827 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    { (yyval.i) = -2; ;}
    break;

  case 278:
#line 1828 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    { (yyval.i) = 2; ;}
    break;

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

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

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

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

		bfr->unprotect ();
	;}
    break;

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

  case 283:
#line 1852 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		Music *m = unsmob_music ((yyvsp[(1) - (2)].scm));
		if ((yyvsp[(2) - (2)].i)) {
			SCM salter = m->get_property ("alteration");
			int alter = scm_is_number (salter) ? scm_to_int (salter) : 0;
			m->set_property ("alteration",
				scm_from_int (alter + (yyvsp[(2) - (2)].i)));
		} else {
			m->set_property ("alteration", scm_from_int (0));
		}
	;}
    break;

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

  case 285:
#line 1882 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = ly_symbol2scm ("plus");
	;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 318:
#line 2066 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (2)].i), SHARP);
	;}
    break;

  case 319:
#line 2069 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    {
		(yyval.scm) = make_chord_step ((yyvsp[(1) - (2)].i), FLAT);
	;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  case 336:
#line 2140 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    { (yyval.i) ++; ;}
    break;

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

  case 338:
#line 2145 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"
    { (yyval.i) ++; ;}
    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

  yyn = yyr1[yyn];

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

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (YY_("syntax error"));
#else
      {
	YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
	if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
	  {
	    YYSIZE_T yyalloc = 2 * yysize;
	    if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
	      yyalloc = YYSTACK_ALLOC_MAXIMUM;
	    if (yymsg != yymsgbuf)
	      YYSTACK_FREE (yymsg);
	    yymsg = (char *) YYSTACK_ALLOC (yyalloc);
	    if (yymsg)
	      yymsg_alloc = yyalloc;
	    else
	      {
		yymsg = yymsgbuf;
		yymsg_alloc = sizeof yymsgbuf;
	      }
	  }

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

  yyerror_range[0] = yylloc;

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

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

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


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

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

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


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

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

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

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

  if (yyn == YYFINAL)
    YYACCEPT;

  *++yyvsp = yylval;

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

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

  yystate = yyn;
  goto yynewstate;


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

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

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

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


#line 2293 "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-master-git.sv.gnu.org-lilypond.git/lily/parser.yy"


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

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





/*

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

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

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

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

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

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

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

	return -1;	
}

SCM
get_next_unique_context_id ()
{
	return scm_makfrom0str ("$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_makfrom0str (s);
}


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

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

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

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

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

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

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

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

SCM
make_simple_markup (SCM a)
{
	return a;
}

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

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


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

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


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


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

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

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

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

