Added: ll1 grammar checking and correct printing