Parses %locals statement.