[dsc] Throw compiler exceptions for syntax errors