1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Maven] JASS Syntax Tree & String Hash utility

Discussion in 'Warcraft Editing Tools' started by FrozenMemories, Jul 1, 2020.

  1. FrozenMemories

    FrozenMemories

    Joined:
    May 26, 2020
    Messages:
    6
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Here are some WC3 related Maven dependencies if anyone here is interested in them. Available through Central, dependency information and usage examples are in the readme.

    JASS Syntax Tree: zach-cloud/JSyntaxTree

    This project allows reading a (V)JASS script into a structured object, which can then be modified and turned back into a (V)JASS script. Provides basic refactoring ability such as code formatting, function/variable renaming, etc.

    String Hash Utility: zach-cloud/JStringHash

    This project allows computation and breaking of WarCraft III StringHash values.

    If you're wondering why there's only one commit, these were broken off my larger project for better cohesion. Contributions are welcome, as are questions/criticisms/etc. The implementations are far from perfect and I'm still developing these.
     
  2. Aniki

    Aniki

    Joined:
    Nov 7, 2014
    Messages:
    542
    Resources:
    6
    Tools:
    1
    Maps:
    1
    Spells:
    1
    JASS:
    3
    Resources:
    6
    They way you do your Jass parsing (scanner/string-find/substring-ing) seems strange. You might want to take a look at LeP's Jass Parser. I don't know about parsing vJass... seems hard, it has textmacros and "stuff".