|
Definition at line 85 of file lexsupport.cpp. |
|
Definition at line 315 of file codage.h. Referenced by NLAISCRIPT::CCodeContext::CCodeContext(). |
|
this typedef define an correct std::map for store local variable in the heap.
Definition at line 31 of file module.h. Referenced by NLAISCRIPT::IBlock::IBlock(), and NLAISCRIPT::IBlock::lockDictionarry(). |
|
Definition at line 491 of file codage.h. Referenced by NLAISCRIPT::CCodeBrancheRun::CCodeBrancheRun(), NLAISCRIPT::CCodeBrancheRunDebug::CCodeBrancheRunDebug(), NLAISCRIPT::CCodeBrancheRunDebug::initCode(), NLAISCRIPT::CCodeBrancheRun::initCode(), and NLAISCRIPT::IBlock::listCode(). |
|
|
|
Definition at line 314 of file codage.h. Referenced by NLAISCRIPT::CCodeContext::CCodeContext(). |
|
Definition at line 36 of file context_debug.h. Referenced by NLAISCRIPT::CContextDebug::getDebugMode().
00037 { 00038 runMode, 00039 stepByStepMode, 00040 stepInMode, 00041 stepOutMode, 00042 stopMode 00043 }; |
|
Type of variable manipulation in expression evaluation.
Definition at line 59 of file compilateur.h.
00059 { 00061 varTypeImediate, 00063 varTypeMember, 00065 varTypeStackMember, 00067 varTypeHeapMember, 00069 varTypeLocal, 00071 varForFunc, 00072 varUnknown, 00073 varTypeUndef 00074 }; |
|
|
|
Definition at line 88 of file lexsupport.cpp. References DicoDeNom.
00089 { 00090 DicoDeNom.insert(Arbre::value_type(T,tag) ); 00091 }; |
|
|
|
|
|
Erase the dictionary.
Definition at line 189 of file lexsupport.cpp. References DicoDeNom. Referenced by NLAISCRIPT::CCompilateur::Compile().
00190 { 00191 //Arbre::iterator Itr = DicoDeNom.begin(); 00192 DicoDeNom.clear(); 00193 /*while(Itr != DicoDeNom.end()) 00194 { 00195 DicoDeNom.erase(Itr); 00196 }*/ 00197 } |
|
|
|
|
|
|
|
For a given CString the method returns the token defined in the yacc.
Definition at line 173 of file lexsupport.cpp. References DicoDeNom, and IDENT. Referenced by NLAISCRIPT::yyFlexLexer::yylex().
|
|
get a nomber forom a given numerical string.
Definition at line 199 of file lexsupport.cpp. Referenced by NLAISCRIPT::yyFlexLexer::yylex().
00200 { 00201 00202 double V = 0.0,n,B = (double)Base; 00203 00204 00205 if(!Base) 00206 { 00207 return (float)atof(CStringType); 00208 } 00209 else 00210 { 00211 if(Base <= 10) 00212 { 00213 int i,j = 0; 00214 for(i = strlen(CStringType); i >= 1; i--) 00215 { 00216 n = (double)(CStringType[i - 1] - '0'); 00217 V += n*(int)pow(B,(double)j); 00218 j ++; 00219 } 00220 } 00221 else 00222 { 00223 int i,j = 0; 00224 for(i = strlen(CStringType) - 1; i >= 1; i--) 00225 { 00226 n = (double)(CStringType[i] - '0'); 00227 if(CStringType[i] >= '0' && CStringType[i] <'9') n = (double)(CStringType[i] - '0'); 00228 else 00229 if(CStringType[i] >= 'A' && CStringType[i] <'Z') n = 10.0 + (double)(CStringType[i] - 'A'); 00230 else 00231 if(CStringType[i] >= 'a' && CStringType[i] <'z') n = n = 10.0 + (double)(CStringType[i] - 'a'); 00232 if(CStringType[i] == '1') V += n*(int)pow(B,(double)j); 00233 j ++; 00234 } 00235 } 00236 } 00237 00238 return V; 00239 } |
|
|
|
|
|
Initialize the dictionary.
Definition at line 93 of file lexsupport.cpp. References _DESTRUCTOR_, ACHIEVE, AND, AS, ASK, BEGINING, BREAK, COLLECTOR, COMMENT, COMPONENT, DEFINE, DESTRUCTION, DicoDeNom, DO, END, EVEN, EXEC, FIS, FROM, FUZZY, FUZZYRULE, FUZZYRULESET, FUZZYVAR, GOAL, GROUP, IA_ASSERT, IF, KILL, LOCAL, MAESSAGELOOP, MESSAGE_MANAGER, MSG, NEW, NILL, PERROR, POSTCONDITION, PRECONDITION, PRIORITY, RETURN, RULE, SETS, STATIC, STEPS, TELL, THEN, TRIGGER, UPDATEEVERY, and WITH. Referenced by NLAISCRIPT::CCompilateur::Compile().
00094 { 00095 DicoDeNom.insert(Arbre::value_type("From",FROM) ); 00096 DicoDeNom.insert(Arbre::value_type("Define",DEFINE) ); 00097 DicoDeNom.insert(Arbre::value_type("Group",GROUP) ); 00098 //DicoDeNom.insert(Arbre::value_type("IMessageBase",MESSAGERIE) ); 00099 //DicoDeNom.insert(Arbre::value_type("Property",PROPERTY) ); 00100 //DicoDeNom.insert(Arbre::value_type("Agent",AGENT) ); 00101 DicoDeNom.insert(Arbre::value_type("Component",COMPONENT) ); 00102 //DicoDeNom.insert(Arbre::value_type(_CONSTRUCTOR_,CONSTRUCTION) ); 00103 DicoDeNom.insert(Arbre::value_type(_DESTRUCTOR_,DESTRUCTION) ); 00104 //DicoDeNom.insert(Arbre::value_type(_SEND_,SEND) ); 00105 //DicoDeNom.insert(Arbre::value_type(_RUN_,RUN) ); 00106 DicoDeNom.insert(Arbre::value_type("MessageLoop",MAESSAGELOOP) ); 00107 DicoDeNom.insert(Arbre::value_type("With",WITH) ); 00108 DicoDeNom.insert(Arbre::value_type("Do",DO) ); 00109 DicoDeNom.insert(Arbre::value_type("End",END) ); 00110 DicoDeNom.insert(Arbre::value_type("If",IF) ); 00111 DicoDeNom.insert(Arbre::value_type("MessageManager",MESSAGE_MANAGER) ); 00112 00113 DicoDeNom.insert(Arbre::value_type("Local", LOCAL) ); 00114 DicoDeNom.insert(Arbre::value_type("Static", STATIC) ); 00115 DicoDeNom.insert(Arbre::value_type("Static", STATIC) ); 00116 00117 DicoDeNom.insert(Arbre::value_type("Begin",BEGINING) ); 00118 00119 DicoDeNom.insert(Arbre::value_type("As",AS) ); 00120 00121 DicoDeNom.insert(Arbre::value_type("Trigger",TRIGGER) ); 00122 DicoDeNom.insert(Arbre::value_type("MessageCond",MSG) ); 00123 DicoDeNom.insert(Arbre::value_type("PreCondition",PRECONDITION) ); 00124 DicoDeNom.insert(Arbre::value_type("PostCondition",POSTCONDITION) ); 00125 DicoDeNom.insert(Arbre::value_type("Goal",GOAL) ); 00126 DicoDeNom.insert(Arbre::value_type("Steps",STEPS) ); 00127 DicoDeNom.insert(Arbre::value_type("Comment",COMMENT) ); 00128 DicoDeNom.insert(Arbre::value_type("UpdateEvery", UPDATEEVERY) ); 00129 DicoDeNom.insert(Arbre::value_type("Priority", PRIORITY) ); 00130 00131 DicoDeNom.insert(Arbre::value_type("Return",RETURN) ); 00132 DicoDeNom.insert(Arbre::value_type("MessageCollector",COLLECTOR) ); 00133 DicoDeNom.insert(Arbre::value_type("defrule", RULE) ); 00134 DicoDeNom.insert(Arbre::value_type("and", AND) ); 00135 DicoDeNom.insert(Arbre::value_type("then",THEN) ); 00136 DicoDeNom.insert(Arbre::value_type("new", NEW) ); 00137 DicoDeNom.insert(Arbre::value_type("assert", IA_ASSERT) ); 00138 DicoDeNom.insert(Arbre::value_type("deffuzzyrule",FUZZYRULE) ); 00139 DicoDeNom.insert(Arbre::value_type("fuzzyruleset",FUZZYRULESET) ); 00140 DicoDeNom.insert(Arbre::value_type("FuzzyVar", FUZZYVAR) ); 00141 DicoDeNom.insert(Arbre::value_type("Fuzzy", FUZZY) ); 00142 DicoDeNom.insert(Arbre::value_type("is", FIS) ); 00143 DicoDeNom.insert(Arbre::value_type("sets", SETS) ); 00144 DicoDeNom.insert(Arbre::value_type("Null",NILL) ); 00145 00146 DicoDeNom.insert(Arbre::value_type("EXEC",EXEC) ); 00147 DicoDeNom.insert(Arbre::value_type("ACHIEVE",ACHIEVE) ); 00148 DicoDeNom.insert(Arbre::value_type("ASK",ASK) ); 00149 DicoDeNom.insert(Arbre::value_type("BREAK",BREAK) ); 00150 DicoDeNom.insert(Arbre::value_type("TELL",TELL) ); 00151 DicoDeNom.insert(Arbre::value_type("KILL",KILL) ); 00152 DicoDeNom.insert(Arbre::value_type("ERROR",PERROR) ); 00153 DicoDeNom.insert(Arbre::value_type("EVEN",EVEN) ); 00154 00155 00156 //DicoDeNom.insert(Arbre::value_type("Digital",DIGITAL) ); 00157 //DicoDeNom.insert(Arbre::value_type("Agent",AGENT) ); 00158 //DicoDeNom.insert(Arbre::value_type("Property",PROPERTY) ); 00159 00160 /* 00161 DicoDeNom.insert(Arbre::value_type("Cos",COS) ); 00162 DicoDeNom.insert(Arbre::value_type("Sin",SIN) ); 00163 DicoDeNom.insert(Arbre::value_type("Tan",TAN) ); 00164 DicoDeNom.insert(Arbre::value_type("Pow",POW) ); 00165 DicoDeNom.insert(Arbre::value_type("Ln",LN) ); 00166 DicoDeNom.insert(Arbre::value_type("Log",LOG) ); 00167 DicoDeNom.insert(Arbre::value_type("CFact",FACT) ); 00168 DicoDeNom.insert(Arbre::value_type("Print",PRINT) );*/ 00169 00170 00171 } |
|
Definition at line 50 of file init.cpp. References reinitClass(). Referenced by NLAILINK::initIALib().
00051 { 00052 CCallPrint p; 00053 CLibTest c; 00054 00055 reinitClass(CAgentClass(CAgentClass::IdAgentClass), CAgentClass::IdAgentClass); 00056 00057 reinitClass(COperatorClass(COperatorClass::IdOperatorClass),COperatorClass::IdOperatorClass); 00058 reinitClass(CFsmClass(CFsmClass::IdFsmClass),CFsmClass::IdFsmClass); 00059 reinitClass(CSeqFsmClass(CSeqFsmClass::IdSeqFsmClass),CSeqFsmClass::IdSeqFsmClass); 00060 reinitClass(COperatorClass(COperatorClass::IdOperatorClass),COperatorClass::IdOperatorClass); 00061 reinitClass(CActorClass(CActorClass::IdActorClass),CActorClass::IdActorClass); 00062 reinitClass(CMessageClass(CMessageClass::IdMessageClass),CMessageClass::IdMessageClass); 00063 reinitClass(CMsgNotifyParentClass(CMsgNotifyParentClass::IdMsgNotifyParentClass),CMsgNotifyParentClass::IdMsgNotifyParentClass); 00064 reinitClass(CGoalMsgClass(CGoalMsgClass::IdGoalMsgClass),CGoalMsgClass::IdGoalMsgClass); 00065 reinitClass(CFactMsgClass(CFactMsgClass::IdFactMsgClass),CFactMsgClass::IdFactMsgClass); 00066 reinitClass(CCancelGoalMsgClass(CCancelGoalMsgClass::IdCancelGoalMsgClass),CCancelGoalMsgClass::IdCancelGoalMsgClass); 00067 reinitClass(CSuccessMsgClass(CSuccessMsgClass::IdSuccessMsgClass),CSuccessMsgClass::IdSuccessMsgClass); 00068 reinitClass(CFailureMsgClass(CFailureMsgClass::IdFailureMsgClass),CFailureMsgClass::IdFailureMsgClass); 00069 reinitClass(CGetValueMsgClass(CGetValueMsgClass::IdGetValueMsgClass),CGetValueMsgClass::IdGetValueMsgClass); 00070 reinitClass(CSetValueMsgClass(CSetValueMsgClass::IdSetValueMsgClass),CSetValueMsgClass::IdSetValueMsgClass); 00071 reinitClass(CManagerClass(CManagerClass::IdManagerClass),CManagerClass::IdManagerClass); 00072 reinitClass(COnChangeMsgClass(COnChangeMsgClass::IdOnChangeMsgClass),COnChangeMsgClass::IdOnChangeMsgClass); 00073 00074 NLAIAGENT::DigitalType::NullOperator.incRef(); 00075 } |
|
|
|
|
|
|
|
|
|
Definition at line 42 of file init.cpp. References NLAIC::IClassFactory::getClass(), NLAIC::IClassFactory::setClass(), and type. Referenced by initExternalLib().
00043 { 00044 NLAIC::IClassFactory &f = (NLAIC::IClassFactory&)*(type.getFactory()); 00045 f.setClass(c); 00046 ((IClassInterpret *)f.getClass())->setClassName(NLAIAGENT::CStringVarName((const char *)type)); 00047 } |
|
|
|
|
|
|
|
Definition at line 86 of file lexsupport.cpp. Referenced by AddWordDico(), EraseDico(), GetIdentType(), and InitDico(). |
|
|
|
|
Definition at line 725 of file static_def_init.cpp. |
|
|
|
|
|
Definition at line 37 of file test_method.cpp. |