Commit | Line | Data |
---|---|---|
34e49164 C |
1 | exception Error |
2 | ||
3 | type token = | |
4 | | Tvolatile of (Data.clt) | |
5 | | Tvoid of (Data.clt) | |
6 | | Tunsigned of (Data.clt) | |
7 | | Tunion of (Data.clt) | |
8 | | Ttypedef of (Data.clt) | |
9 | | Tstruct of (Data.clt) | |
10 | | Tstatic of (Data.clt) | |
11 | | Tsigned of (Data.clt) | |
12 | | Tshort of (Data.clt) | |
13 | | Tregister of (Data.clt) | |
14 | | Tlong of (Data.clt) | |
15 | | Tlist | |
16 | | Tint of (Data.clt) | |
17 | | Tinline of (Data.clt) | |
18 | | Tfloat of (Data.clt) | |
19 | | Textern of (Data.clt) | |
faf9a90c | 20 | | Tenum of (Data.clt) |
34e49164 C |
21 | | Tdouble of (Data.clt) |
22 | | Tconst of (Data.clt) | |
23 | | Tchar of (Data.clt) | |
24 | | Tauto of (Data.clt) | |
25 | | Tattr of (string * Data.clt) | |
26 | | TXor of (Data.clt) | |
27 | | TWords | |
28 | | TWhy0 | |
29 | | TWhy of (Data.clt) | |
30 | | TWhile of (Data.clt) | |
1be43e12 C |
31 | | TWhenTrue of (Data.clt) |
32 | | TWhenFalse of (Data.clt) | |
34e49164 | 33 | | TWhen of (Data.clt) |
951c7801 | 34 | | TVirtual |
34e49164 | 35 | | TUsing |
aba5c457 | 36 | | TUnderscore |
34e49164 C |
37 | | TTypedef |
38 | | TTypeId of (string * Data.clt) | |
39 | | TType | |
951c7801 C |
40 | | TTildeExclEq of (Data.clt) |
41 | | TTildeEq of (Data.clt) | |
34e49164 C |
42 | | TTilde of (Data.clt) |
43 | | TSwitch of (Data.clt) | |
5636bb2c | 44 | | TSub of (Data.clt) |
34e49164 C |
45 | | TString of (string * Data.clt) |
46 | | TStrict of (Data.clt) | |
47 | | TStatement | |
48 | | TSizeof of (Data.clt) | |
49 | | TShOp of (Ast_cocci.arithOp * Data.clt) | |
50 | | TScriptData of (string) | |
1be43e12 | 51 | | TScript |
34e49164 C |
52 | | TRuleName of (string) |
53 | | TRightIso | |
34e49164 C |
54 | | TReturn of (Data.clt) |
55 | | TPure | |
56 | | TPtrOp of (Data.clt) | |
57 | | TPtVirg of (Data.clt) | |
c3e37e97 | 58 | | TPragma of (Ast_cocci.added_string * Data.clt) |
34e49164 C |
59 | | TPosition |
60 | | TPosAny | |
61 | | TPlusFile of (string * Data.clt) | |
62 | | TPlus0 | |
63 | | TPlus of (Data.clt) | |
64 | | TPathIsoFile of (string) | |
65 | | TParameter | |
66 | | TPOEllipsis of (Data.clt) | |
67 | | TPCEllipsis of (Data.clt) | |
68 | | TPArob | |
69 | | TOrLog of (Data.clt) | |
70 | | TOr of (Data.clt) | |
71 | | TOn | |
72 | | TOPar0 of (Data.clt) | |
73 | | TOPar of (Data.clt) | |
1be43e12 | 74 | | TOInit of (Data.clt) |
34e49164 C |
75 | | TOEllipsis of (Data.clt) |
76 | | TOCro of (Data.clt) | |
77 | | TOBrace of (Data.clt) | |
78 | | TNothing | |
79 | | TNotEq of (Data.clt) | |
80 | | TNever | |
81 | | TName | |
82 | | TMul of (Data.clt) | |
83 | | TMinusFile of (string * Data.clt) | |
84 | | TMinus of (Data.clt) | |
85 | | TMid0 of (Data.clt) | |
86 | | TMetaType of (Parse_aux.info) | |
87 | | TMetaStmList of (Parse_aux.info) | |
88 | | TMetaStm of (Parse_aux.info) | |
89 | | TMetaPos of (Parse_aux.pos_info) | |
90 | | TMetaParamList of (Parse_aux.list_info) | |
91 | | TMetaParam of (Parse_aux.info) | |
951c7801 | 92 | | TMetaLocalIdExp of (Parse_aux.typed_expinfo) |
34e49164 C |
93 | | TMetaLocalFunc of (Parse_aux.idinfo) |
94 | | TMetaIterator of (Parse_aux.idinfo) | |
113803cf | 95 | | TMetaInit of (Parse_aux.info) |
951c7801 | 96 | | TMetaIdExp of (Parse_aux.typed_expinfo) |
34e49164 C |
97 | | TMetaId of (Parse_aux.idinfo) |
98 | | TMetaFunc of (Parse_aux.idinfo) | |
99 | | TMetaExpList of (Parse_aux.list_info) | |
951c7801 | 100 | | TMetaExp of (Parse_aux.typed_expinfo) |
34e49164 C |
101 | | TMetaErr of (Parse_aux.expinfo) |
102 | | TMetaDeclarer of (Parse_aux.idinfo) | |
951c7801 | 103 | | TMetaConst of (Parse_aux.typed_expinfo) |
34e49164 C |
104 | | TMPtVirg |
105 | | TLogOp of (Ast_cocci.logicalOp * Data.clt) | |
106 | | TLocal | |
107 | | TLineEnd of (Data.clt) | |
108 | | TIteratorId of (string * Data.clt) | |
109 | | TIterator | |
110 | | TIsoType | |
111 | | TIsoTopLevel | |
c3e37e97 | 112 | | TIsoToTestExpression |
34e49164 C |
113 | | TIsoTestExpression |
114 | | TIsoStatement | |
115 | | TIsoExpression | |
116 | | TIsoDeclaration | |
117 | | TIsoArgExpression | |
118 | | TIso | |
119 | | TInvalid | |
120 | | TInt of (string * Data.clt) | |
b1b2de81 | 121 | | TInitialize |
113803cf | 122 | | TInitialiser |
34e49164 C |
123 | | TIncludeNL of (string * Data.clt) |
124 | | TIncludeL of (string * Data.clt) | |
125 | | TInc of (Data.clt) | |
126 | | TIf of (Data.clt) | |
127 | | TIdentifier | |
128 | | TIdent of (string * Data.clt) | |
129 | | TIdExpression | |
130 | | TGoto of (Data.clt) | |
faf9a90c | 131 | | TGenerated |
34e49164 C |
132 | | TFunction |
133 | | TFunDecl of (Data.clt) | |
134 | | TFresh | |
135 | | TForall | |
136 | | TFor of (Data.clt) | |
137 | | TFloat of (string * Data.clt) | |
b1b2de81 | 138 | | TFinalize |
34e49164 C |
139 | | TExtends |
140 | | TExpression | |
141 | | TExists | |
142 | | TEver | |
143 | | TError | |
144 | | TEqEq of (Data.clt) | |
145 | | TEq of (Data.clt) | |
146 | | TElse of (Data.clt) | |
147 | | TEllipsis of (Data.clt) | |
148 | | TDotDot of (Data.clt) | |
149 | | TDot of (Data.clt) | |
150 | | TDo of (Data.clt) | |
151 | | TDmOp of (Ast_cocci.arithOp * Data.clt) | |
152 | | TDisable | |
153 | | TDepends | |
708f4980 | 154 | | TDefineParam of (Data.clt * token * int * int) |
34e49164 C |
155 | | TDefine of (Data.clt * token) |
156 | | TDefault of (Data.clt) | |
157 | | TDeclarerId of (string * Data.clt) | |
158 | | TDeclarer | |
159 | | TDec of (Data.clt) | |
978fd7e5 | 160 | | TCppConcatOp |
34e49164 C |
161 | | TContinue of (Data.clt) |
162 | | TContext | |
163 | | TConstant | |
164 | | TComma of (Data.clt) | |
165 | | TChar of (string * Data.clt) | |
166 | | TCase of (Data.clt) | |
167 | | TCPar0 of (Data.clt) | |
168 | | TCPar of (Data.clt) | |
169 | | TCEllipsis of (Data.clt) | |
170 | | TCCro of (Data.clt) | |
171 | | TCBrace of (Data.clt) | |
172 | | TBreak of (Data.clt) | |
173 | | TBang0 | |
174 | | TBang of (Data.clt) | |
175 | | TAssign of (Ast_cocci.assignOp * Data.clt) | |
176 | | TArobArob | |
177 | | TArob | |
178 | | TAny of (Data.clt) | |
179 | | TAndLog of (Data.clt) | |
180 | | TAnd of (Data.clt) | |
181 | | EOF | |
182 | ||
183 | ||
aba5c457 | 184 | val script_meta_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> ((string option (*string*) * string option (*ast*)) * Ast_cocci.meta_name * Ast_cocci.metavar) |
34e49164 C |
185 | val rule_name: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Ast_cocci.rulename) |
186 | val reinit: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (unit) | |
187 | val plus_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Ast0_cocci.rule) | |
188 | val plus_exp_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Ast0_cocci.rule) | |
189 | val never_used: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (unit) | |
190 | val minus_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Ast0_cocci.rule) | |
191 | val minus_exp_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Ast0_cocci.rule) | |
192 | val meta_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> ((Ast_cocci.metavar,Ast_cocci.metavar) Common.either list) | |
193 | val iso_rule_name: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Ast_cocci.rulename) | |
194 | val iso_meta_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> ((Ast_cocci.metavar,Ast_cocci.metavar) Common.either list) | |
195 | val iso_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Ast0_cocci.anything list list) | |
978fd7e5 | 196 | val include_main: (Lexing.lexbuf -> token) -> Lexing.lexbuf -> (Data.incl_iso list) |