fixing static errors in SDF2Grammar
fixed all static errors that can be fixed in SDF2Grammar. Some problems remain