Code: Select all
TYPE FB_DEFTOK
TYPE AS FB_DEFTOK_TYPE
prev AS FB_DEFTOK PTR
NEXT AS FB_DEFTOK PTR
END TYPE
Is there a list of all allowed (or forbidden) keywords in an UDT (or parameter list)?
Code: Select all
TYPE FB_DEFTOK
TYPE AS FB_DEFTOK_TYPE
prev AS FB_DEFTOK PTR
NEXT AS FB_DEFTOK PTR
END TYPE
Code: Select all
type UDT
'dim as integer '' Parsed as DIM declaration, so the DIM is not the identifier
as integer dim '' but this works, DIM is the identifier
'' ditto... we can even have a field called "as"
as integer declare, static, as
'' works thanks to the parser doing a look-ahead and finding the AS,
'' indicating a field called "union" instead of a UNION block
union as integer
end type
dim x as UDT
print x.dim, x.declare, x.static, x.as, x.union
Code: Select all
TYPE unbeleavable
AS BYTE AS
BYTE AS BYTE
END TYPE