Skip to content

sapirrior/cplus

Repository files navigation

C+ (C-Plus) Programming Language

C+ is a modern, high-performance programming language designed for clarity, safety, and efficiency. It features a clean, block-based syntax and a robust standard library, making it an excellent choice for everything from systems programming to rapid application development.

Key Features

  • Modern Syntax: Uses a consistent, block-based structure for better readability and maintainability.
  • Automated Memory Management: Features built-in memory safety with automated cleanup, allowing you to focus on logic rather than manual memory allocation.
  • Strongly Typed: Provides type safety while remaining flexible enough for dynamic data structures.
  • Cross-Platform: Compiles and runs seamlessly on Linux, macOS, and Windows.
  • Extensible Architecture: Built with a modular C++20 core, designed for easy extension and high performance.

Getting Started

Installation

You can download the latest pre-compiled binaries for your platform from the Releases page.

To run a C+ script:

./cplus script.cp

To enter the interactive REPL:

./cplus

Your First C+ Program

Create a file named hello.cp:

def greet(name) {
    if (name == None) {
        print("Hello, World!");
    } else {
        print("Hello, " + name + "!");
    };
};

greet("Developer");

Run it with: ./cplus hello.cp

Documentation

Comprehensive guides are available in the documentation/ directory:

  1. Introduction to C+
  2. Language Syntax
  3. Control Flow
  4. Operators & Expressions
  5. CLI Usage

Contributing

We welcome contributions! Please see our Contributing Guidelines for more information.

License

C+ is licensed under the MIT License.

About

A High-level Programming Language Named C+

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors