]> git.saurik.com Git - bison.git/blobdiff - src/getargs.h
Fix bug such that the first pushed token's value and location are
[bison.git] / src / getargs.h
index a84a4857d259ec207d6bef314a136dfc2641dd61..523609df003c9d26a014bdea946cd1c8aa254253 100644 (file)
 #ifndef GETARGS_H_
 # define GETARGS_H_
 
+#include "location.h"
+
+extern char *program_name;
+
 /* flags set by % directives */
 
 /* for -S */
@@ -65,6 +69,18 @@ extern bool push_parser;
 extern bool nondeterministic_parser;
 
 
+/* --language.  */
+struct bison_language
+{
+  char language[sizeof "c++"];
+  char skeleton[sizeof "c++-skel.m4"];
+  char src_extension[sizeof ".cc"];
+  char header_extension[sizeof ".hh"];
+  bool add_tab;
+};
+
+extern struct bison_language const *language;
+
 /*-----------.
 | --report.  |
 `-----------*/
@@ -126,4 +142,8 @@ extern int warnings_flag;
  */
 void getargs (int argc, char *argv[]);
 
+/* Used by parse-gram.y.  */
+void language_argmatch (char const *arg, int prio, location const *loc);
+void skeleton_arg (const char *arg, int prio, location const *loc);
+
 #endif /* !GETARGS_H_ */