Hi All,
I am facing problem in defining the following grammar for Bison.
X -> letter { letter | digit }.
here letter and digit are terminals and X is the non terminal symbol.
I am not able to put this rule in the bison grammar form hence need
some advice on this.
in particular I am not able to
Atul wrote:
> X -> letter { letter | digit }.
> here letter and digit are terminals and X is the non terminal symbol.
> how do I put the OR part of the rule inconsideration of the
> fact that that scentence has to start with the "letter" and
> later have any number of of digit?
Use a nontermina
On Sun, 20 Mar 2005, DYP wrote:
> In file included from misery.ll:30:
> gram.yy:26: error: ISO C++ forbids declaration of `astNode' with no type
> gram.yy:26: error: expected `;' before '*' token
> gram.yy:27: error: ISO C++ forbids declaration of `string' with no type
> gram.yy:27: error: expecte
On Mon, 21 Mar 2005, Atul Kulkarni wrote:
> how do I put the OR part of the rule inconsideration of the fact that
> that scentence has to start with the "letter" and later have any
> number of of digit?
x: letter extension
extension: /* Empty */
extension: extension letter
extension: extensio
In addition, note that most wold put this stuff in the lexer
(generated say by Flex).
At 14:55 +0530 2005/03/21, Atul Kulkarni wrote:
Hi All,
I am facing problem in defining the following grammar for Bison.
X -> letter { letter | digit }.
here letter and digit are terminals and X is the non term
At 11:55 +0100 2005/03/21, Laurence Finston wrote:
On Sun, 20 Mar 2005, DYP wrote:
In file included from misery.ll:30:
gram.yy:26: error: ISO C++ forbids declaration of `astNode' with no type
gram.yy:26: error: expected `;' before '*' token
gram.yy:27: error: ISO C++ forbids declaration of `str
It looks as though the C++ compiler does not see the declaration of
the types astNode, string (is it std::string?), nodeList, before it
sees the union that the parser implements. So, you have to make sure
that info is included somewhere, perhaps in the %{ ... %} segment
before the %union in the
Don't forget to cc Help-Bison, so others know that your problem has
been solved.
At 13:26 -0500 2005/03/21, Dmitry Podkuiko wrote:
Thanks for your response Hans. Indeed, it had do with #include's being in
the right order. The y.tab.h file has to be the last included and I had it
first in the list
Issue solved. It was the order in while y.tab.h was included in the flex
file.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans Aberg
Sent: Monday, March 21, 2005 1:32 PM
To: Dmitry Podkuiko
Cc: help-bison@gnu.org
Subject: RE: %union errors that should
>>
Dear eBay member,
We at eBay are sorry to inform you that we are
having problems with
the billing information of your account. We would
appreciate it if you
would visit our eBay Billing Ce
10 matches
Mail list logo