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:
@@ -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)
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user