Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

Clue

> 编程语言
Open source

C/Rust like programming language that compiles into Lua code

379 stars0 likes0 views
WebsiteGitHub

About

C/Rust like programming language that compiles into Lua code

The Clue programming language

Clue is a programming language that compiles blazingly fast into Lua code with a syntax similar to languages like C or Rust.

Clue tries to be almost as simple as Lua (with only a slightly more advanced syntax) but adds many optional features that can make code look better or make some things (like metatables) easier to code.

Clue does not compile to a specific version of Lua: flags can be toggled to alter the output to allow most if not all versions or modifications of Lua to be compiled to with Clue.

General syntax differences

  • Code blocks are now inside {} instead of then/do/repeat and end/until
  • Comments are made with // ... or /* ... */

If you want a complete documentation of every change and addition in Clue check the wiki.

Example code

rust
@ifos linux {
	@define GREETING "Hello, Linux user "
} @else_ifos macos {
	@define GREETING "Hello, MacOS user "
} @else {
	@define GREETING "Hello, Windows user "
}
  
@macro GREET(target) { $GREETING .. $target .. "!" }
  
print($GREET!("Maiori"))

local fn add(x = 0, y = 0) {
    return x + y
}

global n = 1

while n  {
            continue
        }
        4 if x => {
            break
        }
        default => {
            print(n _.deb
  • .rpm
bash
sudo rpm -i clue-..rpm

Using the AUR

  • With paru
bash
paru -S clue
  • With yay
yay -S clue
  • With makepkg
bash
git clone https://aur.archlinux.org/clue.git
cd clue
makepkg -si

Manual installation

  1. Download the latest release and save it somewhere
  2. Open your system environment variables
  3. Add the path to the directory that contains clue.exe in the PATH variable
  4. Type clue in your cmd/PowerShell to run the compiler, it will explain the rest

More coming soon!

There are still features that I'm considering adding and others that will be added soon. The most likely ones to be added in the future are:

  • type system (coming in 4.0)
  • better error messages (coming in 4.0)
  • proper language server support (coming in 4.0)

For any suggestion or bug you can make a github issue. If you need help with the language itself, you can check out the Discord server.

I hope Clue will be useful to you :)

Why is Clue named Clue?

I have no clue.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcluelangcompilerlanguagelua

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言