y el prueba.y que es el Yacc.
Con lex no me da ningun problema pero al usar el PCYACC me da errores
les adjunto el codigo de YACC
------
%{
#include "dstruct.h"
#include<stdio.h>
#include <iostream.h>
#include <string.h>
#ifndef debug
#define debug 0
#endif
extern int yylineno;
extern char* yytext[];
extern FILE* outFile_p;
%}
%token PRHACE
%token ID
%token OpAsig
%token Real
%token OpSum
%token OpMul
%token entero
%token PRCUANDO
%token OpComp
%token AbreParen
%token CierraParen
%start Sent
%% Sent: PRHACE Expre PRCUNADO (Cond);
Expre:ID opAsig Expre2
|ID op numero;
Expre2: Numero op Expre;
Numero: entero
|Real;
op: OpSum
|OpMul;
Cond:ID opComp Expre;
%%
int yyerror(char *s)
{ printf("%s\n",s); }
int main(void) {
yyparse(); }
----
y este es el error que manda cuando lo ejecuto por lineas de codigo...

Lo que esta con negrita es donde segun esta el error

Espero me puedan ayudar al respecto!!