[Cuis-dev] [QUESTION] Weird Chain Expressions
Gerald Klix
cuis.01 at klix.ch
Thu Sep 12 14:05:07 PDT 2024
Sorry forgot to copy the closing „]“
[ :
arg | arg ] value: 1 ]
On 9/12/24 10:58 PM, Gerald Klix via Cuis-dev wrote:
> Thanks and sorry for my dysgrammatical English.
>
> While I am at it, this is also a feature/bug that puzzles me sometimes:
>
>
> [ :
>
> arg | arg ] value: 1
>
>
> Shout and the scanner/parser accept it,
> but I am not sure, if this should be the acceptable.
>
>
> Best Regards,
>
> Gerald
>
>
>
> On 9/12/24 8:57 PM, Juan Vuletich via Cuis-dev wrote:
>> On 9/12/2024 10:42 AM, Gerald Klix via Cuis-dev wrote:
>>> Hi all, hi Juan,
>>>
>>>
>>> While this expression
>>>
>>> 49 take: 6 : : printStringBase: 36
>>>
>>> is highlighted by shout as ungrammatical,
>>> but it is accepted by the scanner/parser.
>>> Am I right, that it was just easier to implement this way?
>>> I presume the scanner lacks the notion of a double-colon symbol.
>>> (I stumbled over this by (mis)using the scanner for other stuff).
>>>
>>>
>>> Best Regards,
>>>
>>> Gerald
>>
>> I just pushed a fix to make this throw an error in evaluation. The
>> chain operator should be '::', no inner whitespace allowed.
>>
>> Thanks for reporting!
>>
>
More information about the Cuis-dev
mailing list