I've tested my parser using the testbench file and it seems to detect the expression : (x + 5) correctly. However, I am not able to use the bin/eval_expr file correctly and I'm not sure I'm making a mistake or whether there's a problem with my parser or something else.
My process :
bin/eval_expr x 5
x+1 - (I use control + d)
<- At this point, my compiler seems to be stuck and I don't understand why. I'm expecting an output of 6.00000
I've tested my parser using the testbench file and it seems to detect the expression : (x + 5) correctly. However, I am not able to use the bin/eval_expr file correctly and I'm not sure I'm making a mistake or whether there's a problem with my parser or something else.
My process : bin/eval_expr x 5 x+1 - (I use control + d) <- At this point, my compiler seems to be stuck and I don't understand why. I'm expecting an output of 6.00000
I am doing something wrong?