typo in erl_scan.erl?
Ulf Wiger (AL/EAB)
ulf.wiger@REDACTED
Wed Jan 12 14:25:59 CET 2005
Sorry, my bad. Not a bug Too much in a hurry.
/Uffe
> -----Original Message-----
> From: owner-erlang-bugs@REDACTED
> [mailto:owner-erlang-bugs@REDACTED]On Behalf Of Ulf Wiger (AL/EAB)
> Sent: den 12 januari 2005 14:22
> To: 'erlang-bugs@REDACTED'
> Subject: typo in erl_scan.erl?
>
>
>
> 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