Date: Mon, 21 Dec 1998 10:26:20 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Twidler444 cc: djgpp AT delorie DOT com Subject: Re: FLEX In-Reply-To: <19981221012012.10649.00002188@ng42.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.