MODULE; IMPORT ObLib, ObValue, SynLocation; PROCEDURE ObText M3ToObliq (val : TEXT) : T = BEGIN RETURN NEW (T, text := val); END M3ToObliq; PROCEDUREObliqToM3 (val : T) : TEXT = BEGIN RETURN val.text; END ObliqToM3; PROCEDUREGetArg (args : ObValue.ArgArray; idx : INTEGER; package : ObLib.T; opCode : ObLib.OpCode; loc : SynLocation.T) : TEXT RAISES {ObValue.Error} = BEGIN TYPECASE args[idx] OF T (node) => RETURN node.text; ELSE ObValue.BadArgType (idx, "text", package.name, opCode.name, loc); RETURN ""; (* ... only to suppress compiler warning *) END; END GetArg; BEGIN END ObText.