help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I'm getting messages from Bison that aren't even listed on the internet


From: joe
Subject: I'm getting messages from Bison that aren't even listed on the internet.
Date: Mon, 3 Aug 2009 01:46:21 +0100 (BST)
User-agent: SquirrelMail/1.4.13

Results from Google re
Your search - gnu bison "$$ of `constant' has no declared type" - did not
match any documents.

That message (beginning "$$) is derived when processing the grammar file
into Bison.

The screen message is..
parse.y:98.43-44: $$ of `constant' has no declared type

Line 98  in the grammar looks like...
exp:  MAX '(' exp ',' exp ')' { $$ = (($3 > $5) ? $3 : $5 );}

There are other complaints about line 98, which don't seem clear...
parse.y:98.55-56: integer out of range: `$5'
parse.y:98.66-67: integer out of range: `$5'

The pattern for those 3 complaints is repeated throughout the productions
that follow.

The screen output would look like...
parse.y:98.43-44: $$ of `constant' has no declared type
parse.y:98.55-56: integer out of range: `$5'
parse.y:98.66-67: integer out of range: `$5'
parse.y:99.43-44: $$ of `constant' has no declared type
parse.y:99.54-55: integer out of range: `$5'
parse.y:99.65-66: integer out of range: `$5'
parse.y:100.43-44: $$ of `constant' has no declared type
... and continues in that pattern.

I have attached the parse.y file for if you wish to look at how MAX (line
29) or anything else is declared.
--------------------------
The "integer out of range: '$5'" message, when searched for as "integer
out of range: '", as the 5 might be too specific results in... the search
dropping the colon and $ after it, so the 170 results are very generic,
very few have '$... in them, mostly '%..., and none of them actually
offers any kind of explanation.

If you've any ideas on the  above, I'd be pleased to look at any comment.
I'll be chasing the forum(s) with this as well.

Regards, Joe.

Attachment: parse.y
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]