Mercurial > octave-nkf
changeset 17657:df266c923b83 classdef
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.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 14 Oct 2013 16:52:46 -0400 |
parents | 2b1047efc4fb |
children | dc4124992f0c |
files | libinterp/parse-tree/oct-parse.in.yy |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <comment_type> stash_comment -%type <tok_type> function_beg classdef_beg +%type <tok_val> function_beg classdef_beg %type <sep_type> sep_no_nl opt_sep_no_nl nl opt_nl sep opt_sep %type <tree_type> input %type <tree_constant_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 { } <sep_type> <tok_val> <comment_type> <dummy_type> <tok_type> <> +%destructor { } <sep_type> <tok_val> <comment_type> <dummy_type> <> %destructor { delete $$; } <*> // Where to start.