Skip to content

zenc-lang/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zen C Documentation

Welcome to the official documentation repository for the Zen C programming language. This repository contains the technical specifications, language reference, and standard library documentation.

Documentation Index

Standard Library

The core of Zen C's power lies in its standard library. Detailed documentation for each module can be found in the std/ directory.

Module Description
vec Dynamic array implementation.
string Modern, safe string handling.
net High-level networking (TCP, HTTP).
cuda First-class GPU programming support.
thread Concurrency and parallelism.
json Built-in JSON serialization/deserialization.

Note

For a high-level overview of the library, see the Standard Library README.

Technical Specifications

Deep dives into the compiler's internals and tooling protocols.

Reference (16 chapters)

# Chapter Description
1 Variables & Constants let, types, mutability
2 Primitive Types int, float, bool, char, etc.
3 Aggregate Types Arrays, slices, tuples
4 Functions & Lambdas Functions, closures
5 Control Flow if, while, for, match
6 Operators Arithmetic, comparison, sugar operators
7 Printing & F-strings Output, string interpolation
8 Memory & Lifetimes Ownership, borrowing
9 OOP Traits, impl blocks, methods
10 Generics Type-safe templates
11 Concurrency Stackless async/await
12 Advanced Inline assembly, raw blocks
13 Interop C, C++, CUDA, Objective-C interop
14 Unit Testing test, assert, expect
15 Diagnostics Compiler warnings, categories
16 MISRA Rules Safety rules, Zen-specific checks

Related Resources

  • zenc: The core compiler source code.
  • awesome-zenc: A collection of examples and Rosetta Code implementations.

Contributing to Docs

Documentation is a community effort. If you find a typo, outdated information, or want to contribute a new guide, please open a documentation issue or pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors