/TeaPL

TeaPL is a Programming Language (compiler)

Primary LanguagePython

TeaPL

TeaPL - hobby programming language.

It's remake of CharmeleonPL

Currently, it transpiles code into C source.

Features

  • Standard types
    • Numerals (uint, int, short, ...)
    • String
    • Own types creation
  • Variables
    • Assign
    • Reassign
  • Functions
    • Value-Returnable
      • Return any value
    • Non-Value-Returnable
  • Control flow
    • if
    • elif
    • else
  • Loops
    • while
    • for
    • endless
    • break / continue
  • Standard library
  • String concatenation
  • Arrays
    • Single-type
    • Multi-dimensional arrays
    • Indexing
    • Indexing and assigning
    • Multi-type
  • Dictionaries
  • Overflow prevention
  • Pointers
  • Memory safety
  • FFI
    • Minimal

Installation (for Linux)

Make sure clang or gcc installed

  1. Clone repository:

    git clone https://github.com/NDRAEY/TeaPL
  2. Enter directory and install package:

    cd TeaPL
    python3 setup.py install
  3. Now, you have the teapl program installed!

Usage

teapl program.tea