Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site sequent.UUCP Path: utzoo!watmath!clyde!akgua!sdcsvax!sdcrdcf!hplabs!tektronix!ogcvax!sequent!merlyn From: merlyn@sequent.UUCP Newsgroups: net.unix-wizards Subject: Re: Comment recognition in Lex, again Message-ID: <486@sequent.UUCP> Date: Sun, 6-May-84 19:41:41 EDT Article-I.D.: sequent.486 Posted: Sun May 6 19:41:41 1984 Date-Received: Sat, 12-May-84 07:13:26 EDT References: <245@uwvax.ARPA> <6879@umcp-cs.UUCP> Organization: Sequent Computer Systems, Portland Lines: 18 > From: chris@umcp-cs.UUCP > Message-ID: <6879@umcp-cs.UUCP> > Date: Thu, 3-May-84 20:59:25 PDT > > A Lex expression that matches C comments: > > comment "/*"(\*[^/]|[^*]*)*"*/" > > (The * after the first ] shouldn't be necessary, I think, but you > did specify that the expression come from working code...) Funny, your "working code" doesn't match /***/ .. try it! Randal L. ("no comment") Schwartz, esq. (merlyn@sequent.UUCP) (Official legendary sorcerer of the 1984 Summer Olympics) Sequent Computer Systems, Inc. (503)626-5700 (sequent = 1/quosine) UUCP: ...!XXX!sequent!merlyn where XXX is one of: decwrl nsc ogcvax pur-ee rocks34 shell teneron unisoft vax135 verdix