Warcraft 3 documentation
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

vrJASS No New Posts WC3 Editing Tools

Started by
Ruke

0 Members and 1 Guest are viewing this topic.

Rating

Average Score - 5 / 5

« 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
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 !.



 

* Random Tools

Warcraft 3 Launcher

Views: 7386
Replies: 2
Posted by moyack
March 06, 2019, 08:05:53 PM

PJass updates

Views: 3686
Replies: 2
Posted by LeP
December 05, 2014, 02:27:07 PM

Magos' War3 Model Editor

Views: 31851
Replies: 4
Posted by magos
August 28, 2011, 11:16:11 PM

MDLVis

Views: 21850
Replies: 4
Posted by WC3Mod
February 19, 2011, 10:41:41 PM

BLPaletterGUI

Views: 1804
Replies: 1
Posted by Deaod
November 30, 2010, 06:48:58 PM
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...