Cwerg is a programming language created in 2019 by Robert Muth.
#828on PLDB | 5Years Old |
git clone https://github.com/robertmuth/Cwerg
The best C-like language that can be implemented in 10kLOC.
module:
import fmt
fun main(argc s32, argv ^^u8) s32:
fmt::print#("hello world\n")
return 0
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 |