{"id":16991921,"url":"https://github.com/tali/sclang","last_synced_at":"2026-04-17T00:35:44.830Z","repository":{"id":137381533,"uuid":"236614781","full_name":"tali/sclang","owner":"tali","description":"MLIR frontend for SCL (WIP)","archived":false,"fork":false,"pushed_at":"2022-01-17T19:08:48.000Z","size":453,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-22T04:12:24.058Z","etag":null,"topics":["compiler","scl","simatic"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-27T23:02:38.000Z","updated_at":"2025-01-11T14:37:06.000Z","dependencies_parsed_at":"2023-05-04T17:41:31.379Z","dependency_job_id":null,"html_url":"https://github.com/tali/sclang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tali/sclang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tali%2Fsclang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tali%2Fsclang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tali%2Fsclang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tali%2Fsclang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tali","download_url":"https://codeload.github.com/tali/sclang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tali%2Fsclang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["compiler","scl","simatic"],"created_at":"2024-10-14T03:27:46.120Z","updated_at":"2026-04-17T00:35:44.807Z","avatar_url":"https://github.com/tali.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCLANG\n\n`sclang` is an work-in-progress SCL compiler using LLVMs [MLIR][MLIR] infrastructure.\n\nInstead of generating AWL or machine code for S7, it directly targets the host computer.\nGoal is to provide a fast compiler and runtime to run unit and integration tests for large SCL projects.\n\nCurrent status:\nparsing SCL files works quite well, code generation only works for a very limited subset of expressions.\n\n[MLIR]: https://mlir.llvm.org/\n\n# BUILDING\n\nMLIR is still in active development and Sclang is regularly updated to follow that development.\nA compatible version of _llvm-project/mlir_ is provided as submodule. \nYou can choose to build it using either [CMake][CMake] or [Bazel][Bazel].\nBoth MacOS and Linux are supported.\n\n[CMake]: https://cmake.org/cmake/help/latest/\n[Bazel]: https://bazel.build/\n\n## Check out sources\n\n```sh\ngit clone --recursive https://github.com/tali/sclang\ncd sclang\n```\n\nNote:\nThe repository is set up so that git submodule update performs a shallow clone,\nmeaning it download just enough of the LLVM repository to check out the currently specified commit.\nIf you wish to work with the full history of the LLVM repository, you can manually \"unshallow\" the submodule:\n\n```sh\ncd third_party/llvm-project\ngit fetch --unshallow\n```\n\n## Build using CMake\n\n```sh\ncmake -B build -S third_party/llvm-project/llvm -GNinja \\\n\t-DBUILD_SHARED_LIBS=OFF \\\n\t-DLLVM_ENABLE_ASSERTIONS=ON \\\n\t-DLLVM_ENABLE_PROJECTS=\"mlir\" \\\n\t-DLLVM_EXTERNAL_PROJECTS=sclang \\\n\t-DLLVM_EXTERNAL_SCLANG_SOURCE_DIR=$PWD \\\n\t-DLLVM_TARGETS_TO_BUILD=X86 \\\n\t-DCMAKE_BUILD_TYPE=Release\n# alternatively use CMAKE_BUILD_TYPE=DEBUG\ncmake --build build --target check-sclang\n```\n\n## Build using Bazel\n\n```\nbazel test --config=generic_clang //test\n# alternatively:\nbazel test --config=generic_gcc //test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftali%2Fsclang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftali%2Fsclang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftali%2Fsclang/lists"}