print, println, input, ground tutorial

This commit is contained in:
2025-09-20 12:08:20 +10:00
parent 2fd344af82
commit cc896629f7
3 changed files with 360 additions and 8 deletions

View File

@@ -2338,8 +2338,11 @@ vector<Instruction> parser(vector<vector<string>> in) {
newInst.args.push_back(newFnRef);
}
else if (i == "stdin") newInst.inst = Instructions::Stdin;
else if (i == "input") newInst.inst = Instructions::Stdin;
else if (i == "stdout") newInst.inst = Instructions::Stdout;
else if (i == "print") newInst.inst = Instructions::Stdout;
else if (i == "stdlnout") newInst.inst = Instructions::Stdlnout;
else if (i == "println") newInst.inst = Instructions::Stdlnout;
else if (i == "error") newInst.inst = Instructions::Error;
else if (i == "try") newInst.inst = Instructions::Try;
else if (i == "catch") newInst.inst = Instructions::Catch;