Syntax highlighting and editor support for CCPL — the Cool Compilable Programming Language, a Lua-like language that compiles straight to native executables through TinyCC.
This repository contains only the VS Code extension. The language implementation lives in a separate repository.
- Syntax highlighting for
.ccplfiles- keywords and control flow (
if/elseif/else,while,repeat/until,for,return,break,continue) - declarations (
var/variable,func,get) - builtins (
say,hey,oh,tonumber,tostring,malloc/calloc/realloc/free) - native types (
i8…i64,u8…u64,f32,f64,bool,char,ptr) - numbers (decimal, float, exponent, hex), strings with escapes, operators
- keywords and control flow (
- Line comments (
--) and block comments (--[[ ... ]]) - Smart bracket and quote pairing
- A custom icon and dark gallery banner
Search for CCPL in the VS Code Extensions view, or run:
code --install-extension ccpl.ccplcode --install-extension ccpl-0.3.0.vsixgit clone https://github.com/ccpl-lang/vscode-ccpl.git
cd vscode-ccpl
npm install
npx vsce package
code --install-extension ccpl-0.3.0.vsix-- hello world in CCPL
say("hello, world")
func add(a: i32, b: i32): i32
return a + b
end
for i = 1, 3 do
say("add", i, add(i, 10))
end
| Project | Description | License |
|---|---|---|
| ccpl | Compiler and language implementation | GPL-3.0 |
| ccpl-toolchain | Ready-to-run Windows toolchain bundle | GPL-3.0 |
| vscode-ccpl | This extension | MIT |
Issues and pull requests are welcome. Please open an issue before starting a larger change. To add highlighting, edit syntaxes/ccpl.tmLanguage.json and test with the Developer: Inspect Editor Tokens and Scopes command.
Released under the MIT License.