From: Andrew Cottrell Newsgroups: comp.os.msdos.djgpp Subject: Re: Stop scanning Date: Sat, 15 Feb 2003 09:56:57 +1100 Organization: ECLiPSE Lines: 11 Message-ID: References: NNTP-Posting-Host: p981-apx1.syd.ihug.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: lust.ihug.co.nz 1045263419 15903 203.173.143.219 (14 Feb 2003 22:56:59 GMT) X-Complaints-To: abuse AT ihug DOT co DOT nz NNTP-Posting-Date: Fri, 14 Feb 2003 22:56:59 +0000 (UTC) X-Newsreader: Forte Agent 1.92/32.572 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >Is it possible to stop scanning and to report an error found? > >I have to stop the scanning and to return an error message (to video) when >the scanner matches a special token "x". In other words, I need to stop the >scanning from inside the action of the rule "x". > >Anther thing: is it possible to insert comments into flexer file, for >example in the definition section or in the rules section? And how? This sounds like a uni assignment. Is it? Andrew