π€ KhaledFlow - The Major Key to Coding! This esoteric, interpreted programming language is brought to you by the power of Rust. It's simple, it's effective, and it's here to help you shine. Let's get this money!
.
βββ build_and_run.sh # The Key to Success: Shell script to build and run the Docker container
βββ Dockerfile # Secure the Bag: Dockerfile for building the project environment
βββ khaledflow
β βββ Cargo.toml # Major Configuration: Cargo file for the Rust project
β βββ src
β β βββ interpreter.rs # The Voice of the Interpreter
β β βββ lexer.rs # The Lexer, Another One
β β βββ main.rs # The Main Event
β β βββ parser.rs # The Parser, Bless Up
β βββ test_scripts
β βββ output.dj # Test Script, Let's Win
βββ README.md # This Document, You Smart
- π³ Docker - Because you a genius.
π Step 1: Execute the Key to Success, the shell script:
'./build_and_run.sh'
This script will:
1. Build the Docker image and tag it as khaledflow_image.
2. Run the Docker container based on the built image.
Manual Docker Commands
If you prefer to do it manually, hereβs how you secure the bag:
1. Build the Docker Image:
'docker build -t khaledflow_image .'
2. Run the Docker Container:
'docker run --rm khaledflow_image'
We got the best example script in the test_scripts directory:
ANOTHER_ONE my_string "string value here"
ANOTHER_ONE my_float 51.1
ANOTHER_ONE my_number 5
SING my_number
SING my_float
SING my_string
Lexer (lexer.rs): Turns your script into tokens. Major key alert!
Parser (parser.rs): Converts tokens into statements. Bless up!
Interpreter (interpreter.rs): Executes the statements. Another one!
You smart. You loyal. You got ideas? Bring βem in! Open an issue or submit a pull request. We appreciate you.