]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove nonterminals that semantic claims are useless
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 Jun 2019 00:34:32 +0000 (02:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 Jun 2019 09:33:40 +0000 (11:33 +0200)
* admin/grammars/js.wy (VariableStatement): Remove useless
nonterminals.

Debug output from wisent:

Useless nonterminals:

   StatementList
   BlockExpand

admin/grammars/js.wy

index 441fd416c128df4d34be363896746c74b4ba144e..e5a7c9be71f7f2b2a7fe2272ea387648ca34c617 100644 (file)
@@ -296,19 +296,11 @@ FormalParameterList: OPEN_PARENTHESIS
                     ()
                   ;
 
-StatementList : Statement
-              | StatementList Statement
-              ;
-
 Block : BRACE_BLOCK
      ;; If you want to parse the body of the function
      ;; ( EXPANDFULL $1 BlockExpand )
       ;
 
-BlockExpand: START_BLOCK StatementList END_BLOCK
-          | START_BLOCK END_BLOCK
-          ;
-
 VariableStatement : VAR VariableDeclarationList SEMICOLON
                    (VARIABLE-TAG $2 nil nil)
                   ;