Skip to content

statementsanddeclarations

Tristan Hume edited this page Apr 23, 2012 · 3 revisions

#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
Clone this wiki locally