DEV Community

Rasa Dariush
Rasa Dariush

Posted on

πŸš€ Introducing Pebble: A Tiny New Programming Language

Hey everyone πŸ‘‹

I’m super excited to announce Pebble, my own programming language β€” simple, fun, and beginner-friendly. I just published it to PyPI so anyone can install and try it out! πŸŽ‰

🌟 Why Pebble?

Pebble is designed to feel light and readable, kind of like Python, but with its own twist:

  • Friendly keywords (fnc, say, out, go, until)
  • Easy math and variables (x is 10)
  • Built-in loops, conditionals, functions
  • Lists and dictionaries with clean syntax
  • Input and output made super simple

I wanted something that feels natural, is easy to pick up, but still powerful enough to build stuff.

πŸ› οΈ Installation

Pebble is on PyPI, so you can grab it with:

pip install pebble-lang
Enter fullscreen mode Exit fullscreen mode

πŸ“‚ Usage

Write your Pebble code in a .pb file, then run it with:

python -m pebble yourfile.pb
Enter fullscreen mode Exit fullscreen mode

✨ Example Code

say "Hello Pebble!"

x is 10

fnc double(n):
    out n * 2

say double(x)

go i in {1, 2, 3}:
    say "loop " + i
Enter fullscreen mode Exit fullscreen mode

βœ… Output:

Hello Pebble!
20
loop 1
loop 2
loop 3
Enter fullscreen mode Exit fullscreen mode

πŸ’‘ Features

  • say β†’ print to screen
  • fnc β†’ define functions
  • out β†’ return values
  • go β†’ for loops
  • until β†’ while loops
  • inp[...] β†’ get input
  • ! β†’ comments

And much more coming soon πŸš€

πŸ“’ Get Involved

The project is open-source on GitHub:
πŸ‘‰ Pebble-lang
I’d love feedback, ideas, and contributions. This is just the beginning β€” Pebble will grow with the community!

Top comments (0)