comparison 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
comparison
equal deleted inserted replaced
112:3438ee77fea2 113:e122c49e9726
85 // Probably shouldn't be a fixed size... 85 // Probably shouldn't be a fixed size...
86 char help_buf [HELP_BUF_LENGTH]; 86 char help_buf [HELP_BUF_LENGTH];
87 87
88 // Nonzero means we're working on a plot command. 88 // Nonzero means we're working on a plot command.
89 int plotting = 0; 89 int plotting = 0;
90
91 // Nonzero means we've seen something that means we must be past the
92 // range part of a plot command.
93 int past_plot_range = 0;
90 94
91 // Nonzero means we're looking at the range part of a plot command. 95 // Nonzero means we're looking at the range part of a plot command.
92 int in_plot_range = 0; 96 int in_plot_range = 0;
93 97
94 // Nonzero means we're looking at the using part of a plot command. 98 // Nonzero means we're looking at the using part of a plot command.
393 plot_command : PLOT plot_command1 397 plot_command : PLOT plot_command1
394 { 398 {
395 tree_subplot_list *tmp = $2->reverse (); 399 tree_subplot_list *tmp = $2->reverse ();
396 $$ = new tree_plot_command (tmp, $1); 400 $$ = new tree_plot_command (tmp, $1);
397 plotting = 0; 401 plotting = 0;
402 past_plot_range = 0;
398 in_plot_range = 0; 403 in_plot_range = 0;
399 in_plot_using = 0; 404 in_plot_using = 0;
400 in_plot_style = 0; 405 in_plot_style = 0;
401 } 406 }
402 | PLOT ranges plot_command1 407 | PLOT ranges plot_command1
403 { 408 {
404 tree_subplot_list *tmp = $3->reverse (); 409 tree_subplot_list *tmp = $3->reverse ();
405 $$ = new tree_plot_command (tmp, $2, $1); 410 $$ = new tree_plot_command (tmp, $2, $1);
406 plotting = 0; 411 plotting = 0;
412 past_plot_range = 0;
407 in_plot_range = 0; 413 in_plot_range = 0;
408 in_plot_using = 0; 414 in_plot_using = 0;
409 in_plot_style = 0; 415 in_plot_style = 0;
410 } 416 }
411 ; 417 ;