Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/pkg/anupq/tst/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 28.7.2025 mit Größe 1 kB image not shown  

Quelle  make_anupqeg   Sprache: C

 
#!/usr/bin/perl -w
$gap = "../../../bin/gap.sh";
print "Building GAP pre-script file\n";
system("$gap -A -x 80 < anupqeg.tsk > /dev/null");
print "GAP pre-script in anupqeg.tst-new\n";
open(IN, "<anupqeg.tst-new");
open(OUT, ">anupqeg.tst-new0");
$logto = 0;
print "Building GAP script file\n";
print OUT "LoadPackage( \"anupq\" );";
print OUT "LogTo(\"anupqeg.tst-new\");\n";
while (<IN>) {
  if (!$logto) {
    if (/LogTo/) {
      $logto = 1;
      next;
    } elsif (s/^gap> //) { 
      print OUT $_; 
    }
  } else {
    s/^#I  /#/;
    print OUT $_;
  }
}
print OUT "LogTo();\nquit;\n";
close OUT;
close IN;
print "GAP script in anupqeg.tst-new0\n";
print "Creating new anupqeg.tst file\n";
system("$gap -N -A -x 80 < anupqeg.tst-new0 > /dev/null");
open(IN, "<anupqeg.tst-new");
open(OUT, ">anupqeg.tst-new0");
$start = 0;
while (<IN>) {
  if (!$start) {
    if (/START/) {
      $start = 1;
    } else {
      s/^gap> //;
    }
    print OUT $_;
  } else {
    print OUT $_;
    last if (/STOP/);
  }
}
close OUT;
close IN;
print "Pre-result in anupqeg.tst-new\n";
print "Result in anupqeg.tst-new0\n";

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.