diff libinterp/parse-tree/oct-parse.in.yy @ 16263:9acb86e6ac90

4/10 commits reworking the lexer
author John W. Eaton <jwe@octave.org>
date Mon, 11 Mar 2013 14:28:11 -0400
parents 0b5ab09dfce4
children 6077d13ddb3b 71ee3afedb69
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy	Mon Mar 11 14:26:29 2013 -0400
+++ b/libinterp/parse-tree/oct-parse.in.yy	Mon Mar 11 14:28:11 2013 -0400
@@ -751,18 +751,14 @@
 // Declaration statemnts
 // =====================
 
-parsing_decl_list
-                : // empty
-                  { curr_lexer->looking_at_decl_list = true; }
-
-declaration     : GLOBAL parsing_decl_list decl1
+declaration     : GLOBAL decl1
                   {
-                    $$ = curr_parser.make_decl_command (GLOBAL, $1, $3);
+                    $$ = curr_parser.make_decl_command (GLOBAL, $1, $2);
                     curr_lexer->looking_at_decl_list = false;
                   }
-                | PERSISTENT parsing_decl_list decl1
+                | PERSISTENT decl1
                   {
-                    $$ = curr_parser.make_decl_command (PERSISTENT, $1, $3);
+                    $$ = curr_parser.make_decl_command (PERSISTENT, $1, $2);
                     curr_lexer->looking_at_decl_list = false;
                   }
                 ;