Raaawr! is a primal, yet powerful, programming language designed for the modern dinosaur enthusiast. It's simple, expressive, and full of roars and stomps, making programming a prehistoric adventure!
-
Dino-Inspired Syntax: Keywords like GRRRRRRR!, HSSSSSSS!, RAAAWR!, ROAR, and SNIFF bring the Jurassic era to your code.
-
Variables: Declare and assign values to variables using RAAAWR! and RAAAWR..
-
Functions (Territories): Organize reusable code blocks with DEFINE_TERRITORY and END_TERRITORY, and call them with CALL_TERRITORY.
-
Control Flow: Implement conditional logic with IF_ROAR/THEN_CHOMP/ELSE_STOMP/END_HUNT and loops with WHILE_ROAR/KEEP_MIGRATING/END_MIGRATION.
-
Arithmetic & Comparison: Perform calculations and comparisons using RAAWR+, RAAWR-, RAAWR*, RAAWR/, RAAWR%, RAAWR==, RAAWR>, RAAWR<.
-
String Concatenation: Join values with the mighty ROOOOAAR operator.
-
Input/Output: Interact with the user via ROAR (output) and SNIFF (input).
-
Web-based Playground: A live interpreter in your browser to write and run Raaawr! code instantly.
-
Command-line Interpreter: A Node.js-based interpreter for running Raaawr! scripts directly from your terminal.
Raaawr/
├── docs.css # Styling for the documentation page.
├── docs.html # Comprehensive documentation for the Raaawr! language.
├── index.html # The main web-based Raaawr! code playground.
├── interpreter.js # The core JavaScript logic for the web-based Raaawr! interpreter.
├── index.js # (Assumed) The Node.js-based command-line interpreter.
├── README.md # This file.
└── style.css # Styling for the main playground (index.html).
To start coding in Raaawr! instantly in your browser:
-
got the website https://sajagin.thedev.id/Raaawr
-
Write your Raaawr! code in the editor.
-
Click the "Run Raaawr!" button to see the output in the console below. Input prompts (SNIFF) will appear directly in the output area. Errors will be logged in a separate "Fatal Roars" terminal.
For a detailed guide on Raaawr! syntax, commands, and features:
-
got the website https://sajagin.thedev.id/Raaawr/docs.html
-
Navigate through the sidebar to explore different aspects of the language.
To run Raaawr! scripts from your terminal (requires Node.js installed):
Make sure you have Node.js installed on your system.
-
Navigate to the Raaawr/ directory in your terminal.
-
Create a Raaawr! program file (e.g., my_program.raaawr).
-
Run your program using the command-line interpreter:
node index.js my_program.raaawr(Note: The exact usage might vary slightly depending on the implementation details of index.js.)
Every Raaawr! program starts with GRRRRRRR! and ends with HSSSSSSS!.
GRRRRRRR!
// This is a fossilized thought (comment)!
RAAAWR! MY_VARIABLE RAAWR 10
ROAR "My variable is: " ROOOOAAR MY_VARIABLE
IF_ROAR (MY_VARIABLE RAAWR> 5) THEN_CHOMP
ROAR "It's greater than 5!"
ELSE_STOMP
ROAR "It's not greater than 5!"
END_HUNT
DEFINE_TERRITORY GREET_HUNTER (hunter_name)
ROAR "Hello, " ROOOOAAR hunter_name ROOOOAAR "!"
END_TERRITORY
CALL_TERRITORY GREET_HUNTER ("Rex")
HSSSSSSS!
For a complete reference, please refer to docs.html.
This project is licensed under the MIT License.