![]() |
standard question
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! |
Re: standard question
On 6 Jul 2003 03:15:11 GMT, Justin Hibbits <jrh29@po.cwru.edu> 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 |
| All times are GMT. The time now is 01:46 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.