EVAL
Takes the topmost item and evaluates it as a PumpkinScript program on the current stack
Input stack: code
Output stack: result of code
evaluation
PumpkinDB> 10 [DUP] EVAL
10 10
Allocation
Allocates a copy of the code (this might change in the future) during the runtime.
Errors
EmptyStack error if there is less than one item on the stack
Decoding error error if the code is undecodable.
Tests
works : 10 [DUP] EVAL 2 WRAP 10 10 2 WRAP EQUAL?.
empty_stack : [EVAL] TRY UNWRAP 0x04 EQUAL?.
invalid_code : [1 EVAL] TRY UNWRAP 0x05 EQUAL?.