bugfixes and it now parses the whole syntax spec file successfully