statementsAndDeclarations

OpenTuring

statementsAndDeclarations

Syntax   StatementsAndDeclarations are:

 { statementOrDeclaration }

Description   StatementsAndDeclarations are a list of statements and declarations. For example, a Turing program consists of a list of statements and declarations. The body of a procedure is a list of statements and declarations.

Each statementOrDeclaration is one of:

        (a) statement
        (b) declaration
See also statement and declaration.

Example   This list of statements and declarations is a Turing program that outputs Hello Frank.

        var name : string
        name := "Frank"
        put "Hello ", name