I have tokenized with a space delimiter into a vector and then I have made it into stack. I want to use the stack to validate whether the expression or assignment is correct.
assignment shall have the form: id = exp; expression shall have the form: id op id {op id} -- any length as long as pairs of op and id are added A parenthesis pair may be used to group any id op id combination. Therefore: id op (id op id) op id AND id op id op (id op id) -- valid expressions