2001-12-30 Akim Demaille <akim@epita.fr>
+ * src/parse-skel.y: Get rid of the shift/reduce conflict:
+ replace `gb' with BLANKS.
+ * src/scan-skel.l: Adjust.
+
+
+2001-12-30 Akim Demaille <akim@epita.fr>
+
* src/system.h: We don't need nor want bcopy.
Throw away MS-DOS crap: we don't need getpid.
* configure.in: We don't need strndup. It was even causing
{
char *muscle;
char *string;
+ char *literal;
char character;
int yacc;
}
+/* Name of a muscle. */
%token <muscle> MUSCLE
+/* A string dedicated to Bison (%%"foo"). */
%token <string> STRING
+/* Raw data, to output directly. */
+%token <literal> RAW
+/* Spaces. */
+%token <literal> BLANKS
+/* Raw data, but char by char. */
%token <character> CHARACTER
%token LINE
section : section.header section.body { }
;
-section.header : SECTION gb MUSCLE gb STRING gb section.yacc gb '\n'
+section.header : SECTION BLANKS MUSCLE BLANKS STRING BLANKS section.yacc '\n'
{
char *name = 0;
char *limit = 0;
| section.body TOKENS { token_definitions_output (parser, &output_line); }
| section.body ACTIONS { actions_output (parser, &output_line); }
| section.body CHARACTER { fputc ($2, parser); }
+| section.body RAW { fputs ($2, parser); }
+| section.body BLANKS { fputs ($2, parser); }
| section.body MUSCLE {
const char* value = muscle_find ($2);
if (value)
}
}
;
-
-gb : /* Empty. */ { }
- | gb CHARACTER { /* Do not echo garbage characters. */ }
-;
-
%%
static int