[erlang-patches] Scan "=<<" as something useful

Anthony Ramine n.oxyde@REDACTED
Mon Apr 29 14:45:10 CEST 2013


Hello Per,

It counts the number of < characters and scans a '=<' token if the number is odd; so that still works.

Regards,

-- 
Anthony Ramine

Le 29 avr. 2013 à 14:37, Per Hedeland a écrit :

> Anthony Ramine <n.oxyde@REDACTED> wrote:
>> 
>> If I read the documentation, I don't see anywhere where it is written that erl_scan is supposed to be greedy. Nor I see any syntax knowledge if we just say that erl_scan will avoid returning two consecutive comparison operators if it can. That is just knowledge that '=<' '<' makes no sense, and I can't think of any language where it does.
> 
> 1> A = <<17>>.   
> <<17>>
> 2> A=<<<42>>.   
> true
> 
> So will this useful:-) syntax break with the patch? (I haven't looked at
> it).
> 
> --Per Hedeland
> 




More information about the erlang-patches mailing list