Skip to content

Commit

Permalink
Update for Xcode 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pietbrauer committed Mar 3, 2016
1 parent 24c103f commit 7459f99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Common/Framework/Base/TokenizationState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public class TokenizationState : CustomStringConvertible, Equatable /*StringLite
}

init(){
id = "\(stateClassName())\(__anonymousStateCount++)"
__anonymousStateCount += 1
id = "\(stateClassName())\(__anonymousStateCount)"
}

//
Expand Down
8 changes: 4 additions & 4 deletions Common/Framework/Base/TokenizeOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public class TokenizeOperation : CustomStringConvertible {
var output = "Tokenization Operation State\n\tCurrent=\(current) Next=\(next) scanAdvanced=\(scanAdvanced) Complete=\(complete)\n"

//Print the context stack
for var i = __contextStack.endIndex-1; i>=0; i-- {
output+="\t"+__contextStack[i].description+"\n"
for index in __contextStack.endIndex-1...0 {
output+="\t"+__contextStack[index].description+"\n"
}

return output
Expand Down Expand Up @@ -136,8 +136,8 @@ public class TokenizeOperation : CustomStringConvertible {
current = eot
}

context.__currentIndex++
context.currentPosition++
context.__currentIndex = context.__currentIndex.successor()
context.currentPosition += 1
}

public func token(token:Token){
Expand Down
2 changes: 1 addition & 1 deletion Common/Framework/States/Repeat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class Repeat : TokenizationState{
repeatingState.scan(operation)

if operation.context.tokens.count > 0 {
repeats++
repeats += 1
tokensCreated = true
operation.context.tokens.removeAll(keepCapacity: true)

Expand Down

0 comments on commit 7459f99

Please sign in to comment.