Welcome to Atomic, a lightweight and fun programming language written in Rust! 🚀
Atomic allows you to execute basic arithmetic operations and print messages to the console. 🖥️✨
✅ Print messages → print "Hello, Atomic!"
✅ Perform addition → add 5 3 → 8
✅ Perform multiplication → multiply 6 7 → 42
✅ Easy to extend → Add more commands in Rust!
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shgit clone https://github.com/arjun-myanger/atomic-lang.git
cd atomic-langcargo buildCreate a file named code.atomic with the following content:
print "Hello, Atomic!"
add 42 8
multiply 6 7
Run it with:
cargo run code.atomicprint "Hello, Atomic!"
🖥️ Output:
Hello, Atomic!
add 5 10
🖥️ Output:
5 + 10 = 15
multiply 3 4
🖥️ Output:
3 * 4 = 12
1️⃣ Lexer: Converts Atomic code into tokens 🧩
2️⃣ Parser: Organizes tokens into an AST (Abstract Syntax Tree) 🌲
3️⃣ Executor: Reads the AST and runs the commands 🎯
🚀 Support for subtraction & division
🔢 Variable assignments (let x = 5)
📝 User input handling (input name)
🔁 Loops & conditionals (if, while)
Want to make Atomic even more powerful? Open a PR! 🛠️🚀
This project is licensed under the MIT License.
⚛️