From 5c9f50b545758627210e7ca5fbdc5a2eeb599a28 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 24 Apr 2020 18:56:06 +0200 Subject: examples: bistromathic: shorten token description * examples/c/bistromathic/parse.y: "number" is enough. * doc/bison.texi: Likewise. --- examples/c/bistromathic/bistromathic.test | 12 +++++------- examples/c/bistromathic/parse.y | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'examples') diff --git a/examples/c/bistromathic/bistromathic.test b/examples/c/bistromathic/bistromathic.test index 5d9966f3..5e8b044b 100755 --- a/examples/c/bistromathic/bistromathic.test +++ b/examples/c/bistromathic/bistromathic.test @@ -65,13 +65,13 @@ cat >input < * -> err: 1.1: syntax error: expected end of file or - or ( or exit or double precision number or function or variable before *' +> err: 1.1: syntax error: expected end of file or - or ( or exit or number or function or variable before *' cat >input < 1 + 2 * * 3 -> err: 1.9: syntax error: expected - or ( or double precision number or function or variable before *' +> err: 1.9: syntax error: expected - or ( or number or function or variable before *' cat >input <input < (1+ -( cos ln -- double precision number sin -atan exp sqrt +( - atan cos exp ln number sin sqrt > (1+ -> err: 1.4: syntax error: expected - or ( or double precision number or function or variable before end of file' +> err: 1.4: syntax error: expected - or ( or number or function or variable before end of file' # Check the completion of a word. sed -e 's/\\t/ /g' >input < (atan ( '' -> err: 1.9: syntax error: expected - or ( or double precision number or function or variable before end of file' +> err: 1.9: syntax error: expected - or ( or number or function or variable before end of file' # Check the completion at the very beginning. sed -e 's/\\t/ /g' >input < - NUM _("double precision number") + NUM _("number") FUN _("function") VAR _("variable") -- cgit v1.2.1