*** empty log message ***
authorRichard M. Stallman <rms@gnu.org>
Thu, 14 Oct 1993 16:19:10 +0000 (16:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 14 Oct 1993 16:19:10 +0000 (16:19 +0000)
bison.simple
src/bison.s1
src/bison.simple

index c0c278a..701139b 100644 (file)
@@ -181,8 +181,22 @@ __yy_bcopy (char *from, char *to, int count)
 #endif
 \f
 #line 184 "bison.simple"
+
+/* The user can define YYPARSE_PARAM as the name of an argument to be passed
+   into yyparse.  The argument should have type void *.
+   It should actually point to an object.
+   Grammar actions can access the variable by casting it
+   to the proper pointer type.  */
+
+#ifdef YYPARSE_PARAM
+#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
+#else
+#define YYPARSE_PARAM
+#endif
+
 int
-yyparse()
+yyparse(YYPARSE_PARAM)
+     YYPARSE_PARAM_DECL
 {
   register int yystate;
   register int yyn;
@@ -461,7 +475,7 @@ yyreduce:
 #endif
 
 $   /* the action file gets copied in in place of this dollarsign */
-#line 465 "bison.simple"
+#line 479 "bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;
index c0c278a..701139b 100644 (file)
@@ -181,8 +181,22 @@ __yy_bcopy (char *from, char *to, int count)
 #endif
 \f
 #line 184 "bison.simple"
+
+/* The user can define YYPARSE_PARAM as the name of an argument to be passed
+   into yyparse.  The argument should have type void *.
+   It should actually point to an object.
+   Grammar actions can access the variable by casting it
+   to the proper pointer type.  */
+
+#ifdef YYPARSE_PARAM
+#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
+#else
+#define YYPARSE_PARAM
+#endif
+
 int
-yyparse()
+yyparse(YYPARSE_PARAM)
+     YYPARSE_PARAM_DECL
 {
   register int yystate;
   register int yyn;
@@ -461,7 +475,7 @@ yyreduce:
 #endif
 
 $   /* the action file gets copied in in place of this dollarsign */
-#line 465 "bison.simple"
+#line 479 "bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;
index c0c278a..701139b 100644 (file)
@@ -181,8 +181,22 @@ __yy_bcopy (char *from, char *to, int count)
 #endif
 \f
 #line 184 "bison.simple"
+
+/* The user can define YYPARSE_PARAM as the name of an argument to be passed
+   into yyparse.  The argument should have type void *.
+   It should actually point to an object.
+   Grammar actions can access the variable by casting it
+   to the proper pointer type.  */
+
+#ifdef YYPARSE_PARAM
+#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
+#else
+#define YYPARSE_PARAM
+#endif
+
 int
-yyparse()
+yyparse(YYPARSE_PARAM)
+     YYPARSE_PARAM_DECL
 {
   register int yystate;
   register int yyn;
@@ -461,7 +475,7 @@ yyreduce:
 #endif
 
 $   /* the action file gets copied in in place of this dollarsign */
-#line 465 "bison.simple"
+#line 479 "bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;