grammar modified to allow begins/ends: <statement> -> <program>