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: 18 Jul 2003 15:40:47 -0000

Hey, a different message.

>I'm writing a Fortran Scanner in flex

Like everyone's been telling you, it's still a bad idea.

>Is there any way that flex can recognise a keyword 
>which is split into several words such as:
>
>GO TO
>
>as 1 keyword?

Not in any useful way.  Even if you made a special case for GO TO,
you'd still miss these:

     G OTO
     GO T O
     GOT O
     G OTO
     G OT O
     G O T O     
etc.

Regards,
John Levine, comp.compilers moderator, 
address@hidden, http://compilers.iecc.com

-- 
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]