%{ #include %} %token P V %% oracion : P V {printf ("oracion valida P-V\n");} %% main() { yyparse(); } yyerror(char *s) { fprintf(stderr,"%s",s); }