Linux Command
Linux Command
04
Ubuntu does not come installed with a lex and yacc compiler to do
so install it first by
1. opening the terminal by right click on everywhere and go to open
terminal. Then…
2. type sudo apt-get update….next
2. type sudo apt-get install flex
3. enter your password
lex program
%{
#include<stdio.h>
#include "y.tab.h"
%}
%%
%%
int yywrap(){
return 0;
int main(){
yyparse();
return 0;
}
yacc program
%{
#include<stdio.h>
%}
%%
%%
##Do your own exercise to improve your compiler skill and for your
project work.#