=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Doc/ox.sm1,v retrieving revision 1.47 retrieving revision 1.51 diff -u -p -r1.47 -r1.51 --- OpenXM/src/kan96xx/Doc/ox.sm1 2006/02/01 03:37:44 1.47 +++ OpenXM/src/kan96xx/Doc/ox.sm1 2006/02/02 10:53:08 1.51 @@ -1,4 +1,4 @@ -%%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox.sm1,v 1.46 2006/01/26 08:42:33 takayama Exp $ +%%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox.sm1,v 1.50 2006/02/02 07:07:22 takayama Exp $ /ox.sm1.myname (ox-new.sm1) def @@ -1858,7 +1858,7 @@ oxasir.verbose { ] putUsages /translateErrorForCfep { /arg1 set - [/ee /ans /tt] pushVariables + [/ee /ans /tt /lf /i] pushVariables [ /ee arg1 def { @@ -1870,6 +1870,8 @@ oxasir.verbose { }{ } ifelse ee etag 6 eq not { /ans [ ] def exit } { } ifelse /ans [ ] def + /lf 12 (string) dc def % line feed. + ans [(Begin) nl lf] join /ans set ee (lines) getNode /tt set tt tag 0 eq { @@ -1878,19 +1880,24 @@ oxasir.verbose { tt isArray { tt length 0 gt { ans - [(gotoLine, ) tt 0 get toString nl ] join /ans set + [(gotoLine, ) tt 0 get toString nl lf] join /ans set }{ } ifelse } { } ifelse tt isInteger { - [(gotoLine, ) tt toString nl ] join /ans set + [(gotoLine, ) tt toString nl lf] join /ans set } { } ifelse ee (where) getNode /tt set tt isArray { tt length 0 gt { ans - [(findAndSelect, ) tt 0 get (string) dc nl ] join /ans set + [(findAndSelect, ) tt 0 get (string) dc nl lf] join /ans set }{ } ifelse + 1 1, tt length 1 sub { + /i set + ans + [(findAndShow, ) tt i get (string) dc nl lf] join /ans set + } for } { } ifelse ee (reason_of_error) getNode /tt set @@ -1898,12 +1905,13 @@ oxasir.verbose { ee (reason_of_parse_error) getNode /tt set } { } ifelse tt tag 0 eq not { - ans [(printErrorMessage, ) tt (string) dc nl] join /ans set + ans [(printErrorMessage, ) tt (string) dc nl lf] join /ans set %% translation and encoding is necessary. }{ } ifelse exit } loop + ans [(End) nl lf] join /ans set ans cat /arg1 set ] pop popVariables