|
|
| version 1.433, 2026/10/18 21:05:35 | version 1.436, 2026/11/27 23:56:54 |
|---|---|
| Line 92 const char *opcode_name[]={ | Line 92 const char *opcode_name[]={ |
| "GET_ELEMENT__SPECIAL__WRITE", | "GET_ELEMENT__SPECIAL__WRITE", |
| #endif | #endif |
| // expression ops: unary | // expression ops: unary |
| "NEG", "INV", "NOT", "DEF", "IN", "FEXISTS", "DEXISTS", | "NEG", "INV", "NOT", "DEF", "IN", "FEXISTS", "DEXISTS", "LEXISTS", |
| // expression ops: binary | // expression ops: binary |
| "SUB", "ADD", "MUL", "DIV", "MOD", "INTDIV", | "SUB", "ADD", "MUL", "DIV", "MOD", "INTDIV", |
| "BIN_SL", "BIN_SR", | "BIN_SL", "BIN_SR", |
| Line 956 void Request::execute(ArrayOperation& op | Line 956 void Request::execute(ArrayOperation& op |
| stack.push(value); | stack.push(value); |
| break; | break; |
| } | } |
| case OP::OP_LEXISTS: | |
| { | |
| Value& a=stack.pop().value(); | |
| const String* path=real_disk_path(a.as_string()); | |
| Value& value=VBool::get(path && symlink_exists(*path)); | |
| stack.push(value); | |
| break; | |
| } | |
| // expression ops: binary | // expression ops: binary |
| case OP::OP_SUB: | case OP::OP_SUB: |
| Line 1212 void Request::execute(ArrayOperation& op | Line 1220 void Request::execute(ArrayOperation& op |
| check_skip: | check_skip: |
| { | { |
| if(fskip){ | if(fskip){ |
| if(fskip==Request::SKIP_INTERRUPTED){ | if(fskip==Request::SKIP_INTERRUPTED) |
| set_skip(Request::SKIP_NOTHING); | throw_interrupted(); |
| throw Exception("parser.interrupted", 0, "execution stopped"); | |
| } | |
| return; | return; |
| } | } |
| break; | break; |