delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/13/06:45:14

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Flex
Date: 13 Feb 2003 11:37:15 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 29
Message-ID: <b2g01b$n7t$1@nets3.rz.RWTH-Aachen.DE>
References: <b2fo16$1b6sjq$1 AT ID-166592 DOT news DOT dfncis DOT de> <b2fs3g$iuk$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <b2fvep$18bqdf$1 AT ID-166592 DOT news DOT dfncis DOT de>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1045136235 23805 137.226.32.75 (13 Feb 2003 11:37:15 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 13 Feb 2003 11:37:15 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Mhaxx <mhaxx AT despammed DOT com> wrote:
> HBB> We really will need the exact text of that error message.  And at
> HBB> least a minimal amount of context information: what's your platform?
> HBB> Do you have DJGPP itself installed, or just Flex?

> I've only downloaded http://clio.rice.edu/djgpp/win2k/flx254b.zip, unzipped
> and tried to run the follow statement at MS-DOS prompt: "flex.exe" (then
> I've tried also: "flex abc.l", a file with a simplce Lex example..)
> The result is the message: "It's no possibile to run the specified program"
> (<-- my English traslation of an italian message)

You probably forgot to change to the directory where 'flex.exe' is,
before you tried this.  Alternatively, you could add that directory to
the PATH environment variable.

> I have to do an exercise for one of my courses in my university (Venice,
> Italy). I need to create a scanner (with Flex) for Fortran programs and to
> create a parser (with Bison) to insert output instruction into the code at
> some particular points (usually when I find floating point operation...).

You won't get anything truly usable out of flex and bison alone: these
tools generate C sourcecode.  To get an actual runnable program,
you'll have to compile that code, so you _will_ need the C compiler.
And that will need environment variables set, anyway.  See the
instructions in README.1st.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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