This is a LR0 parser written in python