Parser generator with railroad-track diagram editor