lexing and parsing for "if", "for", "foreach", "switch", "msg", and import some tests from TemplateParserTest.java