typo in erl_scan.erl?
Raimo Niskanen
raimo@REDACTED
Wed Jan 12 14:42:23 CET 2005
Rats! I have already taken the time to elaborate an answer.
ulf.wiger@REDACTED (Ulf Wiger AL/EAB) writes:
> 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);
> >
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-bugs
mailing list