|
10 | 10 | #include "verbs/Interpret.inl" |
11 | 11 | #include "verbs/Create.inl" |
12 | 12 | #include "inner/Missing.hpp" |
| 13 | +#include "inner/Redundant.hpp" |
13 | 14 |
|
14 | 15 | #if 0 |
15 | 16 | #define VERBOSE(...) Logger::Verbose(__VA_ARGS__) |
@@ -427,20 +428,21 @@ namespace Langulus::Flow |
427 | 428 |
|
428 | 429 | // Integrate the verb source to environment |
429 | 430 | Many localSource; |
430 | | - if (not Execute(verb.GetSource(), context, localSource, true, silent)) { |
431 | | - // It's considered error only if verb is not monocast |
432 | | - if (not silent) |
433 | | - FLOW_ERRORS("Error at source of: ", verb); |
434 | | - return false; |
| 431 | + if (not verb.GetSource().Is<Inner::Redundant>()) { |
| 432 | + if (not Execute(verb.GetSource(), context, localSource, true, silent)) { |
| 433 | + if (not silent) |
| 434 | + FLOW_ERRORS("Error at source of: ", verb); |
| 435 | + return false; |
| 436 | + } |
435 | 437 | } |
| 438 | + else localSource = verb.GetSource().Get<Inner::Redundant>().mContent; |
436 | 439 |
|
437 | 440 | if (localSource.IsInvalid()) |
438 | 441 | localSource = context; |
439 | 442 |
|
440 | 443 | // Integrate the verb argument to the source |
441 | 444 | Many localArgument; |
442 | 445 | if (not Execute(verb.GetArgument(), localSource, localArgument, true, silent)) { |
443 | | - // It's considered error only if verb is not monocast |
444 | 446 | if (not silent) |
445 | 447 | FLOW_ERRORS("Error at argument of: ", verb); |
446 | 448 | return false; |
|
0 commit comments