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)