Syntax analyzer that recognizes a language with only two tokens (a left one and a right one). A valid expression must contain the same number of the two tokens. A valid expression as read from the left must not contain more right tokens than left ones.
Run and tested using g++ compiler, version 9.3.0
Running g++ syntax.cpp -o syntax && ./syntax outputs the below:

Then the user can enter a token stream and see the stack content, state and remaining stream in each step.
