Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site ism780c.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!psuvm.bitnet!psuvax1!burdvax!sdcrdcf!ism780c!tim From: tim@ism780c.UUCP (Tim Smith) Newsgroups: net.micro.amiga Subject: Re: more on Lattice working environment Message-ID: <227@ism780c.UUCP> Date: Wed, 8-Jan-86 15:09:20 EST Article-I.D.: ism780c.227 Posted: Wed Jan 8 15:09:20 1986 Date-Received: Sat, 11-Jan-86 07:08:22 EST References: <157@yale.ARPA> <148600030@uiucuxc> Reply-To: tim@ism780c.UUCP (Tim Smith) Organization: Interactive Systems Corp., Santa Monica, CA Lines: 20 In article <148600030@uiucuxc> hamilton@uiucuxc.CSO.UIUC.EDU writes: > >>It's an interesting exercise: removing comments from code is actually >>somewhat nontrivial. > >i don't want to steal your thunder or anything, but i thought this might >be amusing with respect to your 'nontrivial' comment. of course, it assumes >you've got lex handy: > > [ attempt to strip comments with lex ] You don't have to worry about stealing his thunder. Try your lex thing on this line: printf( "A comment starts with /* and ends with */\n" ); -- Tim Smith sdcrdcf!ism780c!tim || ima!ism780!tim || ihnp4!cithep!tim