aboutsummaryrefslogtreecommitdiff
path: root/Sources/WmapParser/Constants.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/WmapParser/Constants.swift')
-rw-r--r--Sources/WmapParser/Constants.swift64
1 files changed, 33 insertions, 31 deletions
diff --git a/Sources/WmapParser/Constants.swift b/Sources/WmapParser/Constants.swift
index 73340b6..e659c03 100644
--- a/Sources/WmapParser/Constants.swift
+++ b/Sources/WmapParser/Constants.swift
@@ -1,35 +1,37 @@
-// Whitespace
-let kNewline = 10
-let kCarriageReturn = 13
-let kTab = 9
-let kSpace = 32
+extension WmapParser {
+ // Whitespace
+ static let kNewline = 10
+ static let kCarriageReturn = 13
+ static let kTab = 9
+ static let kSpace = 32
-// Punctuation
-let kOpenParenthesis = 40
-let kCloseParenthesis = 41
-let kPlus = 43
-let kComma = 44
-let kDash = 45
-let kPeriod = 46
-let kGreaterThan = 62
-let kOpenSquareBracket = 91
-let kCloseSquareBracket = 93
+ // Punctuation
+ static let kOpenParenthesis = 40
+ static let kCloseParenthesis = 41
+ static let kPlus = 43
+ static let kComma = 44
+ static let kDash = 45
+ static let kPeriod = 46
+ static let kGreaterThan = 62
+ static let kOpenSquareBracket = 91
+ static let kCloseSquareBracket = 93
-// Letters
-let kCapitalA = 65
-let kCapitalZ = 90
-let kCapsToLowercaseDistance: UInt8 = 32
+ // Letters
+ static let kCapitalA = 65
+ static let kCapitalZ = 90
+ static let kCapsToLowercaseDistance: UInt8 = 32
-// Numbers
-let kZero = 48
-let kNine = 57
+ // Numbers
+ static let kZero = 48
+ static let kNine = 57
-// Keywords. ASCII representations of the keywords.
-let kInertiaKeyword: [UInt8] = [105, 110, 101, 114, 116, 105, 97]
-let kEvolutionKeyword: [UInt8] = [101, 118, 111, 108, 117, 116, 105, 111, 110]
-let kNoteKeyword: [UInt8] = [110, 111, 116, 101]
-let kGroupKeyword: [UInt8] = [103, 114, 111, 117, 112]
-let kIKeyword: [UInt8] = [105]
-let kIIKeyword: [UInt8] = [105, 105]
-let kIIIKeyword: [UInt8] = [105, 105, 105]
-let kIVKeyword: [UInt8] = [105, 118]
+ // Keywords. ASCII representations of the keywords.
+ static let kInertiaKeyword: [UInt8] = [105, 110, 101, 114, 116, 105, 97]
+ static let kEvolutionKeyword: [UInt8] = [101, 118, 111, 108, 117, 116, 105, 111, 110]
+ static let kNoteKeyword: [UInt8] = [110, 111, 116, 101]
+ static let kGroupKeyword: [UInt8] = [103, 114, 111, 117, 112]
+ static let kIKeyword: [UInt8] = [105]
+ static let kIIKeyword: [UInt8] = [105, 105]
+ static let kIIIKeyword: [UInt8] = [105, 105, 105]
+ static let kIVKeyword: [UInt8] = [105, 118]
+}