summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-03-09 07:24:33 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-03-09 07:24:33 +0100
commit0c3dd3a669aa563e0080ebde15862c880a2d6b91 (patch)
tree3bc25b86fc20c6020469bec4cfee67b450b875f7 /examples
parent951da960e6f890166d5f0cfd0614a54351b35086 (diff)
downloadbison-0c3dd3a669aa563e0080ebde15862c880a2d6b91.tar.gz
examples: bistromathic: simplify
* examples/c/bistromathic/parse.y (expected_tokens): Remove useless "break".
Diffstat (limited to 'examples')
-rw-r--r--examples/c/bistromathic/parse.y2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/c/bistromathic/parse.y b/examples/c/bistromathic/parse.y
index 02bd93f1..b91fd094 100644
--- a/examples/c/bistromathic/parse.y
+++ b/examples/c/bistromathic/parse.y
@@ -339,8 +339,6 @@ expected_tokens (const char *input,
yypstate *ps = yypstate_new ();
int status = 0;
do {
- if (!*input)
- break;
YYSTYPE lval;
int token = yylex (&input, &lval, &lloc);
if (!token)