diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-04 12:37:21 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-04 12:37:21 +0100 |
| commit | 4b831dbdddb92c4dbe32dc7b2a6a647febddf5dc (patch) | |
| tree | 09afd0b98df36a09865da325c7cf7d8efd644b60 /src/parser.hpp | |
| parent | a01d6dcea729fd39df306a3f9743a78fe9258cd7 (diff) | |
Try `try` and `or_else` built-in procedures with operators `try` and `try else`
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index ad2b8c260..b999640a1 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -370,6 +370,8 @@ AST_KIND(_ExprBegin, "", bool) \ }) \ AST_KIND(TypeCast, "type cast", struct { Token token; Ast *type, *expr; }) \ AST_KIND(AutoCast, "auto_cast", struct { Token token; Ast *expr; }) \ + AST_KIND(TryExpr, "try expression", struct { Token token; Ast *expr; }) \ + AST_KIND(TryElseExpr, "try else expression", struct { Token try_token; Ast *expr; Token else_token; Ast *else_expr; }) \ AST_KIND(InlineAsmExpr, "inline asm expression", struct { \ Token token; \ Token open, close; \ |