Erlang/OTP Forums

Author Message

<  Erlang bugs mailing list  ~  erl_syntax

mbj at nortelnetworks.com
Posted: Tue Oct 26, 2004 8:53 pm Reply with quote
Guest
Hi,

erl_syntax in R10B is not erl_parse compatible for 'try' expressions.

erl_syntax thinks a 'try' is {'try', Pos, Body, Claues, Handlers}, but
in erl_parse try is {'try', Pos, Body, Clause, Handlers, AfterExprs}
(see erl_parse.yrl:build_try)

Also, within erl_syntax.erl itself, the Body in the 'try' expression
is sometimes [synatx_tree()] and sometimes just syntax_tree(), which
makes it crash.

This makes distel:who_calls fail.

I've patched my local erl_syntax.erl to handle this, but that fix is
extremely ad-hoc.


/martin


Post generated using Mail2Forum (http://m2f.sourceforge.net)
richardc at csd.uu.se
Posted: Tue Oct 26, 2004 9:03 pm Reply with quote
Guest
Martin Bjorklund wrote:

> erl_syntax in R10B is not erl_parse compatible for 'try' expressions.
>
> erl_syntax thinks a 'try' is {'try', Pos, Body, Claues, Handlers}, but
> in erl_parse try is {'try', Pos, Body, Clause, Handlers, AfterExprs}
> (see erl_parse.yrl:build_try)
>
> Also, within erl_syntax.erl itself, the Body in the 'try' expression
> is sometimes [synatx_tree()] and sometimes just syntax_tree(), which
> makes it crash.

Thanks for the details. I know I haven't had time to update the
syntax tools for R10. I hope it will be done at least until R10-2.
(Right now I'm working on exception handling in HiPE for R10-1.)

/Richard


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum