Shard is a programming language that combines low-level control, suitable for operating systems, with the flexibility to develop high-level applications.
- 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 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
Step 1: clone the repository
git clone https://github.com/shardlanguage/shardStep 2: make sure that you have Python3 installed on your system
python3 --versionStep 3: run the installation script as root
cd shard
chmod +x install.sh
su
./install.shStep 4: test the installation
shardc --versionTo update Shard automatically, run update.sh:
cd shard
chmod +x update.sh
su
./update.shMakefile and make.bat are used to build the docs locally!
If you want to learn Shard, you can read the full documentation here.
The contributing guide can be found here.