If you have programming experience in a UNIX environment, you have probably already come across Lex and YACC, or as Linux users know them, Flex and Bison. For those who didn’t know Flex is the implementation of the Lex program, and Bison is the GNU version of the YACC program. These programs are extremely useful for some tasks, so in today's article we will walk you through installing Lex and YACC on Linux. As an example, we will use the Ubuntu distribution.
Install LEX and YACC in Ubuntu
- Open a terminal. To do this, use the keyboard shortcut (Ctrl + Alt + T).
- To install Lex (Flex), use the command:
To install YACC (Bison), use the command:sudo apt install flex
Or so, for a faster installation of both programs:sudo apt install bison
sudo apt install flex bison
Done, now you can use LEX and YACC for your tasks. Still have questions? Write to us in the comments.
Related posts
How to Install PuTTY on Linux (Ubuntu / Fedora / Arch / Manjaro)
Jan 11, 2021What should I do when Ubuntu freezes?
Mar 17, 2021How to install Yandex Disk in Ubuntu
Mar 05, 2021How to change TTL on Manjaro (Linux)
Mar 03, 2019Manjaro vs Ubuntu: Which is The Best?
Feb 10, 2020