File tree Expand file tree Collapse file tree 1 file changed +96
-29
lines changed
source/src/BNFC/Backend/Swift Expand file tree Collapse file tree 1 file changed +96
-29
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,11 @@ taken = []
183183
184184builtIn :: [String ]
185185builtIn = [ " Int"
186+ , " Int8"
187+ , " Int16"
188+ , " Int32"
189+ , " Int64"
190+ , " Int128"
186191 , " Double"
187192 , " Float"
188193 , " String"
@@ -191,76 +196,138 @@ builtIn = [ "Int"
191196 , " Void"
192197 , " Dictionary"
193198 , " Optional"
194- , " Any" ]
199+ , " Any"
200+ , " Void"
201+ , " Copyable"
202+ , " ~Copyable"
203+ , " Equitable"
204+ , " Codable"
205+ , " AnyClass"
206+ , " Error"
207+ , " AnyObject"
208+ , " CodingKey"
209+ , " Substring"
210+ , " Hashable"
211+ ]
195212
196213keywords :: [String ]
197- keywords = [ " abstract "
214+ keywords = [ " some "
198215 , " as"
199216 , " assert"
200217 , " async"
201218 , " await"
202- , " base"
203219 , " break"
204220 , " case"
205221 , " catch"
206222 , " class"
207- , " const"
223+ , " struct"
224+ , " actor"
225+ , " var"
226+ , " let"
208227 , " continue"
209- , " covariant"
210228 , " default"
211- , " deferred "
229+ , " defer "
212230 , " do"
213231 , " dynamic"
214232 , " else"
215233 , " enum"
216- , " export"
217- , " extends"
234+ , " extend"
218235 , " extension"
219- , " external"
220- , " factory"
221236 , " false"
222237 , " final"
223238 , " finally"
224239 , " for"
225- , " Function"
226240 , " get"
227- , " hide "
241+ , " set "
228242 , " if"
229- , " implements "
243+ , " where "
230244 , " import"
231245 , " in"
232- , " interface "
246+ , " protocol "
233247 , " is"
234- , " late"
235- , " library"
236- , " mixin"
237- , " new"
238- , " null"
239- , " of"
240- , " on"
241- , " operator"
242- , " part"
243- , " required"
244- , " rethrow"
248+ , " nil"
249+ , " rethrows"
245250 , " return"
246251 , " set"
247252 , " show"
248253 , " static"
249254 , " super"
250255 , " switch"
251256 , " sync"
252- , " this"
257+ , " self"
258+ , " Self"
259+ , " super"
253260 , " throw"
261+ , " throws"
254262 , " true"
255263 , " try"
256264 , " type"
257265 , " typealias"
258- , " var"
259- , " void"
260266 , " when"
261267 , " with"
262268 , " while"
263- , " yield" ]
269+ , " yield"
270+ , " fallthrough"
271+ , " for"
272+ , " guard"
273+ , " repeat"
274+ , " associativity"
275+ , " convenience"
276+ , " didSet"
277+ , " willSet"
278+ , " indirect"
279+ , " infix"
280+ , " lazy"
281+ , " left"
282+ , " mutating"
283+ , " none"
284+ , " nonmutating"
285+ , " optional"
286+ , " override"
287+ , " postfix"
288+ , " precedence"
289+ , " prefix"
290+ , " Protocol"
291+ , " required"
292+ , " right"
293+ , " Type"
294+ , " unowned"
295+ , " weak"
296+ , " #available"
297+ , " #colorLiteral"
298+ , " #column"
299+ , " #dsohandle"
300+ , " #elseif"
301+ , " #else"
302+ , " #endif"
303+ , " #error"
304+ , " #fileID"
305+ , " #fileLiteral"
306+ , " #filePath"
307+ , " #file"
308+ , " #function"
309+ , " #if"
310+ , " #imageLiteral"
311+ , " #keyPath"
312+ , " #line"
313+ , " #selector"
314+ , " #sourceLocation"
315+ , " #warning"
316+ , " precedencegroup"
317+ , " operator"
318+ , " init"
319+ , " deinit"
320+ , " open"
321+ , " public"
322+ , " package"
323+ , " internal"
324+ , " fileprivate"
325+ , " private"
326+ , " private(set)"
327+ , " subscript"
328+ , " inout"
329+ , " func"
330+ ]
264331
265332-- from TS implementation
266333
You can’t perform that action at this time.
0 commit comments