Question: i need help with creating the parser . y file. I already created the scanner . l file and this is the code that i

i need help with creating the parser .y file. I already created the scanner .l file and this is the code that i have for the .l file. %{
#include "cminusminus_parser.tab.h"// Generated by Bison
%}
%%
"+"{ return PLUS; }
"-"{ return MINUS; }
"*"{ return MULTIPLY; }
"/"{ return DIVIDE; }
"INT" { return INT; }
[a-zA-Z][a-zA-Z0-9]*{ return ID; }
[0-9]+{ return NUMBER; }
"/*"([^*]|[\r
]|(\*+([^*/]|[\r
])))*"*/"{/* Ignore comments */}
"[\t\r
]+"{/* Ignore whitespace */}
.{/* For any unrecognized character */}
%%But
i need help with creating the parser . y file. I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!