standard question

J

Justin Hibbits

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!
 
J

Jack Klein

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 You might also
want to check out
--
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top