*/
/*
+FIXME:
-TODO:
-
-* The rules for who is protecting what are very shady. Uniformise
- this.
-
-* There are too many lexical modes?
+ * The rules for who is protecting what are very shady. Uniformise
+ this.
+ * There are too many lexical modes?
*/
+#include "config.hh"
+
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
%pure_parser
%locations
-/* FIXME: The third option is an alias that will be used to display
- the syntax error. There's a bug (reported with patch) in bison CVS
- that prints double backslashes
+/* The third option is an alias that will be used to display the
+ syntax error. Bison CVS now correctly handles backslash escapes.
+
+ FIXME: Bison needs to translate some of these, eg, STRING.
- bison.ly:1:5: error: syntax error, unexpected \\book", expecting '{'
- \book
- \book %expect \book error here
+*/
/* Keyword tokens with plain escaped name. */
%token ACCEPTS "\\accepts"
%token ALIAS "\\alias"
%token ALTERNATIVE "\\alternative"
%token BAR "\\bar"
-%token BOOK "\\book"
+%token BOOK "\book"
%token CHANGE "\\change"
%token CHORDMODE "\\chordmode"
%token CHORDS "\\chords"