diff src/parse.y @ 113:e122c49e9726

[project @ 1993-09-18 09:06:01 by jwe] Changes to make gplot smarter about distinguishing ranges and literal matrices.
author jwe
date Sat, 18 Sep 1993 09:06:12 +0000
parents 78fd87e624cb
children 27f35bee46f6
line wrap: on
line diff
--- a/src/parse.y
+++ b/src/parse.y
@@ -88,6 +88,10 @@
 // Nonzero means we're working on a plot command.
 int plotting = 0;
 
+// Nonzero means we've seen something that means we must be past the
+// range part of a plot command.
+int past_plot_range = 0;
+
 // Nonzero means we're looking at the range part of a plot command.
 int in_plot_range = 0;
 
@@ -395,6 +399,7 @@
 		    tree_subplot_list *tmp = $2->reverse ();
 		    $$ = new tree_plot_command (tmp, $1);
 		    plotting = 0;
+		    past_plot_range = 0;
 		    in_plot_range = 0;
 		    in_plot_using = 0;
 		    in_plot_style = 0;
@@ -404,6 +409,7 @@
 		    tree_subplot_list *tmp = $3->reverse ();
 		    $$ = new tree_plot_command (tmp, $2, $1);
 		    plotting = 0;
+		    past_plot_range = 0;
 		    in_plot_range = 0;
 		    in_plot_using = 0;
 		    in_plot_style = 0;