Merge: ordered_tree: make OrderedTree implement Collection
[nit.git] / src / parser / parser_abs.nit
index 799820c..2b11acd 100644 (file)
@@ -67,6 +67,9 @@ end
 class TKwextern
        super Token
 end
+class TKwpublic
+       super Token
+end
 class TKwprotected
        super Token
 end
@@ -262,6 +265,9 @@ end
 class TNumber
        super Token
 end
+class THexNumber
+       super Token
+end
 class TFloat
        super Token
 end
@@ -315,14 +321,11 @@ class AAble super Prod end
 class AMethid super Prod end
 class ASignature super Prod end
 class AParam super Prod end
-class AClosureDecl super Prod end
 class AType super Prod end
 class ALabel super Prod end
 class AExpr super Prod end
 class AExprs super Prod end
 class AAssignOp super Prod end
-class AClosureDef super Prod end
-class AClosureId super Prod end
 class AModuleName super Prod end
 class AExternCalls super Prod end
 class AExternCall super Prod end
@@ -474,6 +477,15 @@ class AInternMethPropdef
     readable var _n_methid: AMethid
     readable var _n_signature: ASignature
 end
+class AInternNewPropdef
+       super APropdef
+    readable var _n_doc: nullable ADoc = null
+    readable var _n_kwredef: nullable TKwredef = null
+    readable var _n_visibility: AVisibility
+    readable var _n_kwnew: TKwnew
+    readable var _n_methid: nullable AMethid = null
+    readable var _n_signature: ASignature
+end
 class AExternMethPropdef
        super APropdef
     readable var _n_doc: nullable ADoc = null
@@ -628,7 +640,6 @@ class ASignature
     readable var _n_params: List[AParam] = new List[AParam]
     readable var _n_cpar: nullable TCpar = null
     readable var _n_type: nullable AType = null
-    readable var _n_closure_decls: List[AClosureDecl] = new List[AClosureDecl]
 end
 class AParam
        super AParam
@@ -637,14 +648,6 @@ class AParam
     readable var _n_dotdotdot: nullable TDotdotdot = null
     readable var _n_annotations: nullable AAnnotations = null
 end
-class AClosureDecl
-       super AClosureDecl
-    readable var _n_kwbreak: nullable TKwbreak = null
-    readable var _n_bang: TBang
-    readable var _n_id: TId
-    readable var _n_signature: ASignature
-    readable var _n_expr: nullable AExpr = null
-end
 class AType
        super AType
     readable var _n_kwnullable: nullable TKwnullable = null
@@ -788,11 +791,6 @@ class AEqExpr
     readable var _n_expr: AExpr
     readable var _n_expr2: AExpr
 end
-class AEeExpr
-       super AExpr
-    readable var _n_expr: AExpr
-    readable var _n_expr2: AExpr
-end
 class ANeExpr
        super AExpr
     readable var _n_expr: AExpr
@@ -899,7 +897,6 @@ class ACallExpr
     readable var _n_expr: AExpr
     readable var _n_id: TId
     readable var _n_args: AExprs
-    readable var _n_closure_defs: List[AClosureDef] = new List[AClosureDef]
 end
 class ACallAssignExpr
        super AExpr
@@ -933,7 +930,6 @@ class ABraExpr
        super AExpr
     readable var _n_expr: AExpr
     readable var _n_args: AExprs
-    readable var _n_closure_defs: List[AClosureDef] = new List[AClosureDef]
 end
 class ABraAssignExpr
        super AExpr
@@ -949,12 +945,6 @@ class ABraReassignExpr
     readable var _n_assign_op: AAssignOp
     readable var _n_value: AExpr
 end
-class AClosureCallExpr
-       super AExpr
-    readable var _n_id: TId
-    readable var _n_args: AExprs
-    readable var _n_closure_defs: List[AClosureDef] = new List[AClosureDef]
-end
 class AVarExpr
        super AExpr
     readable var _n_id: TId
@@ -1021,11 +1011,16 @@ class ANullExpr
     readable var _n_kwnull: TKwnull
     readable var _n_annotations: nullable AAnnotations = null
 end
-class AIntExpr
+class ADecIntExpr
        super AExpr
     readable var _n_number: TNumber
     readable var _n_annotations: nullable AAnnotations = null
 end
+class AHexIntExpr
+       super AExpr
+    readable var _n_hex_number: THexNumber
+    readable var _n_annotations: nullable AAnnotations = null
+end
 class AFloatExpr
        super AExpr
     readable var _n_float: TFloat
@@ -1069,18 +1064,18 @@ class AAsCastExpr
        super AExpr
     readable var _n_expr: AExpr
     readable var _n_kwas: TKwas
-    readable var _n_opar: TOpar
+    readable var _n_opar: nullable TOpar = null
     readable var _n_type: AType
-    readable var _n_cpar: TCpar
+    readable var _n_cpar: nullable TCpar = null
 end
 class AAsNotnullExpr
        super AExpr
     readable var _n_expr: AExpr
     readable var _n_kwas: TKwas
-    readable var _n_opar: TOpar
+    readable var _n_opar: nullable TOpar = null
     readable var _n_kwnot: TKwnot
     readable var _n_kwnull: TKwnull
-    readable var _n_cpar: TCpar
+    readable var _n_cpar: nullable TCpar = null
 end
 class AIssetAttrExpr
        super AExpr
@@ -1119,23 +1114,6 @@ class AMinusAssignOp
        super AAssignOp
     readable var _n_minuseq: TMinuseq
 end
-class AClosureDef
-       super AClosureDef
-    readable var _n_bang: TBang
-    readable var _n_id: AClosureId
-    readable var _n_ids: List[TId] = new List[TId]
-    readable var _n_kwdo: nullable TKwdo = null
-    readable var _n_expr: nullable AExpr = null
-    readable var _n_label: nullable ALabel = null
-end
-class ASimpleClosureId
-       super AClosureId
-    readable var _n_id: TId
-end
-class ABreakClosureId
-       super AClosureId
-    readable var _n_kwbreak: TKwbreak
-end
 class AModuleName
        super AModuleName
     readable var _n_quad: nullable TQuad = null
@@ -1160,17 +1138,18 @@ class ALocalPropExternCall
 end
 class AFullPropExternCall
        super AExternCall
-    readable var _n_classid: TClassid
-    readable var _n_quad: nullable TQuad = null
+    readable var _n_type: AType
+    readable var _n_dot: nullable TDot = null
     readable var _n_methid: AMethid
 end
 class AInitPropExternCall
        super AExternCall
-    readable var _n_classid: TClassid
+    readable var _n_type: AType
 end
 class ACastAsExternCall
        super AExternCall
     readable var _n_from_type: AType
+    readable var _n_dot: nullable TDot = null
     readable var _n_kwas: TKwas
     readable var _n_to_type: AType
 end