|
|
@ -28,7 +28,7 @@ Func CoreWords::get(int index)
|
|
|
|
/*20*/ op_xor, op_shl, op_shr, op_comment, op_colon,
|
|
|
|
/*20*/ op_xor, op_shl, op_shr, op_comment, op_colon,
|
|
|
|
op_semic, op_here, op_const, op_depth, op_key,
|
|
|
|
op_semic, op_here, op_const, op_depth, op_key,
|
|
|
|
/*30*/ op_exit, op_tick, op_execute, op_jmp, op_jmp0,
|
|
|
|
/*30*/ op_exit, op_tick, op_execute, op_jmp, op_jmp0,
|
|
|
|
op_lit, op_literal
|
|
|
|
op_lit, op_literal, op_rdepth
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return index >= 0 && index < WordCount ? ops[index] : nullptr;
|
|
|
|
return index >= 0 && index < WordCount ? ops[index] : nullptr;
|
|
|
@ -259,6 +259,11 @@ void CoreWords::op_depth(State& state)
|
|
|
|
state.push(state.size());
|
|
|
|
state.push(state.size());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CoreWords::op_rdepth(State& state)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
state.push(state.rsize());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CoreWords::op_key(State& state)
|
|
|
|
void CoreWords::op_key(State& state)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto len = state.dict.read(Dictionary::Input);
|
|
|
|
auto len = state.dict.read(Dictionary::Input);
|
|
|
|