Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site sunybcs.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!harpo!ulysses!mhuxl!houxm!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!rochester!rocksvax!sunybcs!loverso From: loverso@sunybcs.UUCP Newsgroups: net.unix-wizards Subject: Re: Comment recognition in Lex, again Message-ID: <1595@sunybcs.UUCP> Date: Sat, 12-May-84 23:18:41 EDT Article-I.D.: sunybcs.1595 Posted: Sat May 12 23:18:41 1984 Date-Received: Mon, 14-May-84 01:19:25 EDT References: <530@sri-arpa.UUCP> Organization: SUNY/Buffalo Computer Science Lines: 15 Might I just add one tidbit on comment recognition: Having just finished a compilers course, where we talked somewhat about lex/yacc, I, too, came across the bug in lex where the trailing "/" would not be matched. Also, as far as I can remember, not one article had a true comment recognizer, as they would all produce incorrect output on: printf(" just a /* test */ "); (Unless you're all assuming a rule already handling strings...) -- John Robert LoVerso @ SUNY Buffalo UUCP allegra!{watmath|rocksvax}!sunybcs!loverso (watmath preferred) CSnet loverso.buffalo-cs@csnet-relay -- Repeal the Income Tax / Support the Liberty Amendment!