From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from netcomsv.netcom.com ([192.100.81.101]) by hawkwind.utcs.toronto.edu with SMTP id <2723>; Sun, 6 Dec 1992 03:22:40 -0500 Received: from netapp.UUCP by netcomsv.netcom.com with UUCP (4.1/SMI-4.1) id AA26087; Sun, 6 Dec 92 00:22:04 PST Received: by netapp.netapp.com (4.1/SMI-4.1) id AA19252; Sun, 6 Dec 92 00:21:32 PST Date: Sun, 6 Dec 1992 03:21:32 -0500 From: byron@netapp.com (Byron Rakitzis) Message-Id: <9212060821.AA19252@netapp.netapp.com> To: egsirer@phoenix.Princeton.EDU, rc@hawkwind.utcs.toronto.edu Subject: Re: more wishes for chrismas >However, "~" gets promoted around >*in the lexer*, which is not a good thing. Maybe this is true in Duff's rc (I don't see how or why, actually) but it certainly isn't true about my lexer. The only serious lexical hacks are free carets and the treatment of '('. I guess you can also include the scanning of variable names (which are presumed to be in the character class [a-zA-Z0-9_*]). > 1. Promote '=' as if it was a keyword. Would anyone like to submit a working yacc grammar for this? After playing with the grammar for a little bit, I didn't find a way to do this for '='. It's my suspicion that a working grammar that promoted '=' would be very ugly, but I'd love to be disproved.