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
2010-10-06 10:12:36
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
2010-10-06 10:13:39
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
2010-10-06 10:14:46
lex => flex, yacc => gyacc
halfdan
2010-10-06 10:17:38
@halfdan, yes, you're right. `bison` is a compiler-generator compatible with `Yacc`. But I couldn't find `gyacc` in the repositories...
Bart Kiers
2010-10-06 10:19:17