help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flex recognition of "split" keywords


From: John R. Levine
Subject: Re: Flex recognition of "split" keywords
Date: Sat, 19 Jul 2003 18:28:08 +0200

> Under C++, one might write a stream that zips out the whitespace
> before the characters are handed over to the Flex scanner. -- But
> Fortran is perhaps more complex than that.

It is indeed, e.g.:

      foo bar = 'zip zap';

The six spaces before foo and the space between zip and zap are
significant, the rest aren't.  It gets worse.

>Perhaps it is better to write a scanner for a different language. :-)

Hey!  Why didn't the rest of us think of that?

--
John R. Levine, IECC, POB 727, Trumansburg NY 14886 +1 607 330 5711
address@hidden, Village Trustee and Sewer Commissioner, http://iecc.com/johnl,
Member, Provisional board, Coalition Against Unsolicited Commercial E-mail






reply via email to

[Prev in Thread] Current Thread [Next in Thread]