jeudi 15 octobre 2020

Yacc if else statement

expr SPACE SIN LEFTBRACKET expr RIGHTBRACKET { if ($==D) $$=sin($5); else $$= sin($5*3.14/180):}

Where D =1 SPACE='' "

Iam unable to run if condition it always prints else one

Aucun commentaire:

Enregistrer un commentaire