home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!udel!gvls1!faatcrl!iecc!compilers-sender
- From: masticol@cadenza.rutgers.edu (Steve Masticola)
- Newsgroups: comp.compilers
- Subject: Possible lex bug?
- Keywords: lex, errors, comment
- Message-ID: <92-09-025@comp.compilers>
- Date: 2 Sep 92 19:49:29 GMT
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: masticol@cadenza.rutgers.edu (Steve Masticola)
- Organization: Rutgers Univ., New Brunswick, N.J.
- Lines: 29
- Approved: compilers@iecc.cambridge.ma.us
-
- Has anyone else come across the following possible bug in lex? I'd
- like to ignore certain characters, including vertical tab (\v,
- ^K, \013, etc.) When I included the line
-
- [ \v\f\r\t] ;
-
- in the source file, vertical tabs fell through. However,
-
- [ ^K\f\r\t] ;
-
- or
-
- [ \013\f\r\t] ;
-
- works. I'm not thrilled about this, though, because it means
- hard-coding a control character or ASCII code.
-
- I'm running Sun's version of lex on a Sparc-2, in case it makes a
- difference, but another site has reported the same problem. I don't
- know what equipment they have there.
-
- Thanks for any help!
-
- - Steve (masticol@cs.rutgers.edu).
- [AT&T lex has a lot of bugs, I can't say I'm surprised to hear about
- another one. Flex handles it correctly. -John]
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-