Grammar question. TypeSuffix - what is [ AssignExpression .. AssignExpression ] production for?
user1234
user1234 at 12.de
Fri Sep 6 10:24:24 UTC 2024
On Thursday, 5 September 2024 at 19:32:52 UTC, Nick Treleaven
wrote:
> On Thursday, 5 September 2024 at 14:22:56 UTC, Quirin Schroll
> wrote:
>> In fact, it was me who named it TypeSuffix; before, it was
>> BasicType2X
>
> Thanks!
>
>> StaticArray:
>> [ AssignExpression ]
>
> A type sequence can be indexed, so calling it StaticArray would
> be confusing.
>
That does not matter. What matters is how the construct is
initially parsed then in the specs you define "if the StaticArray
sub-type resolves to a sequence then ... ". But then you also
have to define types like exposed in
https://forum.dlang.org/post/kabzzfxlwgyzoidpxcbe@forum.dlang.org, i.e drop the suffix idea and in favor of the recursive descent style.
More information about the Digitalmars-d
mailing list