typo in erl_scan.erl?

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Wed Jan 12 14:21:35 CET 2005


The function erl_scan:scan/6 (OTP R10B-2) seems to contain a typo.
Consider the first argument of the fourth clause below (line 221 in the source).

Surely it should be "<" ++ Cs ?!!!

/Uffe

%% Punctuation characters and operators, first recognise multiples.
%% Clauses are rouped by first character (a short with the same head has
%% to come after a longer).
%%
%% << <- <=
scan("<<"++Cs, Stack, Toks, Pos, State, Errors) ->
    scan(Cs, Stack, [{'<<',Pos}|Toks], Pos, State, Errors);
scan("<-"++Cs, Stack, Toks, Pos, State, Errors) ->
    scan(Cs, Stack, [{'<-',Pos}|Toks], Pos, State, Errors);
scan("<="++Cs, Stack, Toks, Pos, State, Errors) ->
    scan(Cs, Stack, [{'<=',Pos}|Toks], Pos, State, Errors);
scan("<"=Cs, Stack, Toks, Pos, State, Errors) ->
    more(Cs, Stack, Toks, Pos, State, Errors, fun scan/6);



More information about the erlang-bugs mailing list