vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation

* Random Tools

vrJASS

Views: 3720
Replies: 2
Posted by Ruke
June 02, 2016, 11:00:57 PM

SharpCraft, a managed replacement for Reinventing the Craft

Views: 4276
Replies: 0
Posted by BlizzMod
May 17, 2016, 10:20:13 PM

Gmax 1.2

Views: 10231
Replies: 5
Posted by BlizzMod
April 27, 2012, 07:49:05 AM

MDLVis

Views: 12917
Replies: 4
Posted by BlizzMod
February 19, 2011, 10:41:41 PM

GMSI

Views: 344
Replies: 0
Posted by gekko
November 20, 2010, 09:02:36 PM

vrJASS

Ruke · 3721

0 Members and 1 Guest are viewing this topic.

Rating
Average Score
« Created: July 06, 2018, 04:09:19 AM by yxq1122 »
+ Show previous

vrJASS
on: June 02, 2016, 11:00:57 PM
Version: 1.8.0
Keywords: jass,vrjass,vjass,compiler,language
Operating System (OS):
  • Linux
  • Windows XP
  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 10
  • Mac OS X Leopard
  • Mac OS X Tiger
Tool Category: Jass Scripting, Specific WE Module as a Standalone App
Rating: 5
Image/screenshot:
Warcraft III Tool resource
« Created: June 02, 2016, 11:00:57 PM by Ruke »
« Last Edit: September 03, 2018, 05:35:21 AM by moyack »

What is vrJASS?
A just-for-fun programming language which compiles down to JASS (Warcraft 3). It aims to improve and replace the beloved vJASS.

What? x2
An update to vJASS which tries to solve its flaws.

I want to try it! - I need a manual
https://github.com/Ruk33/vrJASS/wiki

Last version
https://github.com/Ruk33/vrJASS/releases

Like SublimeText?
Here, a linter: https://github.com/Ruk33/SublimeLinter-contrib-vrjasslint

TODOs
  • 80%-100% (I'm planning not to implement a few features, like function interfaces, but if anyone can/want-to code it, will be welcome) compatibility with vJASS
  • Improve debug messages
  • Fix (module) initializations (implemented as abstract classes)
  • Improve OOP (type-safety, attributes initialization, etc.)
  • Anonymous functions
  • Free variable definition
  • Add operators +=, -=, *=, /=
  • Improve/add loops
  • Null/Empty string/0 Conditional (null->false, "" -> false, 0 -> false)
  • Auto-null local handle variables Optimizers do this already
  • Return array Simply use structs
  • Allow end as alternative to endfunction, endmethod, endloop, etc.
  • Hooks (before/after)? Delegated to cJASS
  • Alternative C-like syntax Delegated to cJASS

    Green -> Done

    When is it gonna be ready?
    It already is on an stable version!

    Where can I see the progress/code?
    https://github.com/Ruk33/vrJASS

    How can I help you?
    If you know Java or Antlr4 you can check the repository and send me pull requests (don't worry if you don't know too much about them, I'm new too!). If you don't know these languages, let me know your suggestions, I'm open to them :)

    So there will be no changes for the final-user (you), it will be like coding with the actual vJASS in my current setup in Newgen without any weird stuff,  right?
    Kinda. Yes, it is gonna be the same syntax, same features (excepting just a few that no one uses) but with a few and hopefully useful new features like better error messages, free variable definition (not only at the beginning), new loops, etc..

    Few examples
    Anonymous functions
    Code: jass
    1. call TimerStart(..., function
    2.     local timer expiredTimer = GetExpiredTimer()
    3.     // ...
    4. endfunction)

    Free variable definition
    Code: jass
    1. function foo takes nothing returns nothing
    2.     call TimerStart(...)
    3.  
    4.     if (...) then
    5.        // ...
    6.     endif
    7.  
    8.     local unit bar = CreateUnit(...)
    9. endfunction

    Operators +=, -=, *=, /=
    Code: jass
    1. local integer i = 5
    2.  
    3. set i += 5 // same as set i = i + 5
    4. set i -= 5 // same as set i = i - 5
    5. set i *= 5 // same as set i = i * 5
    6. set i /= 5 // same as set i = i / 5

    Improved loops
    Code: jass
    1. while (true)    
    2.     if (shouldSkipThisIteration) then
    3.         continue
    4.     endif
    5.  
    6.     // ...
    7.  
    8.     if (isOver) then
    9.         break // same as exitwhen true
    10.     endif
    11. endwhile

    Null/0 conditional
    Code: jass
    1. local unit u = null
    2.  
    3. if (u) then
    4.     // unit isn't null
    5. else
    6.     // unit is null
    7. endif
    8.  
    9. local MyCustomStruct instance = ...
    10.  
    11. if (instance) then
    12.     // instance exists (allocated)
    13. else
    14.     // instance does not exists (not-allocated)
    15. endif

    What does vr mean?
    Pick the one you like the most:
  • Beer (default), because everyone loves beer
  • Vexorian r$~%d-newbetterversionftw
  • Vexorian Ruke


Greetings.
« Last Edit: September 03, 2018, 05:35:21 AM by moyack »



Re: vrJASS
Reply #1 on: June 02, 2016, 11:04:41 PM

Hi Ruke, Welcome to Blizzmod!!

Awesome project you're proposing here :) Definitely, a good addition for JNGP in the upcoming version.


Re: vrJASS
Reply #2 on: June 02, 2016, 11:16:36 PM

Hi moyack. Thanks for considering adding this project to JNGP !.



 

Power of Corruption - A Warcraft III altered melee map   Chaos Realm - The world of Game modders and wc3 addicts     WC3JASS.com - The JASS Vault   Jetcraft - A Starcraft II mod