Remove nonterminals that semantic claims are useless

* admin/grammars/js.wy (VariableStatement): Remove useless
nonterminals.

Debug output from wisent:

Useless nonterminals:

   StatementList
   BlockExpand
This commit is contained in:
Lars Ingebrigtsen 2019-06-18 02:34:32 +02:00
parent b441e8cd7c
commit 1b855aa8dd

View 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)
;