[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

Re: [PATCH] parse.y: literal strings for tokens

From: Robin Stocker <robin@...>
Date: 2006-04-02 16:31:27 UTC
List: ruby-core #7663
ts wrote:
>  Well, with a very, very old yacc (Sun)
Ah, parse.y has to be compatible with Yacc implementations other than 
Bison, then I misunderstood Matz' question - I'm sorry.

> nasun% cat a.y
> %token  DIGIT  "digit"
> %% 
> number    :    DIGIT
> %%
> nasun%
>  
> nasun% yacc -V a.y
> yacc: Software Generation Utilities (SGU) Solaris-ELF (4.0)
> nasun% 
> 
> nasun% more y.tab.c
> [...]
> yytoktype yytoks[] =
> {
>         "DIGIT",        257,
>         "digit",        258,
>         "-unknown-",    -1      /* ends search */
> };
> 
> [...]
> nasun%
> 
>  If i'm right this mean that it see 2 tokens
I agree, it doesn't seem to work.

Could you try this Yacc version on the non-patched parse.y and see if it 
works there?

So, if it has to be compatible with old Yacc versions, would it be 
acceptable to surround the token descriptions with #ifndef OLD_YACC ? 
(Hm, I see OLD_YACC used in parse.y but I can't find its definition, is 
it defined automatically by autoconf or something like that?)


   Robin Stocker

In This Thread