Add Cobrust language support#7977
Closed
Hakureirm wants to merge 1 commit into
Closed
Conversation
Cobrust is a Rust-implemented Python successor with static typing and AI-native translation pipeline. Compiles to native binaries via Cranelift / LLVM. - languages.yml: add Cobrust entry (type: programming, color: #b45309, extension: .cb, ace_mode: python, no language_id per CONTRIBUTING) - samples/Cobrust/: add 5 sample files (hello, fib, fizzbuzz, two_sum, valid_anagram — 4 of 5 are non-trivial algorithms) Grammar TextMate scope: source.cobrust — full grammar deferred to vendor submodule once cobrust-textmate-grammar repo is published (follow-up PR per linguist CONTRIBUTING §Add a grammar). Repo: https://github.com/Cobrust-lang/cobrust License: Apache-2.0 OR MIT dual
2974f8e to
09d5e36
Compare
Member
|
This PR is invalid. You have not followed the instructions in the CONTRIBUTING.md file and have not used our PR template. We have also minimum usage requirements as detailed in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add support for Cobrust (
.cbextension), an AI-first statically-typedlanguage with Python syntax + Rust ownership semantics. Compiles to native
binaries via Cranelift / LLVM.
Checklist
languages.ymlentry added (nolanguage_idper CONTRIBUTING — will be assigned byscript/update-ids)samples/Cobrust/populated with 5 programs (4 of 5 are non-trivial algorithms: fib, fizzbuzz, two_sum, valid_anagram)#b45309(warm amber/copper) — no collision with existing hexes in currentlanguages.yml.cbextension not currently claimed (nearest are.cblCOBOL and.cbxCryptoBox — distinct)source.cobrust, 314 LOC, dual Apache-2.0 OR MIT)Grammar submodule
The TextMate grammar lives in a dedicated repo so it can be added as a
vendor submodule via
script/add-grammar:I am happy to push the grammars.yml + submodule entry as an additional
commit on this PR once a maintainer indicates the languages.yml + samples
approach is OK; or run
script/add-grammarlocally and amend this PRin a single revision — whichever the maintainer prefers.
Usage scope (honest)
.cbfiles are concentrated in the project organisation:Cobrust-lang/cobrustmain repo: ~158.cbfiles acrossexamples/,examples/leetcode/(100-problem LC-100 stress corpus),tests/cb_fixtures/cobrust-lang.cobrustpublished 2026-05-22 onOpen VSX: https://open-vsx.org/extension/cobrust-lang/cobrust
External repo adoption is currently nascent (released 5 days ago).
Primary users are project authors and AI agents writing/translating
Cobrust source via the project's LLM-translation subsystem. Maintainers
are welcome to apply usage-gate policy as they see fit; this PR
provides the language definition + grammar so the option is available
when adoption grows.
Cross-references
CLAUDE.md§2.5 in the main repo