comparison libinterp/parse-tree/parse.h @ 16237:70f465930546

rearrange class heirarchy for tree_cell and tree_matrix * pt-array-list.h, pt-array-list.cc: New files. (tree_array_list): New class. * pt-cell.h, pt-cell.cc (tree_cell): Derive from tree_array_list. * pt-mat.h, pt-mat.cc (tree_matrix): Derive from tree_array_list. * oct-parse.in.yy (octave_parser::finish_array_list): New function adapted from octave_parser::finish_matrix. (octave_parser::finish_matrix, octave_parser::finish_cell): Call finish_array_list to do the work. * pt-arg-list.h: Include symtab.h. * base-list.h: Include cstdlib.
author John W. Eaton <jwe@octave.org>
date Sat, 09 Mar 2013 18:04:51 -0500
parents 78365c56a762
children 90dfd98a915a c5e5f6ccac5d
comparison
equal deleted inserted replaced
16235:c31fd42f9000 16237:70f465930546
39 class octave_function; 39 class octave_function;
40 class octave_user_function; 40 class octave_user_function;
41 class tree; 41 class tree;
42 class tree_anon_fcn_handle; 42 class tree_anon_fcn_handle;
43 class tree_argument_list; 43 class tree_argument_list;
44 class tree_array_list;
44 class tree_cell; 45 class tree_cell;
45 class tree_colon_expression; 46 class tree_colon_expression;
46 class tree_command; 47 class tree_command;
47 class tree_constant; 48 class tree_constant;
48 class tree_decl_command; 49 class tree_decl_command;
328 make_decl_command (int tok, token *tok_val, tree_decl_init_list *lst); 329 make_decl_command (int tok, token *tok_val, tree_decl_init_list *lst);
329 330
330 // Validate argument list forming a matrix or cell row. 331 // Validate argument list forming a matrix or cell row.
331 tree_argument_list *validate_matrix_row (tree_argument_list *row); 332 tree_argument_list *validate_matrix_row (tree_argument_list *row);
332 333
334 // Finish building an array_list (common action for finish_matrix
335 // and finish_cell).
336 tree_expression *finish_array_list (tree_array_list *a);
337
333 // Finish building a matrix list. 338 // Finish building a matrix list.
334 tree_expression *finish_matrix (tree_matrix *m); 339 tree_expression *finish_matrix (tree_matrix *m);
335 340
336 // Finish building a cell list. 341 // Finish building a cell list.
337 tree_expression *finish_cell (tree_cell *c); 342 tree_expression *finish_cell (tree_cell *c);