├── .gitignore ├── .travis.yml ├── Examples ├── recursive_include │ ├── gysb.json │ ├── include.swift │ ├── include.swift.gysb │ ├── include_expected.swift │ └── libs │ │ ├── aaa │ │ ├── bbb │ │ │ └── func_bbb.swift │ │ └── func_aaa.swift │ │ └── ppp │ │ └── func_ppp.swift ├── same_name_include │ ├── a │ │ └── a.swift │ ├── b │ │ └── a.swift │ ├── gysb.json │ ├── include.swift │ ├── include.swift.gysb │ └── include_expected.swift ├── simple1 │ ├── a.txt │ ├── a.txt.gysb │ └── a_expected.txt ├── simple2 │ ├── b.swift │ ├── b.swift.gysb │ └── b_expected.swift ├── simple_include │ ├── gysb.json │ ├── include.swift │ ├── include.swift.gysb │ ├── include_expected.swift │ └── libs │ │ ├── func_aaa.swift │ │ └── func_bbb.swift ├── vector │ ├── vector.swift │ ├── vector.swift.gysb │ └── vector_expected.swift └── yaml │ ├── data.yml │ ├── gysb.json │ ├── yaml.swift │ ├── yaml.swift.gysb │ ├── yaml2.swift │ ├── yaml2.swift.gysb │ ├── yaml2_expected.swift │ └── yaml_expected.swift ├── Makefile ├── Package.resolved ├── Package.swift ├── README.md ├── Scripts └── travis.bash ├── Sources ├── GysbBase │ ├── BasicExtension.swift │ ├── Error.swift │ ├── Exec.swift │ ├── Glob.swift │ └── Util.swift ├── GysbKit │ ├── AST.swift │ ├── ASTPrinter.swift │ ├── App.swift │ ├── CodeExecutor.swift │ ├── CodeGenerator.swift │ ├── Config.swift │ ├── ConfigPackageDependency.swift │ ├── Driver.swift │ ├── DriverError.swift │ ├── DriverState.swift │ ├── Parser.swift │ ├── ParserError.swift │ ├── SPMManifestoGenerator.swift │ ├── TemplateCodeGenerator.swift │ ├── Token.swift │ └── TokenReader.swift └── gysb │ └── main.swift ├── TestResources └── globstar │ ├── a │ ├── b │ │ ├── c │ │ │ ├── d0.txt │ │ │ └── d1.md │ │ ├── c0.txt │ │ └── c1.md │ ├── b0.txt │ └── b1.md │ ├── a0.txt │ └── a1.md └── Tests ├── GysbKitTest ├── ConfigTests.swift ├── DriverTests.swift ├── GlobTests.swift ├── ParserTests.swift ├── SwiftCompatTests.swift └── TokenReaderTests.swift └── LinuxMain.swift /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/.travis.yml -------------------------------------------------------------------------------- /Examples/recursive_include/gysb.json: -------------------------------------------------------------------------------- 1 | { 2 | "includes": [ 3 | "libs/**/*.swift" 4 | ] 5 | } -------------------------------------------------------------------------------- /Examples/recursive_include/include.swift: -------------------------------------------------------------------------------- 1 | aaa=999 2 | bbb=777 3 | ppp=22 4 | -------------------------------------------------------------------------------- /Examples/recursive_include/include.swift.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/recursive_include/include.swift.gysb -------------------------------------------------------------------------------- /Examples/recursive_include/include_expected.swift: -------------------------------------------------------------------------------- 1 | aaa=999 2 | bbb=777 3 | ppp=22 4 | -------------------------------------------------------------------------------- /Examples/recursive_include/libs/aaa/bbb/func_bbb.swift: -------------------------------------------------------------------------------- 1 | public func bbb() -> Int { 2 | return 777 3 | } 4 | -------------------------------------------------------------------------------- /Examples/recursive_include/libs/aaa/func_aaa.swift: -------------------------------------------------------------------------------- 1 | public func aaa() -> Int { 2 | return 999 3 | } 4 | -------------------------------------------------------------------------------- /Examples/recursive_include/libs/ppp/func_ppp.swift: -------------------------------------------------------------------------------- 1 | public func ppp() -> Int { 2 | return 22 3 | } 4 | -------------------------------------------------------------------------------- /Examples/same_name_include/a/a.swift: -------------------------------------------------------------------------------- 1 | public func aaa() -> Int { 2 | return 999 3 | } 4 | -------------------------------------------------------------------------------- /Examples/same_name_include/b/a.swift: -------------------------------------------------------------------------------- 1 | public func bbb() -> Int { 2 | return 777 3 | } 4 | -------------------------------------------------------------------------------- /Examples/same_name_include/gysb.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/same_name_include/gysb.json -------------------------------------------------------------------------------- /Examples/same_name_include/include.swift: -------------------------------------------------------------------------------- 1 | aaa=999 2 | bbb=777 3 | -------------------------------------------------------------------------------- /Examples/same_name_include/include.swift.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/same_name_include/include.swift.gysb -------------------------------------------------------------------------------- /Examples/same_name_include/include_expected.swift: -------------------------------------------------------------------------------- 1 | aaa=999 2 | bbb=777 3 | -------------------------------------------------------------------------------- /Examples/simple1/a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/simple1/a.txt -------------------------------------------------------------------------------- /Examples/simple1/a.txt.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/simple1/a.txt.gysb -------------------------------------------------------------------------------- /Examples/simple1/a_expected.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/simple1/a_expected.txt -------------------------------------------------------------------------------- /Examples/simple2/b.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/simple2/b.swift -------------------------------------------------------------------------------- /Examples/simple2/b.swift.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/simple2/b.swift.gysb -------------------------------------------------------------------------------- /Examples/simple2/b_expected.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/simple2/b_expected.swift -------------------------------------------------------------------------------- /Examples/simple_include/gysb.json: -------------------------------------------------------------------------------- 1 | { 2 | "includes": [ 3 | "libs/*.swift" 4 | ] 5 | } -------------------------------------------------------------------------------- /Examples/simple_include/include.swift: -------------------------------------------------------------------------------- 1 | aaa=999 2 | bbb=777 3 | -------------------------------------------------------------------------------- /Examples/simple_include/include.swift.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/simple_include/include.swift.gysb -------------------------------------------------------------------------------- /Examples/simple_include/include_expected.swift: -------------------------------------------------------------------------------- 1 | aaa=999 2 | bbb=777 3 | -------------------------------------------------------------------------------- /Examples/simple_include/libs/func_aaa.swift: -------------------------------------------------------------------------------- 1 | public func aaa() -> Int { 2 | return 999 3 | } 4 | -------------------------------------------------------------------------------- /Examples/simple_include/libs/func_bbb.swift: -------------------------------------------------------------------------------- 1 | public func bbb() -> Int { 2 | return 777 3 | } 4 | -------------------------------------------------------------------------------- /Examples/vector/vector.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/vector/vector.swift -------------------------------------------------------------------------------- /Examples/vector/vector.swift.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/vector/vector.swift.gysb -------------------------------------------------------------------------------- /Examples/vector/vector_expected.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/vector/vector_expected.swift -------------------------------------------------------------------------------- /Examples/yaml/data.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/data.yml -------------------------------------------------------------------------------- /Examples/yaml/gysb.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/gysb.json -------------------------------------------------------------------------------- /Examples/yaml/yaml.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/yaml.swift -------------------------------------------------------------------------------- /Examples/yaml/yaml.swift.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/yaml.swift.gysb -------------------------------------------------------------------------------- /Examples/yaml/yaml2.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/yaml2.swift -------------------------------------------------------------------------------- /Examples/yaml/yaml2.swift.gysb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/yaml2.swift.gysb -------------------------------------------------------------------------------- /Examples/yaml/yaml2_expected.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/yaml2_expected.swift -------------------------------------------------------------------------------- /Examples/yaml/yaml_expected.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Examples/yaml/yaml_expected.swift -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Makefile -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Package.resolved -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Package.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/README.md -------------------------------------------------------------------------------- /Scripts/travis.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Scripts/travis.bash -------------------------------------------------------------------------------- /Sources/GysbBase/BasicExtension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbBase/BasicExtension.swift -------------------------------------------------------------------------------- /Sources/GysbBase/Error.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbBase/Error.swift -------------------------------------------------------------------------------- /Sources/GysbBase/Exec.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbBase/Exec.swift -------------------------------------------------------------------------------- /Sources/GysbBase/Glob.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbBase/Glob.swift -------------------------------------------------------------------------------- /Sources/GysbBase/Util.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbBase/Util.swift -------------------------------------------------------------------------------- /Sources/GysbKit/AST.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/AST.swift -------------------------------------------------------------------------------- /Sources/GysbKit/ASTPrinter.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/ASTPrinter.swift -------------------------------------------------------------------------------- /Sources/GysbKit/App.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/App.swift -------------------------------------------------------------------------------- /Sources/GysbKit/CodeExecutor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/CodeExecutor.swift -------------------------------------------------------------------------------- /Sources/GysbKit/CodeGenerator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/CodeGenerator.swift -------------------------------------------------------------------------------- /Sources/GysbKit/Config.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/Config.swift -------------------------------------------------------------------------------- /Sources/GysbKit/ConfigPackageDependency.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/ConfigPackageDependency.swift -------------------------------------------------------------------------------- /Sources/GysbKit/Driver.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/Driver.swift -------------------------------------------------------------------------------- /Sources/GysbKit/DriverError.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/DriverError.swift -------------------------------------------------------------------------------- /Sources/GysbKit/DriverState.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/DriverState.swift -------------------------------------------------------------------------------- /Sources/GysbKit/Parser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/Parser.swift -------------------------------------------------------------------------------- /Sources/GysbKit/ParserError.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/ParserError.swift -------------------------------------------------------------------------------- /Sources/GysbKit/SPMManifestoGenerator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/SPMManifestoGenerator.swift -------------------------------------------------------------------------------- /Sources/GysbKit/TemplateCodeGenerator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/TemplateCodeGenerator.swift -------------------------------------------------------------------------------- /Sources/GysbKit/Token.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/Token.swift -------------------------------------------------------------------------------- /Sources/GysbKit/TokenReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/GysbKit/TokenReader.swift -------------------------------------------------------------------------------- /Sources/gysb/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Sources/gysb/main.swift -------------------------------------------------------------------------------- /TestResources/globstar/a/b/c/d0.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TestResources/globstar/a/b/c/d1.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TestResources/globstar/a/b/c0.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TestResources/globstar/a/b/c1.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TestResources/globstar/a/b0.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TestResources/globstar/a/b1.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TestResources/globstar/a0.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TestResources/globstar/a1.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/GysbKitTest/ConfigTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Tests/GysbKitTest/ConfigTests.swift -------------------------------------------------------------------------------- /Tests/GysbKitTest/DriverTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Tests/GysbKitTest/DriverTests.swift -------------------------------------------------------------------------------- /Tests/GysbKitTest/GlobTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Tests/GysbKitTest/GlobTests.swift -------------------------------------------------------------------------------- /Tests/GysbKitTest/ParserTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Tests/GysbKitTest/ParserTests.swift -------------------------------------------------------------------------------- /Tests/GysbKitTest/SwiftCompatTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Tests/GysbKitTest/SwiftCompatTests.swift -------------------------------------------------------------------------------- /Tests/GysbKitTest/TokenReaderTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Tests/GysbKitTest/TokenReaderTests.swift -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omochi/gysb/HEAD/Tests/LinuxMain.swift --------------------------------------------------------------------------------