Add tokens and token parser

This commit is contained in:
Kyle Fuller
2014-10-23 17:18:31 +01:00
parent 5af59ecb15
commit 02a1af2f44
7 changed files with 169 additions and 23 deletions

View File

@@ -8,7 +8,7 @@
import Foundation
public struct Variable {
public struct Variable : Equatable {
public let variable:String
public init(_ variable:String) {
@@ -49,3 +49,7 @@ public struct Variable {
return current
}
}
public func ==(lhs:Variable, rhs:Variable) -> Bool {
return lhs.variable == rhs.variable
}