Create slr.cpp

A slr parser for a given grammer.