By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,382 Members | 1,688 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,382 IT Pros & Developers. It's quick & easy.

standard question

P: n/a
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!
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 6 Jul 2003 03:15:11 GMT, Justin Hibbits <jr***@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
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.