Skip to content

Repository files navigation

Pebble Programming Language

Pebble is a tiny compiled esoteric programming language.

Installation

Requirements

  • Python 3
  • GCC (or another C compiler)

Creating a Program

Create a text file with the extension .peb.

Example: countdown.peb

+++++[.-]

Language Commands

Command Description
+ Increment x
- Decrement x
. Print x
, Input x
[ Start loop
] End loop

The language has one integer variable called x, which starts at 0.

Compiling

Run:

python pebble.py countdown.peb countdown.c

This converts the Pebble program into C code.

Building

Compile the generated C code:

gcc countdown.c -o countdown

Running

Windows:

countdown.exe

Linux/macOS:

./countdown

Example

Source:

+++++[.-]

Output:

5
4
3
2
1

Workflow

program.peb
     ↓
 pebble.py
     ↓
 program.c
     ↓
    GCC
     ↓
 executable

About

Pebble is a tiny compiled esoteric programming language written by me.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages