MCPcopy Create free account
hub / github.com/Singular/Singular / IsToplevel

Function IsToplevel

ppcc/src/parser.cc:446–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446bool IsToplevel(Arr<int> *stack) {
447 if (stack->len() == 0) return true;
448 for (Int i = 0; i < stack->len(); i++) {
449 if (!stack->at(i)) return false;
450 }
451 return true;
452}
453
454TokenList *Transform(SourceFile *source) {
455 Parser *parser = new Parser(source);

Callers 1

TransformFunction · 0.85

Calls 2

lenMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected