M4 "No such file or directory".Bison

Bodo Hombah picture Bodo Hombah · May 8, 2013 · Viewed 8.5k times · Source

This is my code in file skener.y

 %{
#include <stdio.h>
%}
%token T_Int
%%

exp:      T_Int           { $$ = $1;         }
| exp exp '+'     { $$ = $1 + $2;    }
| exp exp '-'     { $$ = $1 - $2;    }
| exp exp '*'     { $$ = $1 * $2;    }
| exp exp '/'     { $$ = $1 / $2;    }

;
%%

When I compile it with comand "bison -d skener.y" I get error "m4: No such file or directory.". Of course I am located in working folder when typing command in prompt. I dont know what is it about?

Answer

Tarun Gehlaut picture Tarun Gehlaut · Dec 1, 2013

There seems to be some error in the bison.exe file. I replaced it with the one found inside this zip file. http://marin.jb.free.fr/bison/bison-2.4.1-modified.zip

Source:http://marin.jb.free.fr/bison/