Shard documentation
Summary
What is Shard?
Shard is a programming language that combines low-level control, suitable for operating systems, with the flexibility to develop high-level applications
Features
C-like syntax, but cleaner and modern
Strong typing: supports built-in and user-defined types
Pointers like in C
Structures and arrays easy to declare, initialize and access
Preprocessor with regex pattern-based macros
Cross-platform backend: compiles to C code and supports freestanding, configurable target compiler
Extensible compiler: adding backends is easy
Namespaces organize your code into logical units
Installation
Step 1: clone the repository
git clone https://github.com/shardlanguage/shard
Step 2: make sure that you have Python3 installed on your system
python3 --version
Step 3: run the installation script as root
cd shard
chmod +x install.sh
su
./install.sh
Step 4: test the installation
shardc --version
Updating
To update Shard automatically, run update.sh:
cd shard
chmod +x update.sh
su
./update.sh
Learn Shard
If you want to learn Shard, then you are in the right place! This documentation provides examples and explanations about every feature of the language.
Contributing
The contributing guide can be found here.