Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  postconffix   Sprache: PVS

 

#!/usr/bin/perl

# postconffix - add HTML paragraphs

# Basic operation:
#
# - Process input as text blocks separated by one or more empty
# (or all whitespace) lines.
#
# - Don't touch blocks that start with `<' in column zero.
#
# The only changes made are:
#
# - Put <p>..</p> around text blocks that start in column zero.
#
# - Put <pre>..</pre> around text blocks that start elsewhere.

#use Getopt::Std;

#$opt_h = undef;
#$opt_v = undef;
#getopts("hv");

#die "Usage: $0 [-hv]\n" if ($opt_h);

#push @ARGV, "/dev/null"; # XXX

while(<>) {

    # Pass through comments and blank linkes before a text block.
    if (/^(#|\s*$)/) {
 print;
 next;
    }

    # Gobble up the next text block.
    $block = "";
    do {
 $_ =~ s/\s+\n$/\n/;
 $block .= $_;
    } while(($_ = <>) && /\S/);

    # Don't touch a text block starting with < in column zero.
    if ($block =~ /^</) {
 print "$block\n";
    }

    # Meta block.
    elsif ($block =~ /^%/) {
 print "$block\n";
    }

    # Example block.
    elsif ($block =~ /^\S+\s=/) {
 print "<pre>\n$block</pre>\n\n";
    }

    # Pre-formatted block.
    elsif ($block =~ /^\s/) {
 print "<pre>\n$block</pre>\n\n";
    }

    # Paragraph block.
    elsif ($block =~ /^\S/) {
 print "<p>\n$block</p>\n\n";
    }

    # Can't happen.
    else {
 die "Unrecognized text block:\n$block";
    }
}

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-09-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1867298