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!mcnc!decvax!ittvax!dcdwest!sdcsvax!bmcg!cepu!trwrba!trwrb!sdcrdcf!hplabs!tektronix!ogcvax!sequent!merlyn From: merlyn@sequent.UUCP Newsgroups: net.unix-wizards Subject: Re: a lex question Message-ID: <479@sequent.UUCP> Date: Thu, 3-May-84 14:01:06 EDT Article-I.D.: sequent.479 Posted: Thu May 3 14:01:06 1984 Date-Received: Tue, 8-May-84 07:14:36 EDT References: <236@uwvax.ARPA> Organization: Sequent Computer Systems, Portland Lines: 19 > From: anderson@uwvax.UUCP > Message-ID: <236@uwvax.ARPA> > Date: Wed, 2-May-84 21:48:40 PDT > > The following "lex" expression is supposed to accept /* ... */ style > comments. It doesn't quite work... it recognizes the comment, but then > the closing / seems to be processed again (resulting in a syntax error). > > "/*"([^*]|("*"/[^/]))*"*/" X Unless I'm missing something as well, it looks like the slash above the "X" is extra. Is this a typo? Or is it present in the original stuff? Randal L. ("(null)") 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