File: ErrorMessages.ag

package info (click to toggle)
uuagc 0.9.56-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 5,764 kB
  • sloc: haskell: 84,340; makefile: 11
file content (148 lines) | stat: -rw-r--r-- 5,749 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
imports
{
import UU.Scanner.Position(Pos)
import Pretty
import CodeSyntax
import CommonTypes
}

TYPE Errors = [Error]

DATA Error  | ParserError     pos     : {Pos}
                              problem : {String}
                              action  : {String}

            | HsParseError    pos     : {Pos}
                              msg     : {String}

            | DupAlt          nt    : {NontermIdent}
                              con,occ1 : {ConstructorIdent}

            | DupSynonym      nt,occ1 : {NontermIdent}

            | DupSet          name,occ1 : {NontermIdent}

            | DupInhAttr      nt    : {NontermIdent}
                              attr,occ1 :{Identifier}

            | DupSynAttr      nt    : {NontermIdent}
                              attr,occ1 : {Identifier}

            | DupChild        nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              name,occ1 : {Identifier}

            | DupRule         nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              field : {Identifier}
                              attr,occ1 : {Identifier}

            | DupRuleName     nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              nm    : {Identifier}

            | DupSig          nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              attr  : {Identifier}

            | UndefNont       nt    : {NontermIdent}

            | UndefAlt        nt    : {NontermIdent}
                              con   : {ConstructorIdent}

            | UndefChild      nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              name  : {Identifier}

            | MissingRule     --pos : {Pos}
                              nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              field : {Identifier}
                              attr  : {Identifier}

            | MissingNamedRule  nt   : {NontermIdent}
                                con  : {Identifier}
                                name : {Identifier}

            | SuperfluousRule nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              field : {Identifier}
                              attr  : {Identifier}

--            | SuperfluousSig  nt    : {NontermIdent}
--                              con   : {ConstructorIdent}
--                              attr  : {Identifier}

            | UndefLocal      nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              var   : {Identifier}

            | ChildAsLocal    nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              var   : {Identifier}

            | UndefAttr       nt    : {NontermIdent}
                              con   : {ConstructorIdent}
                              field : {Identifier}
                              attr  : {Identifier}
                              isOut : {Bool}

            | Cyclic          nt    : {NontermIdent}
                              mbCon : {Maybe ConstructorIdent}
                              verts : {[String]}

            | CyclicSet       name:{Identifier}

            | CustomError     isWarning : {Bool}
                              pos   : {Pos}
                              mesg  : {PP_Doc}

            | LocalCirc       nt      : {NontermIdent}
                              con     : {ConstructorIdent}
                              attr    : {Identifier}
                              o_visit : {Bool}
                              path    : {[String]}

            | InstCirc        nt      : {NontermIdent}
                              con     : {ConstructorIdent}
                              attr    : {Identifier}
                              o_visit : {Bool}
                              path    : {[String]}

            | DirectCirc      nt      : {NontermIdent}
                              o_visit : {Bool}
                              cyclic  : {[((Identifier,Identifier),[String],[String])]}

            | InducedCirc     nt      : {NontermIdent}
                              cinter  : {CInterface}
                              cyclic  : {[((Identifier,Identifier),[String],[String])]}

            | MissingTypeSig  nt      : {NontermIdent}
                              con     : {ConstructorIdent}
                              attr    : {Identifier}

            | MissingInstSig  nt      : {NontermIdent}
                              con     : {ConstructorIdent}
                              attr    : {Identifier}

            | DupUnique       nt      : {NontermIdent}
                              con     : {ConstructorIdent}
                              attr    : {Identifier}

            | MissingUnique   nt      : {NontermIdent}
                              attr    : {Identifier}

            | MissingSyn      nt      : {NontermIdent}
                              attr    : {Identifier}

            | IncompatibleVisitKind
                              child   : {Identifier}
                              vis     : {VisitIdentifier}
                              from    : {VisitKind}
                              to      : {VisitKind}
            | IncompatibleRuleKind
                              rule    : {Identifier}
                              kind    : {VisitKind}
            | IncompatibleAttachKind
                              child   : {Identifier}
                              kind    : {VisitKind}