cs136 / seashell

Seashell is an online environment for editing, running, and submitting C programming assignments.
GNU General Public License v3.0
38 stars 19 forks source link

Hook up most of online I/O callbacks #725

Closed kpalway closed 7 years ago

kpalway commented 7 years ago

Not all of the cases are implemented yet but the most common stuff is there, and it shows the general structure of how we're implementing this. The idea I have in mind is: there are two action types that the compiler can send to the dispatch, "output" and "programDone". Output's payload is simply a string, programDone has a null payload, just meant to notify when the program is no longer running. All of the other processing of output will be done by the Compiler class (I may consider abstracting the processing of output into a separate class). The output sent to the dispatch function will be the final data that should be printed directly to the console.