Functionality to call high-level code from C++.

This commit is contained in:
Marcel Keller
2024-11-21 12:18:10 +11:00
parent e7554ccbfd
commit 91321ff8cd
245 changed files with 3875 additions and 1139 deletions

View File

@@ -71,9 +71,9 @@ void Program::parse(istream& s)
CALLGRIND_STOP_INSTRUMENTATION;
while (!s.eof())
{
instr.parse(s, pos);
if (s.bad() or s.fail())
throw runtime_error("error reading program");
instr.parse(s, pos);
p.push_back(instr);
//cerr << "\t" << instr << endl;
s.peek();