I'm implementing a compiler in my Compilers class, I'm using Qt & C++.
After I have generated the machine code from the source code, I'm executing the virtual machine that will execute the code.
I'm facing a problem here, I'm using readyRead()
signal to get output from the virtual machine, but how can I know that the virtual machine wants to read data from the user?
I wanna show the user an input dialog each time the machine asks for input.