[m-rev.] for review: add <<u and >>u as operators

Zoltan Somogyi zoltan.somogyi at runbox.com
Sun Dec 4 22:14:23 AEDT 2022


This diff modifies all three variants of the lexer.
I have bootchecked this diff while using  the string_get_token_list
and linestr_get_token_list variants, but not the original get_token_list
variant, because its much different interface makes resetting
parse_module.m to use it much more painful. However, the change to it
is small and simple enough to be checked just by eye.

We will need to note this as a breaking change, because it
breaks code that expects e.g. "<<uu" to be parsed as the tokens
"<<" and "uu", since that string will now be parsed as "<<u" and "u".
However, I would prefer to write that diff to NEWS once this diff
has been bootstrapped, and <<u and >>u have been implemented
as shifts by unsigned amounts.

Does anyone know of any other part of the reference manual
that needs to be updated for these ops?

Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.uop
Type: application/octet-stream
Size: 637 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20221204/4bbc63cc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.uop
Type: application/octet-stream
Size: 4669 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20221204/4bbc63cc/attachment-0001.obj>


More information about the reviews mailing list