Warning: session_start(): open(/var/lib/php/sessions/sess_l46pjtv76n9jutrgo1eq9tbrpv, 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
// process scope x. ... end scope blocks
static void tok_scopes(L tok) {
if (!tok.contains("scope")) ret;
int i;
while ((i = rjfind(tok, "scope .")) >= 0) {
int j = jfind(tok, i+6, "end scope");
if (j < 0) j = l(tok)-1;
S scopeName = tok.get(i+2);
new HashSet names;
// first pass
for (int k = i+6; k < j-2; k += 2) {
S t = get(tok, k+2);
if (eqGet(tok, k, "#") && isIdentifier(t)) {
names.add(t);
replaceTokens(tok, k, k+3, scopeName + "_" + t);
}
}
// second pass
for (int k = i+6; k < j; k += 2) {
S t = get(tok, k);
if (isIdentifier(t) && names.contains(t))
if (eqGet(tok, k-2, ".")) {}
else if (eqGet(tok, k+2, "("))) {}
else if (eq(t, "lock") && isIdentifier(get(tok, k+2))) {}
else
tok.set(k, scopeName + "_" + t);
}
clearTokens(tok, i, i+5);
clearTokens(tok, j, j+3);
reTok(tok, i, j+1);
}
}