parsing - M4 "No such file or directory".Bison -
this 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 compile comand "bison -d skener.y" error "m4: no such file or directory.". of course located in working folder when typing command in prompt. dont know about?
it means haven't installed bison -- have executable, missing support files.
go , reinstall bison.
Comments
Post a Comment