Warning: session_start(): open(/var/lib/php/sessions/sess_hkd365uhqhjfu92cm6htpmt4j5, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass LASCompileResult {
settable S script;
settable GazelleV_LeftArrowScriptParser parser;
settable Throwable compileError;
/*settable broken*/ GazelleV_LeftArrowScript.Script parsedScript;
RunResultWithTimestamps compileLog;
toString {
if (compileError != null) ret errorToString();
if (parsedScript == null) ret "Not compiled yet";
ret "Compiled OK" + (compileLog == null ? ""
: " in " + n2(max(1, compileLog.duration().toMillis())) + " ms";
}
bool hasError() { ret compileError != null; }
S errorToString() {
ret exceptionToStringShorter_dontDropOuterExceptions(compileError);
}
bool runnable() { ret parsedScript != null; }
void compile() {
compileLog = runResultWithTimestamps_dontPrintStackTrace(-> {
if (parser == null)
parser = makeParser();
ret parsedScript = parser.parse(script);
});
if (compileLog.isError()) {
var e = compileLog.getError();
compileError(e);
}
}
GazelleV_LeftArrowScript.Script parsedScript aka get() { ret parsedScript; }
GazelleV_LeftArrowScript.Script parsedScriptMandatory() {
if (compileError != null) fail(compileError);
ret parsedScript;
}
swappable GazelleV_LeftArrowScriptParser makeParser() { null; }
LineAndColumn errorLineAndCol() {
ret parseLineAndColumn(str(compileError));
}
Timestamp compilationStart() {
ret compileLog?.started;
}
}