www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/11/03:21:05

From: fiore AT cs DOT buffalo DOT edu (Joseph N Fiore)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: flex/bison lower/upper case question
Date: 10 May 1997 23:28:28 GMT
Organization: University at Buffalo
Lines: 15
Message-ID: <5l30as$a56@prometheus.acsu.buffalo.edu>
References: <onQwIAK00iWQADCEpw AT andrew DOT cmu DOT edu>
NNTP-Posting-Host: armstrong.cs.buffalo.edu
NNTP-Posting-User: fiore
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gary R Sekinger (sekinger+@andrew.cmu.edu) wrote:
> I'd like to have my grammar be case insensitive but this doesn't seem
> very easy. I've started specifying all the various combinations, which
> isn't very practical:
[snip]

Quoth the man page, flex command line options:

     -i    instructs flex to generate a case-insensitive scanner.
          The  case  of  letters given in the flex input patterns
          will be ignored,  and  tokens  in  the  input  will  be
          matched  regardless of case.

So if you 'flex' using the command line:   flex -i blah.l
as far as the lexer is concerned seed == SEED == Seed == SeEd == ...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019