[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
examples: bistromathic: shorten token description
From: |
Akim Demaille |
Subject: |
examples: bistromathic: shorten token description |
Date: |
Fri, 24 Apr 2020 19:03:39 +0200 |
commit 5c9f50b545758627210e7ca5fbdc5a2eeb599a28
Author: Akim Demaille <address@hidden>
Date: Fri Apr 24 18:56:06 2020 +0200
examples: bistromathic: shorten token description
* examples/c/bistromathic/parse.y: "number" is enough.
* doc/bison.texi: Likewise.
diff --git a/NEWS b/NEWS
index f6dc80e0..ade1a70b 100644
--- a/NEWS
+++ b/NEWS
@@ -83,7 +83,7 @@ GNU Bison NEWS
PLUS "+"
MINUS "-"
<double>
- NUM _("double precision number")
+ NUM _("number")
<symrec*>
FUN _("function")
VAR _("variable")
diff --git a/doc/bison.texi b/doc/bison.texi
index 141fcb0c..3875c222 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -7804,7 +7804,7 @@ or @code{detailed}, token aliases can be
internationalized:
%token
'\n' _("end of line")
<double>
- NUM _("double precision number")
+ NUM _("number")
<symrec*>
FUN _("function")
VAR _("variable")
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 <<EOF
*
EOF
run 0 '> *
-> 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 <<EOF
1 + 2 * * 3
EOF
run 0 '> 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 <<EOF
100%
@@ -107,18 +107,16 @@ sed -e 's/\\t/ /g' >input <<EOF
(1+\t\t
EOF
run 0 '> (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 <<EOF
(at\t\t
EOF
run 0 '> (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 <<EOF
diff --git a/examples/c/bistromathic/parse.y b/examples/c/bistromathic/parse.y
index 1342ba60..70c2861b 100644
--- a/examples/c/bistromathic/parse.y
+++ b/examples/c/bistromathic/parse.y
@@ -96,7 +96,7 @@
EQUAL "="
EXIT "exit"
<double>
- NUM _("double precision number")
+ NUM _("number")
<symrec*>
FUN _("function")
VAR _("variable")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- examples: bistromathic: shorten token description,
Akim Demaille <=