executing lex programs

Asked by sindhu.sinni@gmail.com

how to execute lex programs in ubuntu?
the error i get is cannot find lex

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ergosys (ergosys) said :
#1

Do you mean the tool for lexical analysis? If so, the free equivalent is "flex". For yacc, there is "bison".

Revision history for this message
Simos Xenitellis  (simosx) said :
#2

The Ubuntu version of "lex" is called "flex".
You need to install the package first.
Once you install, use the program "flex" wherever you are expected to use "lex".

To install "flex", click on System/Administration/Synaptic Package Manager,
then do a search for the package "flex". Select the package to install it, then click Apply to commit the changes.

Revision history for this message
sindhu.sinni@gmail.com (sindhu-sinni-deactivatedaccount) said :
#3

thanks a lot :)i've installed flex now:)

On 10/2/07, Simos Xenitellis <email address hidden> wrote:
> Your question #14382 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/14382
>
> Status: Needs information => Answered
>
> Simos Xenitellis proposed the following answer:
> The Ubuntu version of "lex" is called "flex".
> You need to install the package first.
> Once you install, use the program "flex" wherever you are expected to use "lex".
>
> To install "flex", click on System/Administration/Synaptic Package Manager,
> then do a search for the package "flex". Select the package to install it, then click Apply to commit the changes.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/14382/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/14382
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Simos Xenitellis  (simosx) said :
#4

That is great. You can mark then this question as "Solved".

Visit the URL
https://answers.launchpad.net/ubuntu/+question/14382
to do so.

Can you help with this problem?

Provide an answer of your own, or ask sindhu.sinni@gmail.com for more information if necessary.

To post a message you must log in.