A simple SLR parser, which recognizes/check SLR grammar and then checks if the input string is a valid expression or not.