• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

HIVE

Chaosy
Chaosy
Not a fan at all. And that's coming from someone who studies javascript atm
D
Deleted member 219079
Can you describe JASS syntax you'd love, with an example of some kind?
Chaosy
Chaosy
I am perfectly happy with zinc as far as syntax goes, what I'd actually prefer would be features. Such as local declaration at any part of the code.

Oh yeah and a different way to define operators TY. Both Javascript and C# got decent syntax for this unlike vjass and zinc
D
Deleted member 219079
Zinc's for loop construct is autistic tho, along with the forward declared text macros. And you really want to type function, not fn? And have explicit return types?
Chaosy
Chaosy
Which is why I use while loops ;P
But yes you are right the for loops could indeed be changed to the standard.
Yes, I would rather type function instead of fn. In Javascript you do not have to type either. You just type Hi(){ ... }
Chaosy
Chaosy
Curious question btw, how do you develop it? What I mean is, which file is it that is responsible for the syntax?
D
Deleted member 219079
It is in C++. I have context-agnostic reader class with generic text parsing functionality, context class that'll store symbol/type declarations/definitions and do the actual parsing and the main function which manages filesystem interaction and procs context object. So the syntax is sort of hard coded into the code.
Chaosy
Chaosy
What I mean is, how do you put whatever code you have into JNGP.
Say I can convert a string of customized JASS code into JASS code in a console application, how would I implement it in JNGP?
D
Deleted member 219079
Chaosy
Chaosy
So you use this library as a dependency to inject your converted code into a map file which is treated as an MPQ?
D
Deleted member 219079
Yes
Chaosy
Chaosy
Interesting. Theoretically speaking I only need to figure out how to make the WE do the injection process now ;P
Top