summaryrefslogtreecommitdiff
path: root/src/parse_ast.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-08-15 13:50:21 +0100
committerAlasdair Armstrong2017-08-15 13:50:21 +0100
commit609a48d32a316fc2cb0578ebe84bc479c729cc66 (patch)
tree97ca05d4097be6ea4711ff03679109c8ad49c04c /src/parse_ast.ml
parentf05423c1947df0432362172ba9cfd00c4b8680c0 (diff)
Added exceptions and try/catch blocks to AST and typechecker in order
to translate exceptions in ASL. See test/typecheck/pass/trycatch.sail.
Diffstat (limited to 'src/parse_ast.ml')
-rw-r--r--src/parse_ast.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse_ast.ml b/src/parse_ast.ml
index 8ce5e77d..54feaf29 100644
--- a/src/parse_ast.ml
+++ b/src/parse_ast.ml
@@ -283,6 +283,8 @@ exp_aux = (* Expression *)
| E_sizeof of atyp
| E_constraint of n_constraint
| E_exit of exp
+ | E_throw of exp
+ | E_try of exp * pexp list
| E_return of exp
| E_assert of exp * exp