Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Cobol/verschiedene-Autoren/Hoffmann/   (verschiedene Autoren Version 0.7©)  Datei vom 28.0.2009 mit Größe 831 B image not shown  

Quelle  fsm.cob   Sprache: Cobol

 

       identification division.
       program-id. fsm.
      * aus Dirk Hoffmann,
      * Software-Qualität
      * p340ff, Springer 2008
       author. "JD".
       date-written. 28.1.2009.
       date-compiled.
       data division.
       working-storage section.
        78 V-INITIAL value 0.
        78 V-EOF     value -1.
        77 state pic S9(4).
        77 acce  pic S9(4).
        77 c     pic S9(4).
        linkage section.
        77 r pic S9(4).
       procedure division returning r.
         move V-INITIAL to state.
         perform with test after until c= V-EOF
           move function next-character to c
           if c not = V-EOF then
             move function next-state(c, state) to acce
           end-if
         end-perform.
         move acce to r
        end program fsm.

Messung
CHZG
8810010096

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland