Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Cwerg

< >

Cwerg is a programming language created in 2019 by Robert Muth.

#828on PLDB 5Years Old
Download source code:
git clone https://github.com/robertmuth/Cwerg
Source Code

The best C-like language that can be implemented in 10kLOC.


Example from the web:
module: import fmt fun main(argc s32, argv ^^u8) s32: fmt::print#("hello world\n") return 0

Language features

Feature Supported Example Token
Functions ✓ fun main(argc s32, argv ^^u8) s32: -- initialized to false let! board = [DIM][DIM]bool{} let n = Solve(&!board, 0) fmt::print#(n, "\n") return 0
File Imports ✓ import fmt
Constants ✓ global N uint = 1000 * 1000 * 1000
Line Comments ✓ --
Comments ✓ -- A comment
View source
- Build the next great programming language · About · Keywords · Resources · Acknowledgements · Part of the World Wide Scroll