tags:

views:

87

answers:

1

Hello, I am doing project in SENSE, for that i have to install Lex and Yacc. If you can help me how to install in Ubuntu. I very new to this area. So can you help me. Any website to study the basic of Lex and Yacc

A: 

Use the synaptic packet manager in order to install yacc / lex. If you are feeling more confortable doing this on the console just do:

sudo aptitude install gyacc flex

There are some very nice articles on the net on how to get started with those tools. I found the article from CodeProject to be quite good and helpful (http://www.codeproject.com/KB/recipes/introlexyacc.aspx). But you should just try and search for "introduction to lex", there are plenty of good articles showing up.

halfdan
I don't think that the packages are actually called `yacc` and `lex`. Not sure about `lex` but `yacc` is in `byacc`.
Let_Me_Be
Both `yacc` and `lex` don't exist. Lex is in `flex` and Yacc in `bison`. So it should be `sudo apt-get install flex bison`
Bart Kiers
lex => flex, yacc => gyacc
halfdan
@halfdan, yes, you're right. `bison` is a compiler-generator compatible with `Yacc`. But I couldn't find `gyacc` in the repositories...
Bart Kiers