Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.81 KB

README.md

File metadata and controls

54 lines (42 loc) · 1.81 KB

CxL

The CxL Programming Language

MIT License Code Size

CxL is a general-purpose programming language for UNIX systems and is based on C++. It is more beginner-friendly and makes compiled languages less daunting. It focuses on being compact, fast, and straightforward. It aims to be the "go-to" language that people use when they want to write a program.

Setting up

Clone the repository:

git clone https://github.com/aarikpokras/CxL

For Linux, macOS and UNIX systems:

Enter the directory and run

sh configure.sh

For Windows:

Keep lib and cxlc-win.py in your directory when compiling CxL programs. You can rename cxlc-win.py to cxlc.py:

In PowerShell:

Remove-Item cxlc.py
Move-Item cxlc-win.py cxlc.py

In CMD:

del cxlc.py
ren cxlc-win.py cxlc.py

It should be set up!
Next, see Your first CxL program.

Data types

See using data for more.

Type Description Equivalent in C++
str A string of characters char arrays or std::string
num A number double, float, and int, all in one.
any Either str or num double, float, and int, all in one.
strarr An array of strs string arrays