Path: utzoo!attcan!uunet!jarthur!usc!cs.utexas.edu!helios!archone.tamu.edu From: byron@archone.tamu.edu (Byron Rakitzis) Newsgroups: comp.lang.c Subject: obscure ANSI question Keywords: ANSI, K&R 2 grammar, enumeration-constants, obscure Message-ID: <12799@helios.TAMU.EDU> Date: 28 Feb 91 05:40:38 GMT Sender: usenet@helios.TAMU.EDU Organization: College of Architecture, Texas A&M University. Lines: 13 I'm starting work on a C compiler implementing mostly-ANSI C, and as a start I have typed in the grammar from the back of K&R 2. However, I still have not seen (or found) the justification for making "enumeration-constant" a terminal symbol in the grammar; what's wrong with scanning in enumeration constants as normal identifiers? Thanks, Byron. (I have not yet blown the $50+ for the ANSI standard, but it's going to happen soon. Sigh, you think the ANSI standard was deliberately convoluted so that people would have to buy this enormous document.)