X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f122444873a1ec499d25ffec5765dcc48dc7b928..19fe1aa3323eb8e7a6bc66c966a2f9f25741ff42:/src/parse-gram.y diff --git a/src/parse-gram.y b/src/parse-gram.y index 9a266251..1ec4b4dc 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -23,9 +23,14 @@ #include "symtab.h" } +%code top +{ + /* On column 0 to please syntax-check. */ +#include +} + %code { - #include #include "system.h" #include "c-ctype.h" @@ -622,7 +627,7 @@ rhs: named_ref.opt: %empty { $$ = 0; } -| BRACKETED_ID { $$ = named_ref_new($1, @1); } +| BRACKETED_ID { $$ = named_ref_new ($1, @1); } ; /*---------------------. @@ -745,7 +750,7 @@ lloc_default (YYLTYPE const *rhs, int n) static char *strip_braces (char *code) { - code[strlen(code) - 1] = 0; + code[strlen (code) - 1] = 0; return code + 1; }