statementsanddeclarations - Open-Turing-Project/TuringDocs GitHub Wiki

#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:

See also statement and declaration.

    (a) statement
    (b) declaration

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

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