[fpc-pascal] string-type

Adriaan van Os adriaan at adriaan.biz
Wed Dec 20 18:25:23 CET 2023


Section 3.2.4 of the FreePascal Language Reference defines <string-type>

	string-type = "STRING" [ "[" unsigned-integer "]" ] | "TYPE" ( "STRING" | "ansistring" ) "(" 
unsigned-integer ")" .

Ansistring is shown in the syntax diagram in boldface and thus as a keyword. But it is not listed 
as either a modifier or a reserved word in section 1.3. I suggest instead to define <ansistring> as 
a type-identifier.

	string-type = "STRING" [ "[" unsigned-integer "]" ] | "TYPE" ( "STRING" | ansistring ) "(" 
unsigned-integer ")" .
	ansistring = type-identifier .

Regards,

Adriaan van Os






More information about the fpc-pascal mailing list