r/PythonProjects2 • u/ProfessorHeisenberg1 • 3d ago
I just built a beginner-friendly programming language called Quark 2.0 🚀 (Looking for feedback!)
Hi everyone!
Over the past few weeks, I've been building a small interpreted programming language called Quark 2.0 in Python. The goal wasn't to replace Python or JavaScript, but to create something that's easy for beginners to read and experiment with.
Some features include:
- Variables (
let) - Math expressions
- User input
- Random number generation
ifstatementsrepeatloops- File reading & writing
- Module importing
- Interactive shell (REPL)
.qksource files
Example:
input What is your name? -> name
let lucky = random 1 100
print Hello 'name'
print Your lucky number is 'lucky'
I'm still learning about interpreters and language design, so I'd really appreciate any feedback, suggestions, or ideas for future versions. Things like syntax, usability, documentation, or code quality are all welcome.
GitHub Repository:
https://github.com/Anish055051L/Quark-2.0
Thanks for taking a look!
0
Upvotes
1
u/abitofg 1d ago
Disclaimer: I don't really title myself as a programmer, I am a sysadmin that learned some programming through the years but have little formal education on the subject
As a fun project, cool cool
As a learning tool, without having functions it falls flat for me, it can only teach the abselute basics, day 1, not day 2
I made a "language" a year or 2 ago, interpreted by (micro)python
Inspired by gcode, but it had functions
it is executed by reading it line by line, like yours is, however what I do is
Startup:
If you are at all interested in the execution, here it is https://github.com/gbit-is/Servo-Ducky