www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/21/03:27:59

Date: Mon, 21 Dec 1998 10:26:20 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Twidler444 <twidler444 AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: FLEX
In-Reply-To: <19981221012012.10649.00002188@ng42.aol.com>
Message-ID: <Pine.SUN.3.91.981221101936.5914A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

How did you run Flex?  What was the exact command line?

Also, was the original code indented 5 places to the right, as you posted
it?  If so, delete the indentation and try again.  The documentation
describes exactly which parts of the source need to be indented amd which
don't (playing the cut-and-paste games with the examples doesn't free you
from the need to read the docs ;-). 

>      char setroom=50,
>           chkroom=51,
>           setdest=52,
>           chkvar=53,
>           setvar=54;

This declaration, and any code block in the ACTION part *do* need to be
indented.  But everything else should be flushed all the way to the left
margin.   I think if you press DEL 5 times at the beginning of every 
line, and then indent the above snippet, everything will begin working.

- Raw text -


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