[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: example problem
From: |
Akim Demaille |
Subject: |
Re: example problem |
Date: |
21 Sep 2000 17:33:46 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
| I am trying to learn how to use BISON. I have the manual for BISON Version
| 1.25, have installed BISON-1.28, and am running on a SUN workstation. I am
| trying to run the first example, Reverse Polish Notation Calculator, in the
| manual.
|
| When I run a session with rpcalc, I get incorrect output. For example, the
| following happens
|
| 4 9 +
| 1.07394953e-314
|
| I have checked every line of code for and error and believe I have typed the
| code just as it is in the manual.
|
| I would appreciate it if someone could give me an idea of where to look for
my
| error.
|
| Thank you very much.
|
| Mary Heidt
My guess is that it's printf that's wrong. Be sure to prototype
everything. Set up a good yyprint, and use YYDEBUG and yydebug to
check that the scanner and the parser agree on the meaning of yylval.
Be sure to switch on as many warnings as you can from your compiler.
If it still does not work, please, build a tarball somewhere with the
full example, and send it to me <address@hidden>.
>From address@hidden Mon Sep 25 04:59:01 2000
Received: from a-to39-14.tin.it ([212.216.73.109] helo=bos45.logosystem)
by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
id 13dU6G-0002Am-00
for <address@hidden>; Mon, 25 Sep 2000 04:59:01 -0400
Received: by BOS45 with Internet Mail Service (5.5.2448.0)
id <TPBX17JP>; Mon, 25 Sep 2000 11:00:32 +0200
Message-ID: <address@hidden>
From: Strocchi Fabrizio <address@hidden>
To: address@hidden
Cc: Pettiti Clara <address@hidden>, Backup
<address@hidden>
Subject: Using Bison
Date: Mon, 25 Sep 2000 11:00:26 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
charset="iso-8859-1"
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-bison>,
<mailto:address@hidden>
List-Id: Users list for the GNU Bison parser generator <help-bison.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-bison>,
<mailto:address@hidden>
List-Archive: http://mail.gnu.org/pipermail/help-bison/
I am just starting into Bison use. I am using DJGPP compiler and I had no
problem with 1.25 version to obtain Bison.exe. With 1.26 or 1.28 version my
compiler had a problem with PARAMS undefined symbol (allocate.c module).
What I have to do?
Please, can I have an example of Grammar file that use also strings?
Thank you very much
Fabrizio Strocchi