Skip to content

Add QuantaLang language support#7913

Closed
HarperZ9 wants to merge 1 commit into
github-linguist:mainfrom
HarperZ9:add-quantalang
Closed

Add QuantaLang language support#7913
HarperZ9 wants to merge 1 commit into
github-linguist:mainfrom
HarperZ9:add-quantalang

Conversation

@HarperZ9

Copy link
Copy Markdown

Describe the language

QuantaLang is an effects-oriented systems programming language with a multi-backend compiler written in Rust. It compiles .quanta source to C (primary), HLSL, GLSL, SPIR-V, LLVM IR, WebAssembly, x86-64, and ARM64.

Distinguishing features:

  • First-class effect systemwith, effect, handle, resume, perform keywords for algebraic effects and handlers
  • AI/neural primitivesai, neural, infer keywords
  • Classical systems semanticsfn, struct, enum, trait, impl, let, mut, unsafe, lifetimes, ownership (Rust-adjacent syntax family)
  • Multi-target shader output from the same source

62 keywords total, derived from the compiler lexer at HarperZ9/quantalang/compiler/src/lexer/token.rs.

Why it's being added

Included in this PR

Change Description
lib/linguist/languages.yml New QuantaLang entry, alphabetically placed between Qt Script and Quake. Color #4A7BE8, scope source.quanta, ace mode rust, unique language_id: 202604120.
vendor/grammars/quantalang-tmLanguage Grammar repo added as submodule. MIT license.
samples/QuantaLang/ 7 real-world samples covering: full ecosystem imports, AI/neural primitive usage, graphics pipeline, closures, tonemapping (shader-style), Result stdlib pattern, struct constants.

Metadata

  • Extensions: .quanta (unique, no collisions — verified across current languages.yml)
  • Aliases: quanta, quantalang
  • Type: programming
  • TM scope: source.quanta
  • Color: #4A7BE8 (unique across current palette)
  • language_id: 202604120 (verified unique across all entries)
  • Grammar license: MIT

Checklist

  • Language extension .quanta is unique — no other entry claims it
  • language_id is unique (verified by iterating all ids in languages.yml)
  • Color is distinct from neighbors
  • YAML parses cleanly (verified with yaml.safe_load)
  • Samples are real code (not toy / lorem-ipsum) covering distinctive syntax
  • Grammar is hosted in a dedicated repo with permissive license (MIT)
  • Grammar scope matches tm_scope

QuantaLang is an effects-oriented systems language with a multi-backend compiler
written in Rust. It compiles .quanta source to C (primary), HLSL, GLSL, SPIR-V,
LLVM IR, WebAssembly, x86-64, and ARM64.

Language features:
- Classical systems keywords (fn, struct, enum, trait, impl, let, mut, etc.)
- First-class effect system (with, effect, handle, resume, perform)
- AI/neural primitives (ai, neural, infer)
- Rust-adjacent syntax, unique .quanta file extension

Submitted alongside:
- Grammar: https://github.com/HarperZ9/quantalang-tmLanguage
- Language repo: https://github.com/HarperZ9/quantalang
- VS Code extension: https://github.com/HarperZ9/quantalang-vscode
- Ecosystem: https://github.com/HarperZ9/quanta-universe (43 modules written in QuantaLang)

Samples provided cover the AI primitives, effect system, closures, struct
constants, graphics pipeline, and standard library patterns.
@HarperZ9
HarperZ9 requested a review from a team as a code owner April 12, 2026 18:47
@lildude

lildude commented Apr 12, 2026

Copy link
Copy Markdown
Member

This PR is invalid. You have not followed the instructions in the CONTRIBUTING.md file and have not used our PR template.

We also have minimum usage requirements as detailed in the CONTRIBUTING.md file. This means we do not accept PRs for very new or hobby languages. Closing but feel free to open a PR when your language is popular enough.

@lildude lildude closed this Apr 12, 2026
@github-linguist github-linguist deleted a comment Apr 12, 2026
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants