Using flex and bison, lets say I want to parse my input file: 3 + 1; 2
Fantastic news! We've Found the answer you've been seeking!
Question:
Using flex and bison, lets say I want to parse my input file:
3 + 1;
2 + 1; ?
The goal is to parse through each line until the ‘?’ symbol is reached. Leaving the output file to evaluate the expressions.
However, with my code I have it programmed to stop at the semicolon, so my output is only the first evaluated expression.
Is there a simple way I can make a token for ‘?’ that will tell my program to terminate?
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: