diff src/parse.y @ 476:de9de43ad21f

[project @ 1994-06-24 16:17:47 by jwe]
author jwe
date Fri, 24 Jun 1994 16:17:47 +0000
parents 565206294f5a
children 90964309100b
line wrap: on
line diff
--- a/src/parse.y	Tue Jun 21 21:08:12 1994 +0000
+++ b/src/parse.y	Fri Jun 24 16:17:47 1994 +0000
@@ -381,13 +381,21 @@
 		  }
 		| PLOT ranges plot_command1
 		  {
-		    tree_subplot_list *tmp = $3->reverse ();
-		    $$ = new tree_plot_command (tmp, $2, $1->pttype ());
-		    plotting = 0;
-		    past_plot_range = 0;
-		    in_plot_range = 0;
-		    in_plot_using = 0;
-		    in_plot_style = 0;
+		    if ($1->pttype () == token::replot)
+		      {
+			yyerror ("cannot specify new ranges with replot");
+			ABORT_PARSE;
+		      }
+		    else
+		      {
+			tree_subplot_list *tmp = $3->reverse ();
+			$$ = new tree_plot_command (tmp, $2, $1->pttype ());
+			plotting = 0;
+			past_plot_range = 0;
+			in_plot_range = 0;
+			in_plot_using = 0;
+			in_plot_style = 0;
+		      }
 		  }
 		;