├── .gitignore ├── Drafter.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── lzephyr.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── Drafter.xcworkspace ├── contents.xcworkspacedata ├── xcshareddata │ └── IDEWorkspaceChecks.plist └── xcuserdata │ └── lzephyr.xcuserdatad │ └── IDEFindNavigatorScopes.plist ├── LICENSE ├── Package.resolved ├── Package.swift ├── Podfile ├── Podfile.lock ├── README.md ├── Sources └── Drafter │ ├── AST │ ├── Common │ │ ├── AccessControlLevel.swift │ │ ├── ClassNode.swift │ │ ├── MethodInvokeNode.swift │ │ └── MethodNode.swift │ ├── File │ │ └── FileNode.swift │ ├── OC │ │ ├── ImplementationNode.swift │ │ ├── InterfaceNode.swift │ │ └── ObjcTypeNode.swift │ └── Swift │ │ ├── ExtensionNode.swift │ │ ├── ProtocolNode.swift │ │ └── SwiftTypeNode.swift │ ├── AutoGenerated │ └── CodableExtension.swift │ ├── Drafter.swift │ ├── Generator │ ├── DotGenerator.swift │ └── Executor.swift │ ├── Lexer │ ├── Lexer.swift │ ├── SourceLexer.swift │ ├── Token.swift │ └── TokenLexer.swift │ ├── Parser │ ├── File │ │ └── FileParser.swift │ ├── OC │ │ ├── ImplementationParser.swift │ │ ├── InterfaceParser.swift │ │ ├── ObjcMessageParser.swift │ │ ├── ObjcMethodParser.swift │ │ ├── ObjcProtocolParser.swift │ │ └── ObjcTypeParser.swift │ ├── Swift │ │ ├── SwiftClassParser.swift │ │ ├── SwiftExtensionParser.swift │ │ ├── SwiftInvokeParser.swift │ │ ├── SwiftMethodParser.swift │ │ ├── SwiftProtocolParser.swift │ │ └── SwiftTypeParser.swift │ └── TokenParser │ │ ├── ConcreteParserType.swift │ │ ├── TokenParser.swift │ │ └── Transformer.swift │ ├── ParserRunner.swift │ ├── Preprocessor │ ├── Pass │ │ ├── AccessControlPass.swift │ │ ├── DistinctPass.swift │ │ └── SwiftProtocolPass.swift │ └── Preprocessor.swift │ ├── Thirdparty │ ├── CommandLineKit │ │ ├── CommandLine.swift │ │ ├── Option.swift │ │ └── StringExtensions.swift │ ├── Runes │ │ └── Curry.swift │ └── SwiftHash │ │ └── MD5.swift │ ├── Utils │ ├── Array+Extension.swift │ ├── AutoCodable.swift │ ├── Path+Extension.swift │ └── String+Extension.swift │ └── main.swift ├── StencilTemplate └── AutoCodable.stencil ├── Template └── template.zip ├── Tests └── DrafterTests │ ├── CombinatorTest.swift │ ├── ImplementationTest.swift │ ├── InterfaceTest.swift │ ├── OCMethodTest.swift │ ├── OCMsgSendTest.swift │ ├── OCProtocolTest.swift │ ├── PreprocessorTest.swift │ ├── SwiftClassParserTest.swift │ ├── SwiftExtensionParserTest.swift │ ├── SwiftMethodInvokeTest.swift │ ├── SwiftMethodTest.swift │ ├── SwiftProtocolParserTest.swift │ └── Util.swift └── install.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/.gitignore -------------------------------------------------------------------------------- /Drafter.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Drafter.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /Drafter.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Drafter.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Drafter.xcodeproj/xcuserdata/lzephyr.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Drafter.xcodeproj/xcuserdata/lzephyr.xcuserdatad/xcschemes/xcschememanagement.plist -------------------------------------------------------------------------------- /Drafter.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Drafter.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Drafter.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Drafter.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /Drafter.xcworkspace/xcuserdata/lzephyr.xcuserdatad/IDEFindNavigatorScopes.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Drafter.xcworkspace/xcuserdata/lzephyr.xcuserdatad/IDEFindNavigatorScopes.plist -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/LICENSE -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Package.resolved -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Package.swift -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Podfile -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Podfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/README.md -------------------------------------------------------------------------------- /Sources/Drafter/AST/Common/AccessControlLevel.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/Common/AccessControlLevel.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/Common/ClassNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/Common/ClassNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/Common/MethodInvokeNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/Common/MethodInvokeNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/Common/MethodNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/Common/MethodNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/File/FileNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/File/FileNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/OC/ImplementationNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/OC/ImplementationNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/OC/InterfaceNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/OC/InterfaceNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/OC/ObjcTypeNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/OC/ObjcTypeNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/Swift/ExtensionNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/Swift/ExtensionNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/Swift/ProtocolNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/Swift/ProtocolNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AST/Swift/SwiftTypeNode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AST/Swift/SwiftTypeNode.swift -------------------------------------------------------------------------------- /Sources/Drafter/AutoGenerated/CodableExtension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/AutoGenerated/CodableExtension.swift -------------------------------------------------------------------------------- /Sources/Drafter/Drafter.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Drafter.swift -------------------------------------------------------------------------------- /Sources/Drafter/Generator/DotGenerator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Generator/DotGenerator.swift -------------------------------------------------------------------------------- /Sources/Drafter/Generator/Executor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Generator/Executor.swift -------------------------------------------------------------------------------- /Sources/Drafter/Lexer/Lexer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Lexer/Lexer.swift -------------------------------------------------------------------------------- /Sources/Drafter/Lexer/SourceLexer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Lexer/SourceLexer.swift -------------------------------------------------------------------------------- /Sources/Drafter/Lexer/Token.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Lexer/Token.swift -------------------------------------------------------------------------------- /Sources/Drafter/Lexer/TokenLexer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Lexer/TokenLexer.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/File/FileParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/File/FileParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/OC/ImplementationParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/OC/ImplementationParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/OC/InterfaceParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/OC/InterfaceParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/OC/ObjcMessageParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/OC/ObjcMessageParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/OC/ObjcMethodParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/OC/ObjcMethodParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/OC/ObjcProtocolParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/OC/ObjcProtocolParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/OC/ObjcTypeParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/OC/ObjcTypeParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/Swift/SwiftClassParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/Swift/SwiftClassParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/Swift/SwiftExtensionParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/Swift/SwiftExtensionParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/Swift/SwiftInvokeParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/Swift/SwiftInvokeParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/Swift/SwiftMethodParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/Swift/SwiftMethodParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/Swift/SwiftProtocolParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/Swift/SwiftProtocolParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/Swift/SwiftTypeParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/Swift/SwiftTypeParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/TokenParser/ConcreteParserType.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/TokenParser/ConcreteParserType.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/TokenParser/TokenParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/TokenParser/TokenParser.swift -------------------------------------------------------------------------------- /Sources/Drafter/Parser/TokenParser/Transformer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Parser/TokenParser/Transformer.swift -------------------------------------------------------------------------------- /Sources/Drafter/ParserRunner.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/ParserRunner.swift -------------------------------------------------------------------------------- /Sources/Drafter/Preprocessor/Pass/AccessControlPass.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Preprocessor/Pass/AccessControlPass.swift -------------------------------------------------------------------------------- /Sources/Drafter/Preprocessor/Pass/DistinctPass.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Preprocessor/Pass/DistinctPass.swift -------------------------------------------------------------------------------- /Sources/Drafter/Preprocessor/Pass/SwiftProtocolPass.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Preprocessor/Pass/SwiftProtocolPass.swift -------------------------------------------------------------------------------- /Sources/Drafter/Preprocessor/Preprocessor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Preprocessor/Preprocessor.swift -------------------------------------------------------------------------------- /Sources/Drafter/Thirdparty/CommandLineKit/CommandLine.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Thirdparty/CommandLineKit/CommandLine.swift -------------------------------------------------------------------------------- /Sources/Drafter/Thirdparty/CommandLineKit/Option.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Thirdparty/CommandLineKit/Option.swift -------------------------------------------------------------------------------- /Sources/Drafter/Thirdparty/CommandLineKit/StringExtensions.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Thirdparty/CommandLineKit/StringExtensions.swift -------------------------------------------------------------------------------- /Sources/Drafter/Thirdparty/Runes/Curry.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Thirdparty/Runes/Curry.swift -------------------------------------------------------------------------------- /Sources/Drafter/Thirdparty/SwiftHash/MD5.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Thirdparty/SwiftHash/MD5.swift -------------------------------------------------------------------------------- /Sources/Drafter/Utils/Array+Extension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Utils/Array+Extension.swift -------------------------------------------------------------------------------- /Sources/Drafter/Utils/AutoCodable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Utils/AutoCodable.swift -------------------------------------------------------------------------------- /Sources/Drafter/Utils/Path+Extension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Utils/Path+Extension.swift -------------------------------------------------------------------------------- /Sources/Drafter/Utils/String+Extension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/Utils/String+Extension.swift -------------------------------------------------------------------------------- /Sources/Drafter/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Sources/Drafter/main.swift -------------------------------------------------------------------------------- /StencilTemplate/AutoCodable.stencil: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/StencilTemplate/AutoCodable.stencil -------------------------------------------------------------------------------- /Template/template.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Template/template.zip -------------------------------------------------------------------------------- /Tests/DrafterTests/CombinatorTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/CombinatorTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/ImplementationTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/ImplementationTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/InterfaceTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/InterfaceTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/OCMethodTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/OCMethodTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/OCMsgSendTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/OCMsgSendTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/OCProtocolTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/OCProtocolTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/PreprocessorTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/PreprocessorTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/SwiftClassParserTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/SwiftClassParserTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/SwiftExtensionParserTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/SwiftExtensionParserTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/SwiftMethodInvokeTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/SwiftMethodInvokeTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/SwiftMethodTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/SwiftMethodTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/SwiftProtocolParserTest.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/SwiftProtocolParserTest.swift -------------------------------------------------------------------------------- /Tests/DrafterTests/Util.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/Tests/DrafterTests/Util.swift -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-Zephyr/Drafter/HEAD/install.sh --------------------------------------------------------------------------------