Skip to content

drib-lang/adi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Drib Interpreter

Code style: black Code style: black Drib: 0.2.0 Python: 3.11

While Drib may look like a normal programming language, it does not support numbers in the traditional sense. All numbers must be stored as strings, and arithmetic operations are performed using built-in functions that operate on these string representations. That is what makes Drib special; that is what makes Drib esoteric.

Prerequisites

  • Python 3.11
    Note: Drib may work with other Python versions, but this has not been tested.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/drib-lang/adi.git
  2. Navigate to the project directory:

    cd di
  3. A virtual environment is not required.

REPL

To start the Drib REPL, run:

python3 src/drib.py

Execute a Drib (.drib extension) file

To execute a Drib file, run:

python3 src/drib.py examples/fibonacci.drib

Generate a Python file

To generate a Python file, run:

python3 src/drib.py examples/fibonacci.drib -o fibonacci.py

This will not execute the code.

Planned Features

The following features are planned for future releases, but are not yet implemented:

  • Loops: Support for loops.
  • Lists: Support for list data structures and related operations.
  • Dictionaries: Support for dictionary (key-value) data structures and related operations.
  • Image Processing: Capabilities for handling and processing images within Drib programs.

If you have suggestions for additional features, feel free to open an issue or contribute!