Home
last modified time | relevance | path

Searched refs:UScriptExpression (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/services/script/script_interpreter/
Dscript_expression.h22 class UScriptExpression; variable
23 using UScriptExpressionPtr = std::shared_ptr<UScriptExpression>;
28 class UScriptExpression {
57 explicit UScriptExpression(ExpressionType expressType);
58 virtual ~UScriptExpression();
61 static UScriptExpression* CreateExpression(ExpressionType expressType) in CreateExpression()
63 return new UScriptExpression(expressType); in CreateExpression()
74 class IntegerExpression : public UScriptExpression {
76 … explicit IntegerExpression(int v) : UScriptExpression(UScriptExpression::EXPRESSION_TYPE_INTERGER) in IntegerExpression()
85 static UScriptExpression* CreateExpression(int value) in CreateExpression()
[all …]
Dscript_param.h29 class UScriptExpression; variable
38 void AddParams(UScriptExpression *expression);
39 const std::vector<UScriptExpression*> GetParams() const in GetParams()
44 static ScriptParams* CreateParams(UScriptExpression *expression);
45 static ScriptParams* AddParams(ScriptParams *params, UScriptExpression *expression);
48 std::vector<UScriptExpression*> expressionList_ {};
Dscript_statement.h24 class UScriptExpression; variable
99 static UScriptStatement* CreateExpressionStatement(UScriptExpression *expression);
101 static UScriptStatement* CreateIfStatement(UScriptExpression *condition,
106 static UScriptStatement* CreateForStatement(UScriptExpression *before,
107 UScriptExpression *condition,
108 UScriptExpression *after,
111 …static UScriptStatement* CreateWhileStatement(UScriptExpression *condition, UScriptStatementList *…
133 explicit UScriptExpressionStatement(UScriptExpression *expression) : in UScriptExpressionStatement()
138 UScriptExpression* expression_;
143 UScriptIfStatement(UScriptExpression *expression, UScriptStatementList *statements) in UScriptIfStatement()
[all …]
Dscript_expression.cpp23 UScriptExpression::UScriptExpression(ExpressionType expressType) : expressType_(expressType) {} in UScriptExpression() function in Uscript::UScriptExpression
24 UScriptExpression::~UScriptExpression() {} in ~UScriptExpression()
26 UScriptExpression* AssignExpression::CreateExpression(const std::string identifier, UScriptExpressi… in CreateExpression()
35 UScriptExpression* AssignExpression::AddIdentifier(UScriptExpression *expression, const std::string… in AddIdentifier()
45 UScriptExpression* BinaryExpression::CreateExpression(ExpressionAction action, in CreateExpression()
46 UScriptExpression *left, in CreateExpression()
47 UScriptExpression *right) in CreateExpression()
51 UScriptExpression* FunctionCallExpression::CreateExpression(const std::string identifier, ScriptPar… in CreateExpression()
55 UScriptValuePtr UScriptExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
83 int32_t IdentifierExpression::GetIdentifierName(UScriptExpression *expression, std::string &name) in GetIdentifierName()
Dscript_context.cpp248 case UScriptExpression::ADD_OPERATOR: in Computer()
251 case UScriptExpression::SUB_OPERATOR: in Computer()
254 case UScriptExpression::MUL_OPERATOR: in Computer()
257 case UScriptExpression::DIV_OPERATOR: in Computer()
260 case UScriptExpression::GT_OPERATOR: in Computer()
263 case UScriptExpression::GE_OPERATOR: in Computer()
266 case UScriptExpression::LT_OPERATOR: in Computer()
269 case UScriptExpression::LE_OPERATOR: in Computer()
272 case UScriptExpression::EQ_OPERATOR: in Computer()
275 case UScriptExpression::NE_OPERATOR: in Computer()
[all …]
Dscript_yacc.y107 %type <UScriptExpression*> definition_or_statement
206 $$ = BinaryExpression::CreateExpression(UScriptExpression::EQ_OPERATOR, $1, $3);
210 $$ = BinaryExpression::CreateExpression(UScriptExpression::NE_OPERATOR, $1, $3);
214 $$ = BinaryExpression::CreateExpression(UScriptExpression::AND_OPERATOR, $1, $3);
218 $$ = BinaryExpression::CreateExpression(UScriptExpression::OR_OPERATOR, $1, $3);
227 $$ = BinaryExpression::CreateExpression(UScriptExpression::GT_OPERATOR, $1, $3);
231 $$ = BinaryExpression::CreateExpression(UScriptExpression::GE_OPERATOR, $1, $3);
235 $$ = BinaryExpression::CreateExpression(UScriptExpression::LT_OPERATOR, $1, $3);
239 $$ = BinaryExpression::CreateExpression(UScriptExpression::LE_OPERATOR, $1, $3);
248 $$ = BinaryExpression::CreateExpression(UScriptExpression::ADD_OPERATOR, $1, $3);
[all …]
Dscript_param.cpp31 ScriptParams* ScriptParams::CreateParams(UScriptExpression *expression) in CreateParams()
42 ScriptParams* ScriptParams::AddParams(ScriptParams *params, UScriptExpression *expression) in AddParams()
55 void ScriptParams::AddParams(UScriptExpression *expression) in AddParams()
Dscript_statement.cpp87 UScriptStatement* UScriptStatement::CreateExpressionStatement(UScriptExpression *expression) in CreateExpressionStatement()
93 UScriptStatement* UScriptStatement::CreateIfStatement(UScriptExpression *condition, in CreateIfStatement()
109 UScriptStatement* UScriptStatement::CreateForStatement(UScriptExpression *before, in CreateForStatement()
110 UScriptExpression *condition, in CreateForStatement()
111 UScriptExpression *after, in CreateForStatement()
117 UScriptStatement* UScriptStatement::CreateWhileStatement(UScriptExpression *condition, in CreateWhileStatement()
/base/update/updater/test/unittest/script/
Dscript_interpreter_unittest.cpp125 value->Computer(UScriptExpression::DIV_OPERATOR, rightValue); in TestIntegerValueComputer()
129 value->Computer(UScriptExpression::DIV_OPERATOR, rightValue2); in TestIntegerValueComputer()
133 value->Computer(UScriptExpression::DIV_OPERATOR, rightValue3); in TestIntegerValueComputer()
148 value->Computer(UScriptExpression::DIV_OPERATOR, rightValue); in TestFloatValueComputer()
151 value->Computer(UScriptExpression::DIV_OPERATOR, rightValue2); in TestFloatValueComputer()
155 value->Computer(UScriptExpression::DIV_OPERATOR, rightValue3); in TestFloatValueComputer()
157 value->Computer(UScriptExpression::EQ_OPERATOR, rightValue3); in TestFloatValueComputer()
168 value->Computer(UScriptExpression::ADD_OPERATOR, rightValue); in TestStringValueComputer()
172 value->Computer(UScriptExpression::ADD_OPERATOR, rightValue2); in TestStringValueComputer()
175 value->Computer(UScriptExpression::ADD_OPERATOR, rightValue3); in TestStringValueComputer()
[all …]