LolL
2011-03-28 15:30:27
An interpreter for a C-type language would, I guarantee after being learned well, increase development fUn and make code so much easier to read/write. No MORE FREAKING BEGINS AND ENDS.
So it doesn't have to have a super-duper complex syntax. We could customize it to our liking (like keep the var tag instead of using C pointers). But must-have features would be:
And I'm sure you guys can think of other features to add. The main point is to finally ditch Pascal, please please. (For Pascal fanatics, people who haven't learned C basics yet, older scripts, etc.: there could be both a C interpreter and Pascal interpreter.)
So it doesn't have to have a super-duper complex syntax. We could customize it to our liking (like keep the var tag instead of using C pointers). But must-have features would be:
- Brackets!! if (thisHappens) { soMuchLessPainfull(); }
- C-type function declarations: int get_noobs() { //code… } – no need to write function/procedure every single time!
- C-type value returning: return 1; return 2; return 3; etc.
- the #define directive
- ZOMG!!! using "=" instead of ":="
- Along with C-type function declarations, there would be C-type variable declarations (no "var")
And I'm sure you guys can think of other features to add. The main point is to finally ditch Pascal, please please. (For Pascal fanatics, people who haven't learned C basics yet, older scripts, etc.: there could be both a C interpreter and Pascal interpreter.)