{"id":13871873,"url":"https://github.com/cooklang/cooklang-swift","last_synced_at":"2026-01-18T05:30:15.508Z","repository":{"id":41994040,"uuid":"347434948","full_name":"cooklang/cooklang-swift","owner":"cooklang","description":"Cooklang parser implementation in Swift","archived":false,"fork":false,"pushed_at":"2023-01-23T17:02:43.000Z","size":305,"stargazers_count":38,"open_issues_count":6,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-06T23:51:06.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cooklang.org","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cooklang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-13T17:30:10.000Z","updated_at":"2024-07-02T08:47:50.000Z","dependencies_parsed_at":"2023-02-13T01:16:30.282Z","dependency_job_id":null,"html_url":"https://github.com/cooklang/cooklang-swift","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cooklang%2Fcooklang-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cooklang%2Fcooklang-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cooklang%2Fcooklang-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cooklang%2Fcooklang-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cooklang","download_url":"https://codeload.github.com/cooklang/cooklang-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226089987,"owners_count":17572112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T23:00:28.986Z","updated_at":"2026-01-18T05:30:15.459Z","avatar_url":"https://github.com/cooklang.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# cooklang-swift\n\nNOTE! Very first implementation of Cooklang parser, now outdated as we migrated to [Rust](https://github.com/cooklang/cooklang-rs)\n\nThis project is an implementation of [Cook Language Spec](https://github.com/cooklang/spec) in Swift language.\n\n## Key Features\n\n- Full support of spec\n- macOS/Linux compatible\n\n## Install\n\nInstall via the [**Swift Package Manger**](https://swift.org/package-manager/) by declaring **cooklang-swift** as a dependency in your  `Package.swift`:\n\n``` swift\n.package(url: \"https://github.com/cooklang/cooklang-swift\", from: \"0.1.0\")\n```\n\nRemember to add **cooklang-swift** to your target as a dependency.\n\n## Documentation\n\n#### Using\nCreating Swift datastructures from the string containing recipe markup:\n\n```  swift\nlet parsedRecipe = try! Recipe.from(text: program)\n```\n\n#### Config parser\nCreating Swift datastructures from the string containing cook config:\n\n```  swift\nfunc parseConfig(_ content: String) -\u003e CookConfig {\n    let parser = ConfigParser(textConfig)\n    return parser.parse()\n}\n```\n\n## Development\n\nSee [Contributing](CONTRIBUTING.md)\n### Codespaces\n\n- We are using the default Swift Community template from [microsoft/vscode-dev-containers](https://github.com/microsoft/vscode-dev-containers/tree/main/containers/swift)\n  - build the package: `swift build --enable-test-discovery`\n  - run the tests: `swift test --enable-test-discovery`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcooklang%2Fcooklang-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcooklang%2Fcooklang-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcooklang%2Fcooklang-swift/lists"}