syntax: add 'loop' construction
[nit.git] / src / parser / parser_abs.nit
index 0626354..e8ab67a 100644 (file)
@@ -107,6 +107,9 @@ end
 class TKwwhile
 special Token
 end
+class TKwloop
+special Token
+end
 class TKwfor
 special Token
 end
@@ -652,6 +655,12 @@ special AExpr
     readable writable var _n_block: nullable AExpr = null
     readable writable var _n_label: nullable ALabel = null
 end
+class ALoopExpr
+special AExpr
+    readable writable var _n_kwloop: TKwloop
+    readable writable var _n_block: nullable AExpr = null
+    readable writable var _n_label: nullable ALabel = null
+end
 class AForExpr
 special AExpr
     readable writable var _n_kwfor: TKwfor