Changeset 993bd3a in OpenModelica
- Timestamp:
- 2016-02-01T20:24:23+01:00 (8 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 530076c
- Parents:
- e2d5aa8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Compiler/Script/Binding.mo
re2d5aa8 r993bd3a 79 79 //output String bindingExpression; 80 80 algorithm 81 isBindingPossible := match continue(client_list)81 isBindingPossible := match(client_list) 82 82 local 83 83 Client_e ce; … … 85 85 case {} then true; 86 86 case ce::rest 87 equation 88 // inferBindingClient(ce); 87 //guard inferBindingClient(ce) 89 88 then inferBindingClientList(rest, vmodel, env); 90 end match continue;89 end match; 91 90 end inferBindingClientList; 92 91 … … 149 148 output Boolean isM; 150 149 algorithm 151 isM := match continue(clients)150 isM := match(clients) 152 151 local 153 152 String className; … … 156 155 case {} then {}; 157 156 case CLIENT(className, instance)::rest 158 equation159 className = name;157 guard 158 stringEq(className, name) 160 159 then true; 161 160 case _::rest 162 161 then specifiesBindingFor(name, rest); 163 end match continue;162 end match; 164 163 end getProviders; */ 165 164 … … 232 231 output List<Mediator> m; 233 232 algorithm 234 (isClient, m) := match continue(mediators)233 (isClient, m) := match(mediators) 235 234 local 236 235 String name; … … 242 241 case {} then (false, {}); 243 242 case MEDIATOR(name, mType, template, clients, providers)::rest 243 guard 244 isClientInMediator(ci_name, clients) 244 245 equation 245 true = isClientInMediator(ci_name, clients);246 246 print("... found client : "+ ci_name +"\n"); 247 247 then (true, {MEDIATOR(name, mType, template, clients, providers)}); 248 248 case _::rest 249 249 then isClient(ci_name, rest); 250 end match continue;250 end match; 251 251 end isClient; 252 252 … … 257 257 algorithm 258 258 259 isClient := match continue(clients)259 isClient := match(clients) 260 260 local 261 261 list<Absyn.Class> parents; … … 265 265 case {} then (false); 266 266 case CLIENT(name, _)::rest 267 equation 268 true = (name == ci_name); 267 guard stringEq(name, ci_name) 269 268 then true; 270 269 case _::rest 271 270 then isClientInMediator(ci_name, rest); 272 end match continue;271 end match; 273 272 end isClientInMediator; 274 273 … … 280 279 output Boolean isM; 281 280 algorithm 282 isM := match continue(clients)281 isM := match(clients) 283 282 local 284 283 String className; … … 287 286 case {} then false; 288 287 case CLIENT(className, instance)::rest 289 equation290 className = name;288 guard 289 stringEq(className, name) 291 290 then true; 292 291 case _::rest 293 292 then specifiesBindingFor(name, rest); 294 end match continue;293 end match; 295 294 end specifiesBindingFor; 296 295 … … 409 408 output String val; 410 409 algorithm 411 val := match continue(argNames)410 val := match(argNames) 412 411 local 413 412 String str, nname; … … 416 415 then ""; 417 416 case Absyn.NAMEDARG(nname, Absyn.STRING(str))::rest 418 equation419 nname = name;417 guard 418 stringEq(nname, name) 420 419 then str; 421 420 case _::rest 422 421 then getArg(rest, name); 423 end match continue;422 end match; 424 423 end getArg; 425 424 … … 430 429 output Option<SCode.Mod> mods; 431 430 algorithm 432 (result, mods) := match continue(elems)431 (result, mods) := match(elems) 433 432 local 434 433 list<SCode.Element> rest; … … 442 441 case el::rest 443 442 then isMediator(rest); 444 end match continue;443 end match; 445 444 end isMediator; 446 445
Note: See TracChangeset
for help on using the changeset viewer.