[fpc-pascal] FPC reference manual.
Pascal
sur.pignard at wanadoo.fr
Sun Sep 27 21:28:03 CEST 2009
Hello Michael.
I really don't want to be too much annoying but you could believe it ;-)
I'm updating Pascal to Ada translator (http://sourceforge.net/
projects/p2ada/) to a more modern Pascal syntax as FPC is.
As I'm coding the grammar based on FPC, I'm asking some questions
regarding FPC language reference manual.
- 1.1 Symbols
Semicolon and apostrophe are missing as single specific characters.
.. <> ** are missing as specific pair characters.
What about @@ defined in TP 7.0 manual?
- 1.3.1 Turbo Pascal reserved words
absolute is also in 1.3.4 Modifiers, not a keyword?
on, operator, reintroduce, self are not TP 7.0 keywords, may be
Delphi or FPC?
- 1.3.2 Delphi reserved words
packed is already defined in 1.3.1
- 3.1.1 Ordinal types
There is no chart for ordinal type, maybe:
ordinal type : ordinal type identifier | enumerated type | subrange type
- 3.3 Structured Types
packed is defined for all structured type in TP 7.0, isn't it the
case for set type and file type in FPC?
- 3.4 Pointers
Is string keyword allowed in identifier?
- 3.3.2 Record types
in variant char, the comma may be inside the loop?
- 3.6 Procedural types
What is the purpose of "of object"?
What is definition of result type? Is it only identifier? Is keyword
string accepted?
- 4.2 Variable Declaration
May "identifier list" be more suitable than identifier alone?
hintdirective is already included in variable modifiers.
- 5.4 Constructors and destructors
Should constructor and destructor declaration end by semicolon.
- 5.5.1 Methods Declaration
In TP manual virtual may be followed by integer constant. Is it
supported by FPC?
- 8.3 Generic class specialization
Is string keyword allowed in identifier list?
- 9.1 Expression syntax
Should first * be replaced by <.
- 9.4 Value typecasts
Is string keyword allowed in identifier?
- 9.7 The @ operator
Is @@ operator allowed as in TP7.0?
- 10 Statements
Is inline directive allowed as in TP7.0?
- 10.2.8 Exception Statements
Does "exception statement" stand for try except statement or try
finally statement?
- 10.2.2 The Case statement
Should "statement list" be replaced by statement alone in else part?
- 10.2.7 The With statement
with keyword should be added to chart.
- 11.1 Procedure declaration
Is inline directive allowed in subroutine block as in TP7.0?
- 11.4 Parameter lists
Shouldn't "formal parameter list" have an empty possibility?
In parameters, is string keyword allowed in type identifier?
- 11.9 Modifiers
Should near and far be allowed even not used?
- 13 Programs, units, blocks
Shouldn't pascal source code define as either program, unit or library?
HTH, Thanks for your clarifications, Pascal.
http://blady.pagesperso-orange.fr
Le 14 sept. 09 à 12:00, fpc-pascal-request at lists.freepascal.org a
écrit :
> From: Michael Van Canneyt <michael at freepascal.org>
> Subject: Re: [fpc-pascal] FPC reference manual.
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <alpine.DEB.2.00.0909140733200.4427 at localhost.localdomain>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>
>
> On Sun, 13 Sep 2009, Pascal wrote:
>
>> Hello Michael.
>>
>> I've some more questions about modifiers and keywords :
>>
>> OTHERWISE
>> GENERIC
>> STORED
>> IMPLEMENTS
>> MESSAGE
>> STATIC
>> BITPACKED
>> SPECIALIZE
>> => are they keywords ?
>> They missing in keyword lists.
>
> That's because they are not keywords.
>
>> In which list TP ? Delphi ? FPC ?
>>
>> OVERLOAD
>> SAVEREGISTERS
>> SOFTLOAD
>> VARARGS
>> INTERRUPT
>> NODEFAULT
>> CVAR
>> RESSOURCESTRING
>> DEPRECATED
>> EXPERIMENTAL
>> PLATFORM
>> UNIMPLEMENTED
>> => are they modifiers ?
>> They missing in modifier lists.
>
> I will add them.
>
> Michael.
>
More information about the fpc-pascal
mailing list