standard question

Discussion in 'C Programming' started by Justin Hibbits, Jul 6, 2003.

  1. Hi,

    I'm working on a C compiler, and I've got a quick question about the way types
    are defined.

    The ANSI standard shows types as being defined right-recursively, instead of
    left-recursive (as shown in yacc grammar). why was that chosen, instead of the
    left-recursive grammar?

    Thanks

    -Justin Hibbits

    --
    Registered Linux user 260206

    "One World, One Web, One Program"
    - Microsoft Promo Ad
    "Ein Volk, Ein Reich, Ein Fuhrer"
    - Adolf Hitler

    I'm not paranoid. They really *are* out to get me!
    Justin Hibbits, Jul 6, 2003
    #1
    1. Advertising

  2. Justin Hibbits

    Jack Klein Guest

    On 6 Jul 2003 03:15:11 GMT, Justin Hibbits <> wrote
    in comp.lang.c:

    > Hi,
    >
    > I'm working on a C compiler, and I've got a quick question about the way types
    > are defined.
    >
    > The ANSI standard shows types as being defined right-recursively, instead of
    > left-recursive (as shown in yacc grammar). why was that chosen, instead of the
    > left-recursive grammar?
    >
    > Thanks
    >
    > -Justin Hibbits


    This group discusses the C language as it is, not why it was defined
    the way it is. The group for that is news:comp.std.c. You might also
    want to check out news:comp.compilers.

    --
    Jack Klein
    Home: http://JK-Technology.Com
    FAQs for
    comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
    comp.lang.c++ http://www.parashift.com/c -faq-lite/
    alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c /faq
    Jack Klein, Jul 6, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. steve.leach

    How standard is the standard library?

    steve.leach, Apr 18, 2005, in forum: Python
    Replies:
    1
    Views:
    365
    Christos TZOTZIOY Georgiou
    Apr 18, 2005
  2. funkyj
    Replies:
    5
    Views:
    1,097
    funkyj
    Jan 20, 2006
  3. Replies:
    5
    Views:
    847
  4. Sriram Srinivasan
    Replies:
    13
    Views:
    537
    Benjamin Kaplan
    Nov 12, 2009
  5. Venks
    Replies:
    5
    Views:
    218
    Ken Bloom
    Dec 6, 2007
Loading...

Share This Page