Fix parser to parse multiple lines of class definitions