Go to the first, previous, next, last section, table of contents.

Options Controlling Pascal Dialect

In cases where the different Pascal dialects contradict, GNU Pascal complies to the ISO standard by default. However you can change this behavior using command-line options or associated compiler switches.

--nested-comments (*$N+*)
Enable { nested comments (* like this one *) in your } Pascal source. Without this option, comments may start with { and end with *). The compiler switch $N is equivalent to --nested-comments and allows local specifications. A cross reference to compiler switches is in preparation.
--char-escapes (*$E+*)
Enable C-style character escape sequences in strings.
--c-numbers (*$C+*)
Enable C-style octal and hexadecimal numbers: The decimal number 255 is equal to the hexadecimal number `16#FF' (Extended Pascal notation) or `$FF' (Borland Pascal notation) or `0xFF' (C notation--works only with this switch active) or the octal number `0177' (C notation--ditto).
--standard-pascal --extended-pascal --object-pascal --borland-pascal --pascal-sc
By default, GNU Pascal allows redefinition of keywords. Each of this switches causes GNU Pascal to forbid the redefinition of keywords of the specified standard. Furthermore, --borland-pascal implies --nested-comments (see above), and --pascal-sc implies --extended-syntax (see below).
--extended-syntax (*$X+*)
Enables "dangerous" features of GNU Pascal such as

Go to the first, previous, next, last section, table of contents.