[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 1b855aa 2/5: Remove nonterminals that semantic clai
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 1b855aa 2/5: Remove nonterminals that semantic claims are useless |
Date: |
Tue, 18 Jun 2019 05:51:02 -0400 (EDT) |
branch: master
commit 1b855aa8dd0cf41e515fcec1083196b60e98aafe
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Remove nonterminals that semantic claims are useless
* admin/grammars/js.wy (VariableStatement): Remove useless
nonterminals.
Debug output from wisent:
Useless nonterminals:
StatementList
BlockExpand
---
admin/grammars/js.wy | 8 --------
1 file changed, 8 deletions(-)
diff --git a/admin/grammars/js.wy b/admin/grammars/js.wy
index 441fd41..e5a7c9b 100644
--- a/admin/grammars/js.wy
+++ b/admin/grammars/js.wy
@@ -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)
;