Software Engineers Handbook/Language Dictionary/Pascal

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Pascal[edit | edit source]

Here is the wikipedia page.

Type[edit | edit source]

Pascal is a full procedural programming language.

Execution Entry Point[edit | edit source]

Program Name (input, output) begin end.

General Syntax[edit | edit source]

a:=b;

Comments[edit | edit source]

(* this is
a comment 
*)

or

{
This is
a comment
}

or

//This is a comment

Variable Declarations[edit | edit source]

Variables declarations are necessary:

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

Method Declaration/Implementation[edit | edit source]

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

Scope[edit | edit source]

<Describe how scope is defined.>

Conditional Statements[edit | edit source]

<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 | edit source]

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

Output Statements[edit | edit source]

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

Error Handling/Recovery[edit | edit source]

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

Containers[edit | edit source]

<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 | edit source]

<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 | edit source]

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

Physical Structure[edit | edit source]

Tips[edit | edit source]

  • 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 | edit source]

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

Books and Articles[edit | edit source]

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