Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
nmunro31907yI notice the for loop has an implicit increment by one counter, can this be changed? You might want to count down or by more than one.
I didn't see a switch, while or do-while.
It's not object oriented, ok, fair enough, is it simply Imperative then?
My real question is why? If it's for practice that's fair enough, but are you actually trying to build your own language from scratch to solve a specific problem?
I guess -
@nmunro thanks for your comment!
I have no solution for the for-loop problem right now, I'm not sure why that is happening.
And no, there are no switch or while-loops yet, I'm planning to implement them soon.
I created this language just for fun!
I wasn't trying to solve anything :) -
@nmunro I am planning to implement Structs...
If anyone wants to implement classes, go ahead but I won't do it :'D -
nmunro31907y@ianertson You don't need classes for object orientation, the other popular way is via prototypes, JavaScript, Lua, self and IO all use prototypal inheritance instead of classes.
There might even be another, as yet undeveloped way to implement OOP!
I must confess I never actually ran your interpreter, I just read the documentation in the for loops which did not have a step option listed.
There's also no list or dictionary type listed in your documentation, not being critical just thinking of what else you might need! -
devios157707yBest line from the readme:
If you are familiar with either one of C, PHP, Java or Javascript, you probably don't need to read the documentation.
Spoken like a true developer! 😄 -
In tokens/For.cpp
Line 9:
Shudnt
e_args.size() < 2
also account for
e_args.empty()
? -
@Electrux Thank you so much!
I have been really focusing on making my coding style better
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
So I have created my own programming language, thoughts?
https://github.com/sebbekarlsson/...
undefined
programming language
language
c++