ni_nitdoc: added fast copy past utility to signatures.
[nit.git] / src / parser / parser_nodes.nit
index c58c66a..6fe5b6c 100644 (file)
@@ -42,6 +42,7 @@ end
 abstract class Token
        super ANode
        fun text: String is abstract
+       fun text=(text: String) is abstract
 
        redef fun to_s: String do
                return "'{text}'"
@@ -52,6 +53,7 @@ end
 abstract class Prod
        super ANode
        fun location=(l: Location) do _location = l
+       readable var _n_annotations: nullable AAnnotations = null
 end
 class TEol
        super Token
@@ -88,9 +90,6 @@ end
 class TKwenum
        super TokenKeyword
 end
-class TKwspecial
-       super TokenKeyword
-end
 class TKwend
        super TokenKeyword
 end
@@ -311,6 +310,9 @@ end
 class TBang
        super TokenOperator
 end
+class TAt
+       super Token
+end
 class TClassid
        super Token
        redef fun to_s
@@ -379,7 +381,6 @@ class TExternCodeSegment
 end
 class EOF
        super Token
-private init noinit do end
        redef fun to_s
        do
                return "end of file"
@@ -387,7 +388,12 @@ private init noinit do end
 end
 class AError
        super EOF
-private init noinit do end
+end
+class ALexerError
+       super AError
+end
+class AParserError
+       super AError
 end
 
 class AModule
@@ -475,6 +481,7 @@ end
 class AExternClasskind
        super AClasskind
     readable var _n_kwextern: TKwextern
+    readable var _n_kwclass: nullable TKwclass = null
 end
 class AFormaldef
        super Prod
@@ -483,8 +490,7 @@ class AFormaldef
 end
 class ASuperclass
        super Prod
-    readable var _n_kwspecial: nullable TKwspecial = null
-    readable var _n_kwsuper: nullable TKwsuper = null
+    readable var _n_kwsuper: TKwsuper
     readable var _n_type: AType
 end
 abstract class APropdef super Prod
@@ -1080,22 +1086,19 @@ class ACharExpr
 end
 abstract class AStringFormExpr
        super AExpr
+    readable var _n_string: Token
 end
 class AStringExpr
        super AStringFormExpr
-    readable var _n_string: TString
 end
 class AStartStringExpr
        super AStringFormExpr
-    readable var _n_string: TStartString
 end
 class AMidStringExpr
        super AStringFormExpr
-    readable var _n_string: TMidString
 end
 class AEndStringExpr
        super AStringFormExpr
-    readable var _n_string: TEndString
 end
 class ASuperstringExpr
        super AExpr
@@ -1211,6 +1214,57 @@ class ADoc
     readable var _n_comment: List[TComment] = new List[TComment]
 end
 
+class AAnnotations
+       super Prod
+       readable var _n_at: nullable TAt = null
+       readable var _n_opar: nullable TOpar = null
+       readable var _n_items: List[AAnnotation] = new List[AAnnotation]
+       readable var _n_cpar: nullable TCpar = null
+end
+class AAnnotation
+       super Prod
+       readable var _n_atid: AAtid
+       readable var _n_opar: nullable TOpar = null
+       readable var _n_args: List[AAtArg] = new List[AAtArg]
+       readable var _n_cpar: nullable TCpar = null
+end
+abstract class AAtArg
+       super Prod
+end
+class ATypeAtArg
+       super AAtArg
+       readable var _n_type: AType
+end
+class AExprAtArg
+       super AAtArg
+       readable var _n_expr: AExpr
+end
+class AAtAtArg
+       super AAtArg
+end
+abstract class AAtid
+       super Prod
+       readable var _n_id: Token
+end
+class AIdAtid
+       super AAtid
+end
+class AKwexternAtid
+       super AAtid
+end
+class AKwinternAtid
+       super AAtid
+end
+class AKwreadableAtid
+       super AAtid
+end
+class AKwwritableAtid
+       super AAtid
+end
+class AKwimportAtid
+       super AAtid
+end
+
 class Start
        super Prod
     readable var _n_base: nullable AModule