touque.ca > Education Commons > Programming: Concepts > Overview > Data & datatypes

Concepts

Overview

  1. As part of our development cycle, source code is written, compiled, and then executed. The Turing Integrated Development Environment provides three major components so that you can develop your source code: an editor, a compiler, and an executor.
  2. Every high-level language is composed of keywords. These words are built-in parts of the language.
  3. Words which are created by programmers are called identifiers. Turing identifiers may be any length. They must start with a letter, and may be composed of any number of letters, digits, and underscores. No other characters (not hyphens, not blank spaces) may be used.
  4. The percentage sign (%)indicates the start of a comment. The computer will always ignore everything which appears after the percentage sign. Comments are written for the benefit of the programmer. They are never seen by the user of the program.
  5. Virtually every Turing statement begins with a verb, followed by zero or more objects. Objects are separated by commas. For example:

    % 0 objects:
    cls

    % 1 object:
    put "Hello, world!"

    % 2 objects:
    get highTemperature, lowTemperature

touque.ca > Education Commons > Programming: Concepts > Overview > Data & datatypes