Open phtj opened 4 years ago
Create a new repo that will be a headless version of mobius
This will be a version that executes the flowcharts using nodejs, not the browser
There would be an execute(flowchart) function
The return value from executing a flowchart would be { print=..., return_value= ..., data=... }
{ print=..., return_value= ..., data=... }
print
return_value
data
The code would be similar to the grader, but just without the grading part
The code should be published on npm
The "save as js" function in mobius should "require" the mobius headless npm
Create a new repo that will be a headless version of mobius
This will be a version that executes the flowcharts using nodejs, not the browser
There would be an execute(flowchart) function
The return value from executing a flowchart would be
{ print=..., return_value= ..., data=... }
print
is the text that is printed to the console (may be undefined)return_value
is the value returned by the end node (may be undefined)data
is the data that is in end nodeThe code would be similar to the grader, but just without the grading part
The code should be published on npm
The "save as js" function in mobius should "require" the mobius headless npm