diff options
| author | Lars Ingebrigtsen | 2019-06-18 02:34:32 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-18 11:33:40 +0200 |
| commit | 1b855aa8dd0cf41e515fcec1083196b60e98aafe (patch) | |
| tree | fea4242a254df078c21698b44dd411f3a1fe6b2c /admin | |
| parent | b441e8cd7c0341077a084ac04ade44fcda3e2fff (diff) | |
| download | emacs-1b855aa8dd0cf41e515fcec1083196b60e98aafe.tar.gz emacs-1b855aa8dd0cf41e515fcec1083196b60e98aafe.zip | |
Remove nonterminals that semantic claims are useless
* admin/grammars/js.wy (VariableStatement): Remove useless
nonterminals.
Debug output from wisent:
Useless nonterminals:
StatementList
BlockExpand
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/grammars/js.wy | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/admin/grammars/js.wy b/admin/grammars/js.wy index 441fd416c12..e5a7c9be71f 100644 --- a/admin/grammars/js.wy +++ b/admin/grammars/js.wy | |||
| @@ -296,19 +296,11 @@ FormalParameterList: OPEN_PARENTHESIS | |||
| 296 | () | 296 | () |
| 297 | ; | 297 | ; |
| 298 | 298 | ||
| 299 | StatementList : Statement | ||
| 300 | | StatementList Statement | ||
| 301 | ; | ||
| 302 | |||
| 303 | Block : BRACE_BLOCK | 299 | Block : BRACE_BLOCK |
| 304 | ;; If you want to parse the body of the function | 300 | ;; If you want to parse the body of the function |
| 305 | ;; ( EXPANDFULL $1 BlockExpand ) | 301 | ;; ( EXPANDFULL $1 BlockExpand ) |
| 306 | ; | 302 | ; |
| 307 | 303 | ||
| 308 | BlockExpand: START_BLOCK StatementList END_BLOCK | ||
| 309 | | START_BLOCK END_BLOCK | ||
| 310 | ; | ||
| 311 | |||
| 312 | VariableStatement : VAR VariableDeclarationList SEMICOLON | 304 | VariableStatement : VAR VariableDeclarationList SEMICOLON |
| 313 | (VARIABLE-TAG $2 nil nil) | 305 | (VARIABLE-TAG $2 nil nil) |
| 314 | ; | 306 | ; |