Skip to content
PriyanshuRauth edited this page Aug 30, 2025 · 2 revisions

📖 RRL Wiki

Home

RRL is a lightweight and beginner-friendly programming language designed for robotics and automation. Its goal is to make robotics programming accessible to anyone, from hobbyists to researchers, while still being flexible enough to support advanced projects.

🔹 Simple Python-like syntax 🔹 Built-in robotics simulation support 🔹 Easy to extend for custom hardware


Getting Started

Installation

Clone the repository:

git clone https://github.com/PriyanshuRaut/RRL_OpenSource.git

Run an RRL program:

python rrl.py examples/hello.rrl

Syntax Guide

Comments

# This is a comment
x = 10  # Inline comment

Variables

x = 10
y = 2.5
name = "R"
flag = true

Control Flow

if x > 5
  display("x is big")
elif x == 5
  display("x is exactly 5")
else
  display("x is small")
endif

Loops

repeat 3
  display("Hello!")
endrepeat

while x > 0
  display("Counting:", x)
  x = x - 1
endwhile

Functions

def greet(name):
    display "Hello, " + name
enddef

greet("RRL User")

Features

  • RobotSim → a built-in simulation object for testing robotics code without hardware.
  • Display function → simple text or data output.
  • Def/Enddef → define reusable functions.
  • Repeat / Loop → easy looping constructs for beginners.
  • Math & Logic → supports arithmetic, comparisons, and logical operators.

Examples

Hello World

display("Hello, World!")

Simple Robot Movement

robot.move(10)
robot.rotate(90)
display("Movement complete!")
display(robot)

Roadmap

  • Add hardware driver support (Arduino, Raspberry Pi)
  • Extend standard library (math, strings, lists)
  • GUI simulator for robot movements
  • Stable Public Version (Compiler based)

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m 'Added feature X')
  4. Push to the branch (git push origin feature-name)
  5. Open a Pull Request

License

RRL is released under the MIT License.