diff libinterp/parse-tree/parse.h @ 21369:105224df2330

also disallow assignment to keywords in assignin (bug #46459) * lex.ll (is_keyword): Don't treat "enumeration", "events", "methods", or "properties" as keywords. * oct-parse.in.yy, parse.h: New tests. (Fassignin): Check for assignments to keywords. (octave_base_parser::valid_id_for_assignment): Delete. (octave_base_parser::make_assign_op): Use is_keyword instead of valid_id_for_assignment.
author John W. Eaton <jwe@octave.org>
date Fri, 26 Feb 2016 20:35:45 -0500
parents 9ca194f7a858
children 74a676d5ce09
line wrap: on
line diff
--- a/libinterp/parse-tree/parse.h	Sat Feb 27 15:27:52 2016 +1100
+++ b/libinterp/parse-tree/parse.h	Fri Feb 26 20:35:45 2016 -0500
@@ -393,8 +393,6 @@
   // Generic error messages.
   void bison_error (const std::string& s, int l = -1, int c = -1);
 
-  bool valid_id_for_assignment (const std::string& s);
-
   // Contains error message if Bison-generated parser returns non-zero
   // status.
   std::string parse_error_msg;