The "tokens" for less-than, indistinguishable, and greater-than, are just any three values that you find convenient to produce and distinguish. If you only had to distinguish two values, you could use #t and #f. For three, I suggest -1, 0, and 1.It seems like you could also have your tokens be lt_xrealcomp, in_xrealcomp, gt_xrealcomp. I'd be afraid of goofing something up and winding up doing some computation that uses the -1,0,or 1 as a number instead of an xrealcomp token and returns a number when it should return an erorr.
|
to: