Mercurial > octave
diff libinterp/parse-tree/oct-parse.in.yy @ 23693:b9378eff6d13
move symbol_table class inside octave namespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 25 Jun 2017 09:50:51 -0400 |
parents | 1d1ce4df5255 |
children | 4a62da62af09 |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy Sat Jun 24 19:58:44 2017 -0400 +++ b/libinterp/parse-tree/oct-parse.in.yy Sun Jun 25 09:50:51 2017 -0400 @@ -501,7 +501,7 @@ identifier : NAME { - symbol_table::symbol_record sr = $1->sym_rec (); + octave::symbol_table::symbol_record sr = $1->sym_rec (); $$ = new octave::tree_identifier (sr, $1->line (), $1->column ()); } ; @@ -1275,7 +1275,7 @@ if (parser.max_fcn_depth < parser.curr_fcn_depth) parser.max_fcn_depth = parser.curr_fcn_depth; - lexer.symtab_context.push (new symbol_table::scope ()); + lexer.symtab_context.push (new octave::symbol_table::scope ()); parser.function_scopes.push (lexer.symtab_context.curr_scope ()); @@ -1305,7 +1305,7 @@ if (lexer.looking_at_function_handle) { - lexer.symtab_context.push (new symbol_table::scope ()); + lexer.symtab_context.push (new octave::symbol_table::scope ()); lexer.looking_at_function_handle--; lexer.looking_at_anon_fcn_args = true; } @@ -1504,7 +1504,7 @@ YYABORT; } - symbol_table::scope *curr_scope + octave::symbol_table::scope *curr_scope = lexer.symtab_context.curr_scope (); curr_scope->cache_name (id); @@ -4794,7 +4794,7 @@ "autoload: third argument can only be 'remove'"); // Remove function from symbol table and autoload map. - symbol_table& symtab = interp.get_symbol_table (); + octave::symbol_table& symtab = interp.get_symbol_table (); symtab.clear_dld_function (argv[1]); autoload_map.erase (argv[1]); } @@ -5250,7 +5250,7 @@ const std::string name (args(0).xstring_value ("builtin: function name (F) must be a string")); - symbol_table& symtab = interp.get_symbol_table (); + octave::symbol_table& symtab = interp.get_symbol_table (); octave_value fcn = symtab.builtin_find (name); @@ -5544,7 +5544,7 @@ if (octave::is_keyword (nm)) error ("assignin: invalid assignment to keyword '%s'", nm.c_str ()); - symbol_table::scope *scope = interp.get_current_scope (); + octave::symbol_table::scope *scope = interp.get_current_scope (); if (scope) scope->assign (nm, args(2));