# HG changeset patch # User John W. Eaton # Date 1381783966 14400 # Node ID df266c923b830c10efb59dcd06d051e1bdf2eb1c # Parent 2b1047efc4fb7d6a5ad6e24f048cba956271f736 delete unnecessary tok_type semantic value in parser * oct-parse.in.yy (tok_type): Delete type. Don't list it in null destructor line. (function_beg, classdef_beg): Declare as tok_val, not tok_type. diff -r 2b1047efc4fb -r df266c923b83 libinterp/parse-tree/oct-parse.in.yy --- a/libinterp/parse-tree/oct-parse.in.yy Mon Oct 14 16:49:14 2013 -0400 +++ b/libinterp/parse-tree/oct-parse.in.yy Mon Oct 14 16:52:46 2013 -0400 @@ -165,7 +165,6 @@ // Types for the nonterminals we generate. char sep_type; - token *tok_type; tree *tree_type; tree_matrix *tree_matrix_type; tree_cell *tree_cell_type; @@ -251,7 +250,7 @@ // Nonterminals we construct. %type stash_comment -%type function_beg classdef_beg +%type function_beg classdef_beg %type sep_no_nl opt_sep_no_nl nl opt_nl sep opt_sep %type input %type string constant magic_colon @@ -325,7 +324,7 @@ // and comments seperately and separators are just characters. The // remaining items are dynamically allocated parse tree objects that // must be deleted. -%destructor { } <> +%destructor { } <> %destructor { delete $$; } <*> // Where to start.