Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/solenv/bin/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 885 B image not shown  

Quelle  constructors.py   Sprache: Python

 
#!/usr/bin/env python3

# Call $0 <file with a list of component file paths>
# Dumps all the implementing constructors to stdout

import xml.sax
import sys

constructors = list()

class ComponentHandler(xml.sax.ContentHandler):
    def startElement(self, tag, attributes):
        if tag == "implementation" and "constructor" in attributes:
            constructors.append(attributes["constructor"])

if __name__ == "__main__":
    parser = xml.sax.make_parser()
    parser.setFeature(xml.sax.handler.feature_namespaces, 0)
    parser.setContentHandler(ComponentHandler())
    for filename in sys.argv[1:]:
        with open(filename, "r"as components_listfile:
            for line in components_listfile:
                for component_filename in line.strip().split():
                    parser.parse(component_filename)
    constructors.sort()
    print("\n".join(constructors))

Messung V0.5
C=91 H=97 G=93

¤ Dauer der Verarbeitung: 0.12 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.