segmentation fault

Adriaan van Os gpc at microbizz.nl
Tue Dec 21 19:18:33 CET 2004


> Frank Heckenbach wrote:
>
>> In the ISO Pascal Standard Report (Jensen, Wirth, third edition) I 
>> read
>> at the end of Section 5:
>>
>> 	Comment = { "{" | "(*" ) { CommentElement } ( "}" | "*)"  ) .
>>
>> 	A CommentElement is either an end of line or any sequence of
>> characters not containing "}" or "*)".
>> 	
>> 	Notes: { ...*) and (* ...} are valid comments. The comment {(*) is
>> equivalent to the comment {(}.
>>
>> This means that {{} is a valid comment, but {}} isn't, according to 
>> the
>> standard. Several other Pascal compilers, however, only allow (*.. { 
>> ..
>> } .. *) or { .. (* .. *) .. }. But, as Frank noted, you can use the
>> --nested-comments option in GPC to get similar behaviour.
>
> This would be `--no-mixed-comments' which is set (i.e. "no") by
> default, except in standard Pascal modes.

I see. Then --nested-comments --no-mixed-comments would be the ideal 
default for --mac-pascal.

Regards,

Adriaan van Os




More information about the Gpc mailing list