slight changes for SDL Parser to include user-defined functions in type checking