CIMPLE (pronounced "simple") is a high-level programming language that merges Python-like syntax with C++ performance. It is designed to be beginner-friendly like Python, but compiled and optimized like C++. CIMPLE files (.cimp) are translated into native C++ code and compiled via g++.

This version, CIMPLE v0.2 Beta, introduces foundational programming features and builds a bridge between readability and raw power.

  • Python-style syntax (print(), cin(), indentation-based blocks with : and end)
  • Type declarations (int, float, string, etc.)
  • Arithmetic, comparison, logical, and bitwise operations
  • Conditionals (if, else) and Loops (while, for)
  • User-defined functions, single-line and multi-line comments
  • C++-style cin() input supported
  • Modular imports using import cimple.module
  • Compiles to C++ (translates to .cpp and builds to .out)

  • .cimp files: Source code files written in CIMPLE
  • output.cpp: Auto-generated as translated C++ code
  • run.out: The final compiled executable

CIMPLE modularizes C++ headers into grouped import aliases:

CIMPLE ImportIncludes
import cimple.inoutiostream, fstream, sstream, iomanip
import cimple.datavector, list, deque, map, set, unordered_map
import cimple.algoalgorithm
import cimple.mathcmath, numeric, complex, valarray, random
import cimple.utilutility, memory, tuple, chrono, type_traits
import cimple.strstring
import cimple.locallocale
import cimple.diagstdexcept, cassert
import cimple.multithreadthread, mutex, future, condition_variable, atomic
import cimple.filefilesystem
import cimple.regexregex
import cimple.rangeranges
import cimple.corotcoroutine

Variables & Data Types

int x = 5
float pi = 3.14
string name = "Saravanan"
bool isCimpleCool = true

Printing

print("Hello,", name)

Input (C++ style)

int age
cin(age)

Arithmetic & Operators

Supports all standard operators from C++, including: + - * / %, == != > < <= >=, && || !, & | ^ ~ << >>, `= += -= *= /= %=`, ++ --

If-Else

if(x > 10):
    print("Greater")
else:
    print("Smaller or equal")
end

Loops (While & For)

// While Loop
int i = 0
while(i < 5):
    print(i)
    i++
end

// For Loop
for(int i = 0, i < 5, i++):
    print("i =", i)
end

Functions

void greet():
    print("Hello from a function!")
end

greet()

// Function with return value
int add(int a, int b):
    return a + b
end

Comments

// This is a single-line comment

/*
This is a multi-line comment
that can span multiple lines.
*/

Example Program — Factorial

print("Enter a number:")
int a
cin(a)
int fact = 1
for(int i = 1, i <= a, i++):
    fact *= i
end
print("Factorial is:", fact)

  • Support import logic to inject modules automatically
  • String manipulation utilities
  • Class/object support
  • File handling functions
  • Enhanced function parameters (default values, multiple returns)
  • Cross-platform executable packaging

We’re building a new, open-source programming language made by and for young developers and passionate learners. If you believe in the power of simplicity and performance — this is your language.

Website: https://cimple.neocities.org | License: GNU General Public License v3.0

Get Involved

  • Suggest features or report bugs on GitHub
  • Share tutorials or projects using CIMPLE
  • Help build the standard library and docs
  • Join discussions in Reddit and forums