Big refactoring: split SemanticConnections into flow and replaced T by MainData in many parsers.