1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 04:41:47 +03:00
semantic/prototype/doubt-difftool/Argument.swift

19 lines
285 B
Swift
Raw Normal View History

2015-11-02 19:36:20 +03:00
enum Argument {
2015-11-02 19:36:52 +03:00
indirect case File(Source, Argument)
case End
2015-11-02 19:37:54 +03:00
var files: [Source] {
switch self {
case let .File(a, rest):
return [a] + rest.files
case .End:
return []
}
}
2015-11-02 19:36:20 +03:00
}
2015-11-02 19:35:32 +03:00
2015-11-02 19:35:41 +03:00
let argumentsParser: Madness.Parser<[String], Argument>.Function = none()
import Madness