version 1.49, 2006/02/02 05:15:45 |
version 1.51, 2006/02/02 10:53:08 |
|
|
%%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox.sm1,v 1.48 2006/02/02 04:16:49 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 |
/ox.sm1.myname (ox-new.sm1) def |
|
|
Line 1858 oxasir.verbose { |
|
Line 1858 oxasir.verbose { |
|
] putUsages |
] putUsages |
/translateErrorForCfep { |
/translateErrorForCfep { |
/arg1 set |
/arg1 set |
[/ee /ans /tt /lf] pushVariables |
[/ee /ans /tt /lf /i] pushVariables |
[ |
[ |
/ee arg1 def |
/ee arg1 def |
{ |
{ |
Line 1870 oxasir.verbose { |
|
Line 1870 oxasir.verbose { |
|
}{ } ifelse |
}{ } ifelse |
ee etag 6 eq not { /ans [ ] def exit } { } ifelse |
ee etag 6 eq not { /ans [ ] def exit } { } ifelse |
/ans [ ] def |
/ans [ ] def |
/lf 12 (string) dc def % line feed. it is not necessary. |
/lf 12 (string) dc def % line feed. |
|
ans [(Begin) nl lf] join /ans set |
|
|
ee (lines) getNode /tt set |
ee (lines) getNode /tt set |
tt tag 0 eq { |
tt tag 0 eq { |
Line 1879 oxasir.verbose { |
|
Line 1880 oxasir.verbose { |
|
tt isArray { |
tt isArray { |
tt length 0 gt { |
tt length 0 gt { |
ans |
ans |
[(gotoLine, ) tt 0 get toString nl] join /ans set |
[(gotoLine, ) tt 0 get toString nl lf] join /ans set |
}{ } ifelse |
}{ } ifelse |
} { } ifelse |
} { } ifelse |
tt isInteger { |
tt isInteger { |
[(gotoLine, ) tt toString nl] join /ans set |
[(gotoLine, ) tt toString nl lf] join /ans set |
} { } ifelse |
} { } ifelse |
|
|
ee (where) getNode /tt set |
ee (where) getNode /tt set |
tt isArray { |
tt isArray { |
tt length 0 gt { |
tt length 0 gt { |
ans |
ans |
[(findAndSelect, ) tt 0 get (string) dc nl] join /ans set |
[(findAndSelect, ) tt 0 get (string) dc nl lf] join /ans set |
}{ } ifelse |
}{ } ifelse |
|
1 1, tt length 1 sub { |
|
/i set |
|
ans |
|
[(findAndShow, ) tt i get (string) dc nl lf] join /ans set |
|
} for |
} { } ifelse |
} { } ifelse |
|
|
ee (reason_of_error) getNode /tt set |
ee (reason_of_error) getNode /tt set |
Line 1899 oxasir.verbose { |
|
Line 1905 oxasir.verbose { |
|
ee (reason_of_parse_error) getNode /tt set |
ee (reason_of_parse_error) getNode /tt set |
} { } ifelse |
} { } ifelse |
tt tag 0 eq not { |
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. |
%% translation and encoding is necessary. |
}{ } ifelse |
}{ } ifelse |
|
|
exit |
exit |
} loop |
} loop |
|
ans [(End) nl lf] join /ans set |
ans cat /arg1 set |
ans cat /arg1 set |
] pop |
] pop |
popVariables |
popVariables |