Remove unused empty production for `litsq_zq` in texvccheck

It is impossible to take the empty alternative for this production,
since any input which matches `litsq_aq` would instead match `lit_aq`
if the empty alternative is used.  In addition, there is no action
clause for the empty alternative, so it wouldn't typecheck if the
empty alternative was possible.

This has no effect on the generated parser, but clarifies the grammar
(and makes ports easier!).

Change-Id: I32c85d2c74ab047b4b52401248d5dc7fc3201705
This commit is contained in:
C. Scott Ananian 2014-07-23 11:24:12 -04:00 committed by Physikerwelt
parent b7069ade90
commit a25078ff9d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ litsq_uq:
litsq_dq:
litsq_zq SUB lit { $1,$3 }
litsq_zq:
| SQ_CLOSE { TEX_LITERAL sq_close_ri }
SQ_CLOSE { TEX_LITERAL sq_close_ri }
expr_nosqc:
/* */ { [] }
| lit_aq expr_nosqc { $1 :: $2 }