added colourisation for inspecting the parser graph