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

Function RunPreProcessor

ppcc/src/parser.cc:534–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534Str *RunPreProcessor(Str *filename, Str *filedata) {
535 SourceFile *source = ReadSource(filename, filedata);
536 TokenList *tokens = Transform(source);
537 Str *result = new Str();
538 for (Int i = 0; i < tokens->len(); i++) {
539 result->add(tokens->at(i).str);
540 }
541 return result;
542}

Callers 1

RunCPPFunction · 0.85

Calls 5

ReadSourceFunction · 0.85
TransformFunction · 0.85
lenMethod · 0.45
addMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected