Next:
List of Tables
Up:
Free Pascal : Reference
Previous:
Free Pascal : Reference
Contents
Contents
List of Tables
About this guide
Notations
Syntax diagrams
1
The Pascal language
1
. Pascal Tokens
1
.
1
Symbols
1
.
2
Comments
1
.
3
Reserved words
1
.
3
.
1
Turbo Pascal reserved words
1
.
3
.
2
Delphi reserved words
1
.
3
.
3
Free Pascal reserved words
1
.
3
.
4
Modifiers
1
.
4
Identifiers
1
.
5
Numbers
1
.
6
Labels
1
.
7
Character strings
2
. Constants
2
.
1
Ordinary constants
2
.
2
Typed constants
2
.
3
Resource strings
3
. Types
3
.
1
Base types
3
.
1
.
1
Ordinal types
3
.
1
.
2
Real types
3
.
2
Character types
3
.
2
.
1
Char
3
.
2
.
2
Strings
3
.
2
.
3
Short strings
3
.
2
.
4
Ansistrings
3
.
2
.
5
Constant strings
3
.
2
.
6
PChar
3
.
3
Structured Types
3
.
3
.
1
Arrays
3
.
3
.
2
Record types
3
.
3
.
3
Set types
3
.
3
.
4
File types
3
.
4
Pointers
3
.
5
Procedural types
4
. Objects
4
.
1
Declaration
4
.
2
Fields
4
.
3
Constructors and destructors
4
.
4
Methods
4
.
5
Method invocation
4
.
6
Visibility
5
. Classes
5
.
1
Class definitions
5
.
2
Class instantiation
5
.
3
Methods
5
.
3
.
1
invocation
5
.
3
.
2
Virtual methods
5
.
3
.
3
Message methods
5
.
4
Properties
6
. Expressions
6
.
1
Expression syntax
6
.
2
Function calls
6
.
3
Set constructors
6
.
4
Value typecasts
6
.
5
The @ operator
6
.
6
Operators
6
.
6
.
1
Arithmetic operators
6
.
6
.
2
Logical operators
6
.
6
.
3
Boolean operators
6
.
6
.
4
String operators
6
.
6
.
5
Set operators
6
.
6
.
6
Relational operators
7
. Statements
7
.
1
Simple statements
7
.
1
.
1
Assignments
7
.
1
.
2
Procedure statements
7
.
1
.
3
Goto statements
7
.
2
Structured statements
7
.
2
.
1
Compound statements
7
.
2
.
2
The
Case
statement
7
.
2
.
3
The
If..then..else
statement
7
.
2
.
4
The
For..to/downto..do
statement
7
.
2
.
5
The
Repeat..until
statement
7
.
2
.
6
The
While..do
statement
7
.
2
.
7
The
With
statement
7
.
2
.
8
Exception Statements
7
.
3
Assembler statements
8
. Using functions and procedures
8
.
1
Procedure declaration
8
.
2
Function declaration
8
.
3
Parameter lists
8
.
3
.
1
Value parameters
8
.
3
.
2
Variable parameters
8
.
3
.
3
Constant parameters
8
.
3
.
4
Open array parameters
8
.
3
.
5
Array of const
8
.
4
Function overloading
8
.
5
Forward defined functions
8
.
6
External functions
8
.
7
Assembler functions
8
.
8
Modifiers
8
.
8
.
1
Public
8
.
8
.
2
cdecl
8
.
8
.
3
popstack
8
.
8
.
4
Export
8
.
8
.
5
StdCall
8
.
8
.
6
saveregisters
8
.
8
.
7
Alias
8
.
9
Unsupported Turbo Pascal modifiers
9
. Operator overloading
9
.
1
Introduction
9
.
2
Operator declarations
9
.
3
Assignment operators
9
.
4
Arithmetic operators
9
.
5
Comparision operator
10
. Programs, units, blocks
10
.
1
Programs
10
.
2
Units
10
.
3
Blocks
10
.
4
Scope
10
.
4
.
1
Block scope
10
.
4
.
2
Record scope
10
.
4
.
3
Class scope
10
.
4
.
4
Unit scope
10
.
5
Libraries
11
. Exceptions
11
.
1
The raise statement
11
.
2
The try...except statement
11
.
3
The try...finally statement
11
.
4
Exception handling nesting
11
.
5
Exception classes
12
. Using assembler
12
.
1
Assembler statements
12
.
2
Assembler procedures and functions
2
Reference : The System unit
13
. The system unit
13
.
1
Types, Constants and Variables
13
.
1
.
1
Types
13
.
1
.
2
Constants
13
.
1
.
3
Variables
13
.
2
Function list by category
13
.
2
.
1
File handling
13
.
2
.
2
Memory management
13
.
2
.
3
Mathematical routines
13
.
2
.
4
String handling
13
.
2
.
5
Operating System functions
13
.
2
.
6
Miscellaneous functions
13
.
3
Functions and Procedures
13
.
3
.
1
Abs
13
.
3
.
2
Addr
13
.
3
.
3
Append
13
.
3
.
4
Arctan
13
.
3
.
5
Assign
13
.
3
.
6
Assigned
13
.
3
.
7
BinStr
13
.
3
.
8
Blockread
13
.
3
.
9
Blockwrite
13
.
3
.
10
Break
13
.
3
.
11
Chdir
13
.
3
.
12
Chr
13
.
3
.
13
Close
13
.
3
.
14
CompareByte
13
.
3
.
15
CompareChar
13
.
3
.
16
CompareDWord
13
.
3
.
17
CompareWord
13
.
3
.
18
Concat
13
.
3
.
19
Continue
13
.
3
.
20
Copy
13
.
3
.
21
Cos
13
.
3
.
22
CSeg
13
.
3
.
23
Dec
13
.
3
.
24
Delete
13
.
3
.
25
Dispose
13
.
3
.
26
DSeg
13
.
3
.
27
Eof
13
.
3
.
28
Eoln
13
.
3
.
29
Erase
13
.
3
.
30
Exit
13
.
3
.
31
Exp
13
.
3
.
32
Filepos
13
.
3
.
33
Filesize
13
.
3
.
34
FillByte
13
.
3
.
35
Fillchar
13
.
3
.
36
FillDWord
13
.
3
.
37
Fillword
13
.
3
.
38
Flush
13
.
3
.
39
Frac
13
.
3
.
40
Freemem
13
.
3
.
41
Getdir
13
.
3
.
42
Getmem
13
.
3
.
43
GetMemoryManager
13
.
3
.
44
Halt
13
.
3
.
45
HexStr
13
.
3
.
46
Hi
13
.
3
.
47
High
13
.
3
.
48
Inc
13
.
3
.
49
IndexByte
13
.
3
.
50
IndexChar
13
.
3
.
51
IndexDWord
13
.
3
.
52
IndexWord
13
.
3
.
53
Insert
13
.
3
.
54
IsMemoryManagerSet
13
.
3
.
55
Int
13
.
3
.
56
IOresult
13
.
3
.
57
Length
13
.
3
.
58
Ln
13
.
3
.
59
Lo
13
.
3
.
60
LongJmp
13
.
3
.
61
Low
13
.
3
.
62
Lowercase
13
.
3
.
63
Mark
13
.
3
.
64
Maxavail
13
.
3
.
65
Memavail
13
.
3
.
66
Mkdir
13
.
3
.
67
Move
13
.
3
.
68
MoveChar0
13
.
3
.
69
New
13
.
3
.
70
Odd
13
.
3
.
71
Ofs
13
.
3
.
72
Ord
13
.
3
.
73
Paramcount
13
.
3
.
74
Paramstr
13
.
3
.
75
Pi
13
.
3
.
76
Pos
13
.
3
.
77
Power
13
.
3
.
78
Pred
13
.
3
.
79
Ptr
13
.
3
.
80
Random
13
.
3
.
81
Randomize
13
.
3
.
82
Read
13
.
3
.
83
Readln
13
.
3
.
84
Release
13
.
3
.
85
Rename
13
.
3
.
86
Reset
13
.
3
.
87
Rewrite
13
.
3
.
88
Rmdir
13
.
3
.
89
Round
13
.
3
.
90
Runerror
13
.
3
.
91
Seek
13
.
3
.
92
SeekEof
13
.
3
.
93
SeekEoln
13
.
3
.
94
Seg
13
.
3
.
95
SetMemoryManager
13
.
3
.
96
SetJmp
13
.
3
.
97
SetLength
13
.
3
.
98
SetTextBuf
13
.
3
.
99
Sin
13
.
3
.
100
SizeOf
13
.
3
.
101
Sptr
13
.
3
.
102
Sqr
13
.
3
.
103
Sqrt
13
.
3
.
104
SSeg
13
.
3
.
105
Str
13
.
3
.
106
StringOfChar
13
.
3
.
107
Succ
13
.
3
.
108
Swap
13
.
3
.
109
Trunc
13
.
3
.
110
Truncate
13
.
3
.
111
Upcase
13
.
3
.
112
Val
13
.
3
.
113
Write
13
.
3
.
114
WriteLn
14
. The OBJPAS unit
14
.
1
Types
14
.
2
Functions and Procedures
14
.
2
.
1
AssignFile
14
.
2
.
2
CloseFile
14
.
2
.
3
Freemem
14
.
2
.
4
Getmem
14
.
2
.
5
GetResourceStringCurrentValue
14
.
2
.
6
GetResourceStringDefaultValue
14
.
2
.
7
GetResourceStringHash
14
.
2
.
8
GetResourceStringName
14
.
2
.
9
Hash
14
.
2
.
10
Paramstr
14
.
2
.
11
ResetResourceTables
14
.
2
.
12
ResourceStringCount
14
.
2
.
13
ResourceStringTableCount
14
.
2
.
14
SetResourceStrings
14
.
2
.
15
SetResourceStringValue
Index
root
2000-12-20