generate syntax graph