nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Introducing the do ... catch ... end structure
[nit.git]
/
src
/
parser
/
parser_nodes.nit
diff --git
a/src/parser/parser_nodes.nit
b/src/parser/parser_nodes.nit
index
ba5b8f3
..
261694a
100644
(file)
--- a/
src/parser/parser_nodes.nit
+++ b/
src/parser/parser_nodes.nit
@@
-521,6
+521,11
@@
class TKwdo
super TokenKeyword
end
super TokenKeyword
end
+# The keyword `catch`
+class TKwcatch
+ super TokenKeyword
+end
+
# The keyword `var`
class TKwvar
super TokenKeyword
# The keyword `var`
class TKwvar
super TokenKeyword
@@
-1844,6
+1849,12
@@
class ADoExpr
# The list of statements of the `do`.
var n_block: nullable AExpr = null is writable
# The list of statements of the `do`.
var n_block: nullable AExpr = null is writable
+
+ # The `catch` keyword
+ var n_kwcatch: nullable TKwcatch = null is writable
+
+ # The do catch block
+ var n_catch: nullable AExpr = null is writable
end
# A `if` statement
end
# A `if` statement