// TOKENST.och oszt ly implement ci¢. // Gener lva: 1999.06.10, 14:41:25, OBJCCC v2.2.03 // Meta oszt ly defin¡ci¢: Van #ifndef CA_TOKEN_N #ifdef _STRICT_PARENT_ #ifdef _CA_CM_ONLY_ #include "TOKEN.och" #else // _CA_CM_ONLY_ #define _CA_CM_ONLY_ #include "TOKEN.och" #undef _CA_CM_ONLY_ #endif // _CA_CM_ONLY_ #else #include "TOKEN.och" #endif // _STRICT_PARENT_ #endif // CA_TOKEN_N #ifndef _CA_CM_ONLY_ #ifndef _TOKENST_OCH_ #define _TOKENST_OCH_ #xtranslate TOKENST.:id => \[CA_OBJECT_N+1\] #xtranslate TOKENST.:str => \[CA_OBJECT_N+2\] #xtranslate TOKENST.:file => \[CA_OBJECT_N+3\] #xtranslate TOKENST.:line => \[CA_OBJECT_N+4\] #xtranslate TOKENST.:pos => \[CA_OBJECT_N+5\] #xtranslate TOKENST.:classify => \[CA_OBJECT_N+6\] #xtranslate TOKENST.:error => \[CA_OBJECT_N+7\] #xtranslate TOKENST.:eqtype => \[CA_OBJECT_N+8\] #xtranslate TOKENST.:oinit => (OBJGEN.():(4)) #xtranslate TOKENST.:getclass => (OBJGEN.():(5)) #xtranslate TOKENST.:isclass => (OBJGEN.():(6)) #xtranslate TOKENST.:getattrib => (OBJGEN.():(7)) #xtranslate TOKENST.:setattrib => (OBJGEN.():(8)) #xtranslate TOKENST.:iserror => (OBJGEN.():(CM_OBJECT_N+1)) #xtranslate TOKENST.:errorstr => (OBJGEN.():(CM_OBJECT_N+2)) #xtranslate TOKENST.:printtostr => (OBJGEN.():(CM_OBJECT_N+3)) #xtranslate TOKENST.:getstr => (OBJGEN.():(CM_OBJECT_N+4)) #xtranslate TOKENST.:copytoken => (OBJGEN.():(CM_OBJECT_N+5)) #xtranslate TOKENST.:deep => \[CA_TOKEN_N+1\] // ™r”k”lve: oinit(id,str,file,line,pos,deep) // ™r”k”lve: oinit(id,str,file,line,pos,deep) #endif // _TOKENST_OCH_ #endif // _CA_CM_ONLY_ #ifndef CA_TOKENST_N #define CA_TOKENST_N CA_TOKEN_N+1 #define CM_TOKENST_N CM_TOKEN_N+0 #endif // CA_TOKENST_N #ifndef _CA_CM_ONLY_ #ifndef _TOKENSTCLASS_OCH_ #define _TOKENSTCLASS_OCH_ ********************************************************************** #xtranslate C.TOKENST: => (TOKENSTCLASS.clTOKENST():) #xtranslate C.TOKENST:self() => (clTOKENST()) #xtranslate TOKENSTCLASS.:parent => \[CA_OBJECT_N+1\] #xtranslate TOKENSTCLASS.:name => \[CA_OBJECT_N+2\] #xtranslate TOKENSTCLASS.:objsize => \[CA_OBJECT_N+3\] #xtranslate TOKENSTCLASS.:attribs => \[CA_OBJECT_N+4\] #xtranslate TOKENSTCLASS.:methods => \[CA_OBJECT_N+5\] #xtranslate TOKENSTCLASS.:classid => \[CA_OBJECT_N+6\] #xtranslate TOKENSTCLASS.:parentclassids => \[CA_OBJECT_N+7\] #xtranslate TOKENSTCLASS.:amblock => \[CA_OBJECT_N+8\] #xtranslate TOKENSTCLASS.:methodsblock => \[CA_OBJECT_N+9\] #xtranslate TOKENSTCLASS.:objmethodsimplement => \[CA_OBJECT_N+10\] #xtranslate TOKENSTCLASS.:errstrarray => \[CA_BEHAVIOR_N+1\] #xtranslate TOKENSTCLASS.:equivclass => \[CA_BEHAVIOR_N+2\] #xtranslate TOKENSTCLASS.:oinit => (OBJGEN.():(4)) #xtranslate TOKENSTCLASS.:getclass => (OBJGEN.():(5)) #xtranslate TOKENSTCLASS.:isclass => (OBJGEN.():(6)) #xtranslate TOKENSTCLASS.:getattrib => (OBJGEN.():(7)) #xtranslate TOKENSTCLASS.:setattrib => (OBJGEN.():(8)) #xtranslate TOKENSTCLASS.:onew => (OBJGEN.():(CM_OBJECT_N+1)) #xtranslate TOKENSTCLASS.:ocreate => (OBJGEN.():(CM_OBJECT_N+2)) #xtranslate TOKENSTCLASS.:rawoinit => (OBJGEN.():(CM_OBJECT_N+3)) #xtranslate TOKENSTCLASS.:oinitclass => (OBJGEN.():(CM_OBJECT_N+4)) #xtranslate TOKENSTCLASS.:getmethodsimplement => (OBJGEN.():(CM_OBJECT_N+5)) #xtranslate TOKENSTCLASS.:attribidx => (OBJGEN.():(CM_OBJECT_N+6)) #xtranslate TOKENSTCLASS.:needclassid => (OBJGEN.():(CM_OBJECT_N+7)) #xtranslate TOKENSTCLASS.:isinheritfrom => (OBJGEN.():(CM_OBJECT_N+8)) #xtranslate TOKENSTCLASS.:onewerror => (OBJGEN.():(CM_BEHAVIOR_N+1)) #xtranslate TOKENSTCLASS.:copyfromtoken => (OBJGEN.():(CM_BEHAVIOR_N+2)) #xtranslate TOKENSTCLASS.:findclassify => (OBJGEN.():(CM_BEHAVIOR_N+3)) // ™r”k”lve: onew(id,str,file,line,pos,deep) // ™r”k”lve: onew(id,str,file,line,pos,deep) #endif // _TOKENSTCLASS_OCH_ #endif // _CA_CM_ONLY_ #ifndef CA_TOKENSTCLASS_N #define CA_TOKENSTCLASS_N CA_TOKENCLASS_N+0 #define CM_TOKENSTCLASS_N CM_TOKENCLASS_N+0 #endif // CA_TOKENSTCLASS_N ********************************************************************** #ifdef _TOKENST_PRG_ #ifndef _TOKENST_PRG_OCH_ #define _TOKENST_PRG_OCH_ ********************************************************************** #xtranslate othis: => TOKENST.(othis): #xtranslate thisclass: => TOKENSTCLASS.(this:getClass()): #define CTHIS TOKENST ********************************************************************** #xtranslate this: => TOKENST.(this): #xcommand implement oinit(id,str,file,line,pos,deep) => ; static function oinit(this,id,str,file,line,pos,deep) #ifdef _IMPLEMENT_EXPORT_ #xcommand implement export oinit(id,str,file,line,pos,deep) => ; function oinit(this,id,str,file,line,pos,deep) #endif // _IMPLEMENT_EXPORT_ #xtranslate super:oinit => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(4)) #xtranslate super:getclass => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(5)) #xtranslate super:isclass => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(6)) #xtranslate super:getattrib => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(7)) #xtranslate super:setattrib => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(8)) #xtranslate super:iserror => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(CM_OBJECT_N+1)) #xtranslate super:errorstr => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(CM_OBJECT_N+2)) #xtranslate super:printtostr => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(CM_OBJECT_N+3)) #xtranslate super:getstr => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(CM_OBJECT_N+4)) #xtranslate super:copytoken => (OBJGENM.(eval(BEHAVIOR.clTOKEN():objmethodsimplement)).(this):(CM_OBJECT_N+5)) ********************************************************************** static function setCMethods(pOsztaly) // Egy t”mb”t felt”lt az oszt ly m–veleti blokkjaival. pOsztaly[(4)]:={|this,id,str,file,line,pos,deep| oinit(this,id,str,file,line,pos,deep)} return pOsztaly ********************************************************************** static function setCams(ta,tm) // Egy t”mb”t felt”lt az oszt ly  ltal def. objektumok attrib£tumaival ‚s m–veleteivel. ta[CA_TOKEN_N+1-CA_NIL_N] := {CA_TOKEN_N+1,'deep', } tm[(4)-CM_NIL_N] := {(4),'oinit','id,str,file,line,pos,deep',nil} return nil #ifndef _NO_CLTOKENST_ #ifdef _STRICT_PARENT_ #ifdef _CA_CM_ONLY_ #include "meta.och" #else // _CA_CM_ONLY_ #define _CA_CM_ONLY_ #include "meta.och" #undef _CA_CM_ONLY_ #endif // _CA_CM_ONLY_ #else #include "meta.och" #endif // _STRICT_PARENT_ ********************************************************************** function clTOKENST() // El“szedi az oszt lyt. (class) static osztaly if (osztaly==nil) osztaly:=META.mcTOKENSTCLASS():onew(; clTOKEN(),; "TOKENST",; CA_TOKENST_N,; CM_TOKENST_N,; {|ta,tm|setCams(ta,tm)},; {|t|setCMethods(t)}) endif return osztaly #endif // _NO_CLTOKENST_ #ifndef _NO_TOKENSTCLASS_ ********************************************************************** #xtranslate class: => TOKENSTCLASS.(class): #xcommand cimplement onew(id,str,file,line,pos,deep) => ; static function onew(class,id,str,file,line,pos,deep) #ifdef _IMPLEMENT_EXPORT_ #xcommand cimplement export onew(id,str,file,line,pos,deep) => ; function onew(class,id,str,file,line,pos,deep) #endif // _IMPLEMENT_EXPORT_ #xtranslate superclass:oinit => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(4)) #xtranslate superclass:getclass => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(5)) #xtranslate superclass:isclass => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(6)) #xtranslate superclass:getattrib => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(7)) #xtranslate superclass:setattrib => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(8)) #xtranslate superclass:onew => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+1)) #xtranslate superclass:ocreate => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+2)) #xtranslate superclass:rawoinit => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+3)) #xtranslate superclass:oinitclass => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+4)) #xtranslate superclass:getmethodsimplement => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+5)) #xtranslate superclass:attribidx => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+6)) #xtranslate superclass:needclassid => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+7)) #xtranslate superclass:isinheritfrom => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_OBJECT_N+8)) #xtranslate superclass:onewerror => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_BEHAVIOR_N+1)) #xtranslate superclass:copyfromtoken => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_BEHAVIOR_N+2)) #xtranslate superclass:findclassify => (OBJGENM.(eval(BEHAVIOR.mcTOKENCLASS():objmethodsimplement)).(class):(CM_BEHAVIOR_N+3)) ********************************************************************** static function setMCMethods(pOsztaly) // Egy t”mb”t felt”lt a metaoszt ly m–veleti blokkjaival. pOsztaly[(CM_OBJECT_N+1)]:={|class,id,str,file,line,pos,deep| onew(class,id,str,file,line,pos,deep)} return pOsztaly ********************************************************************** static function setMCams(ta,tm) // Egy t”mb”t felt”lt a metaoszt ly  ltal def. objektumok attrib£tumaival ‚s m–veleteivel. tm[(CM_OBJECT_N+1)-CM_NIL_N] := {(CM_OBJECT_N+1),'onew','id,str,file,line,pos,deep',nil} return nil ********************************************************************** #ifndef _NO_MCTOKENSTCLASS_ #ifdef _STRICT_PARENT_ #ifdef _CA_CM_ONLY_ #include "meta.och" // "metaclas.och" #else // _CA_CM_ONLY_ #define _CA_CM_ONLY_ #include "meta.och" // "metaclas.och" #undef _CA_CM_ONLY_ #endif // _CA_CM_ONLY_ #else #include "meta.och" // "metaclas.och" #endif // _STRICT_PARENT_ function mcTOKENSTCLASS() // El“szedi az oszt ly metaoszt ly t. (metaclass) static metaOsztaly if (metaOsztaly==nil) metaOsztaly:=META.clMETA():onew(; mcTOKENCLASS(),; "TOKENSTCLASS",; CA_TOKENSTCLASS_N,; CM_TOKENSTCLASS_N,; {|ta,tm|setMCams(ta,tm)},; {|t|setMCMethods(t)}) endif return metaOsztaly #endif // _NO_MCTOKENSTCLASS_ #endif // _NO_TOKENSTCLASS_ #ifdef _IMPLEMENT_ONEW_ ********************************************************************** cimplement onew(id,str,file,line,pos,deep) local o:=class:ocreate() TOKENST.o:oinit(id,str,file,line,pos,deep) return o #endif // _IMPLEMENT_ONEW_ ********************************************************************** #ifdef _IMPLEMENT_OINIT_ implement oinit(id,str,file,line,pos,deep) super:oinit() return this #endif // _IMPLEMENT_OINIT_ ********************************************************************** ********************************************************************** #endif // _TOKENST_PRG_OCH_ #endif // _TOKENST_PRG_