[#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: ts <decoux@...>
Date: 2006-04-02 12:02:09 UTC
List: ruby-core #7661
>>>>> "R" == Robin Stocker <robin@nibor.org> writes:

R> Here's a manual for Bison 1 and the notation is also there:
R> http://www.sunsite.ualberta.ca/Documentation/Gnu/bison-1.28/html_mono/bison.html#SEC50
 Well, with a very, very old yacc (Sun)

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

 With the same file

moulon% bison -V    
bison (GNU Bison) 2.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
moulon% 

moulon% bison -y a.y
moulon% 

moulon% more y.tab.c
[...]

   enum yytokentype {
     DIGIT = 258
   };
#endif
/* Tokens.  */
#define DIGIT 258
[...]
moulon%


Guy Decoux


In This Thread