Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

PercentEquals/CLL

Repository files navigation

CLL https://img.shields.io/github/license/PercentEquals/CLL https://ci.appveyor.com/api/projects/status/github/PercentEquals/CLL?branch=master&svg=true

Demo gif

CLL is my attempt at creating a 'simple' programming language with c-like syntax and ideas such as operator precedence or data types.

It also borrows some ideas from others interpreted languages like Python or batch/bash such as triple equals sign and the way arguments are passed.

CLL can be used to create scripts or can be embedded into a c++ project.
It is also worth pointing out that CLL is turing complete, but it is not object-oriented.

Useful links

Features

  • Dynamic variables
  • Multidimensional and irregular arrays (vectors)
  • Flow control
  • Functions
  • User defined functions
  • Recursion

Installation

Windows

You can download latest interpreter from here or You can compile it yourself preferably using Visual Studio with v142 toolset on 10.0.18362.0 Windows SDK.

Linux

You need to compile it Yourself with g++. I prepared CMakeLists.txt to make it easier.
First install cmake: sudo apt-get install cmake, then You need to download or clone the
whole project and lastly from the project directory You need to execute the following commands:

mkdir build && cd build
cmake ..
make
sudo make install

Build requirements

CLL uses c++14 features, so it must be compiled with c++14 flag.
CLL directory must be built as a static library.
No external libraries needed.

Contributing

Every contribution is welcome, whether it is typo or bug fix or some new feature.
You can also create example scripts and embedded c++ programs. More info here.