Read syntax from file