Version preliminar del diagram parsing