Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

A Scheme for Translating Control Flow in the C Programming Language to Grafacet with Examples

Published

Author(s)

Bruce Thomas

Abstract

The purpose of this paper is to show a translation scheme from control flow in the C programming language to the Grafcet language. Grafcet is a graphical language for expressing control flow. Grafcet is used to design paralleled systems such as in a manufacturing environment. The control constructs covered in this paper are: conditional statement, while, do, for, switch, break, continue, go to, label, and null. The Grafcet used in this paper is the language, as augmented by Savior. The C programming language is the one described by Kernighan and Ritchie. This translation is to be used as a reference for programmers to translate existing C source code into Grafcet.
Citation
NIST Interagency/Internal Report (NISTIR) - 3741
Report Number
3741

Keywords

c programming language, grafcet, design

Citation

Thomas, B. (1988), A Scheme for Translating Control Flow in the C Programming Language to Grafacet with Examples, NIST Interagency/Internal Report (NISTIR), National Institute of Standards and Technology, Gaithersburg, MD (Accessed February 28, 2024)
Created December 31, 1987, Updated October 12, 2021