Hello everyone,
I've been playing around with writing a REPL for Dart using the vm
service and I was hoping I could get a few questions answered.
First of all, is it even viable to write a Dart REPL using the vm
service and the evaluate and evaluateInFrame calls?
I have gotten function calls and math expressions to work correctly
using evaluate, but have not found a way to dynamically add
new code like variables and functions.
If the vm service is too limited for use in a REPL, are there any
other services or API's that would be useful?
What capabilites and limitations do the evaluate and evaluateInFrame
calls have with regard to execution and declaration of code?
How would I go about declaring variables, functions, and classes via
the vm service? Are these types of things even possible?
Thanks!