Any help to lead me in the right direction will be greatly appreciated!
The error is in the 'main' section.
The following are some tests... I can only get a couple of them to work. I know I have it set up wrong. Can someone tell me what I'm doing wrong? Thank you!
int A;
no error found
This is a lot easier lol, but I know this isn't the point of problem... I just don't understand how to evaluate errors in the string based on the tokens... Grrrr.
two things:
first, it would be a lot easier if you used a map of the tokens instead of all that if-then logic
and second, a boolean is either true or false.
default one of them; either its initialized false and you check the things that can set it to true, or its initialize to true and check the things that can make it false.
you don't need both sides of the equation, it just bloats the code even more.
but if you use the map, its either in the map (set to true) or not in the map (default false) which would boil your code down to a couple of lines... 90-150 roughly would just be
bool tok = false;
if token in map
tok = true