Closed yoshihiro503 closed 5 years ago
Fix https://github.com/dwango/fialyzer/issues/223 This is a simple implementation of try expression and does not support catch clauses.
try expression
catch clauses
Ast.t
For the full support of try expression, implements about catch clauses : https://github.com/dwango/fialyzer/issues/252.
try
try <exprs> catch <catch-clauses> end.
↓
[<exprs>]
of
try <exprs> of <case-clauses> catch <catch-clauses> end.
Case(line, [<exprs>], [<case-clauses>])
after
try <exprs> catch <catch-clauses> after <after> end.
Let(line, "_", [<exprs>], [<after>])
Fix https://github.com/dwango/fialyzer/issues/223 This is a simple implementation of
try expression
and does not supportcatch clauses
.Ast.t
catch clauses
are ignoredtry expression
to a case expression or a more simple expressionsFor the full support of
try
expression, implements aboutcatch clauses
: https://github.com/dwango/fialyzer/issues/252.simple try expressions
↓
try expressions with pattern clauses (with an
of
section)↓
try expressions with an
after
section↓