Commit 66574a0a authored by Raghav Khanna's avatar Raghav Khanna

Correctly handle prints that occur before a read

parent 5b6a75f5
......@@ -117,6 +117,10 @@ class App extends React.Component {
proccesLine = () => {
if (this.state.statementIndex < this.state.mainStatements.length) {
let current = this.state.currentNode;
if(current.name.includes("StatementRead")){
eval(" waccPrintFinished()");
eval("waccPrintingBuffer = \"\"")
}
let jsLines = this.state.js.code.split("\n");
let startLine = current.highlighting.js[0].startRow;
let endLine = current.highlighting.js[0].endRow;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment