Software Engineers Handbook/Language Dictionary/Pascal

From Wikibooks, open books for an open world
< Software Engineers Handbook
Jump to: navigation, search

Pascal[edit]

Here is the wikipedia page.

Type[edit]

Pascal is a full procedural programming language.

Execution Entry Point[edit]

Program Name (input, output) begin end.

General Syntax[edit]

a:=b;

Comments[edit]

(* this is
a comment 
*)

or

{
This is
a comment
}

Variable Declarations[edit]

Variables declarations are necessary:

var
i: integer ;
k: boolean;
d:Real;

Method Declaration/Implementation[edit]

<Describe how methods/functions/procedures are declared and implemented.>

Scope[edit]

<Describe how scope is defined.>

Conditional Statements[edit]

<Describe the conditional statements in text and present

code examples. 

(put a space in the front of the line to format as code)>

Looping Statements[edit]

<Describe looping statements in English and present code examples.>

Output Statements[edit]

<Describe how to output Hello world! including the new-line with or without a carriage return.> úΜÈŔŔŶ—

Error Handling/Recovery[edit]

<Describe error handling and recovery. Give examples as appropriate.>

Containers[edit]

<List containers or references to lists of containers available natively for this language. List ways to incorporate containers if they are not native to the language.>

Algorithms[edit]

<List algorithms or references to lists of algorithms available natively for this language. List ways to incorporate algorithms if they are not native to the language. Or, if not available, describe that.>

Garbage collection[edit]

<Describe whether the garbage collection is automatic or manual.>

Physical Structure[edit]

Tips[edit]

  • i have found it helpful when i switched from qbasic to pascal to just sit down and write 10 small or large programs for each of the most needed things in pascal example,*for loops,variable declaration,while loops*may be called something else*

Web References[edit]

<List additional references on the web. Please include for what level reader the references are appropriate. (beginner/intermediate/advanced)>

Books and Articles[edit]

<List additional books and articles that may be helpful. Please include for what level reader the references are appropriate. (beginner/intermediate/advanced)>