| { Check type of parameters } if (Arg1^._Type <> T_ARG_INTEGER) AND (Arg1^._Type <> T_ARG_FLOAT) then begin { Raise an exception because first argument is not a float or integer, the string composed is 'type_error(number, <Arg1-Lexeme>).' Allocate the memory for the exception string. } {
Create a string with all the arguments in it } { Allocate the necessary memory } { Create a valid Prolog expression } { Return the result code that indicates to Trinc-Prolog throw an
exception } |