 import Foundation
 import Swift
+
+var 会意字 = "foo"
 
 public enum TokenType
 {


    for token in l
    {
      print(token.type, token.content.literalString)
    }
}

    let content: String
    let line: Int
    let column: Int
    let index: String.UnicodeScalarView.Index
}

class Lexer : Sequence
{
  typealias Index = String.UnicodeScalarView.Index

  var line = 1
  var column = 1
  var source : String
  var index : Index

  var nextChar : UnicodeScalar?
  {
    get
    {
      if self.index == self.source.unicodeScalars.endIndex
      {
        return nil
      }
      let nextIndex = self.source.unicodeScalars.index(after: self.index)
      if nextIndex == self.source.unicodeScalars.endIndex
      {
        return nil
      }
      return self.source.unicodeScalars[nextIndex]
    }
  }

  var currentChar : UnicodeScalar?
  {
    get
    {
      if self.index == self.source.unicodeScalars.endIndex
      {
        return nil
      }
      return self.source.unicodeScalars[self.index]
    }
  }

  init(_ source: String)
  {
    self.source = source
    self.index = source.unicodeScalars.startIndex
  }

  func makeIterator() -> AnyIterator<Token> {
    self.line = 1
    self.column = 1
    self.index = self.source.unicodeScalars.startIndex
    var lastType : TokenType = .Unknown

    return AnyIterator {
