WurstScript
WurstScript copied to clipboard
Programming language and toolkit to create Warcraft III Maps
- [ ] ImmutableList.java (use vavr instead) - [ ] ImmutableTree - [ ] ElementaryCircuits - [ ] Graph - [ ] IntTuple
I know that the constants are just a text file that can be placed in `imports` folder but Wurst does not allow us to read data from external files, does...
```wurst package testcom import HashMap HashMap test_map= compiletime(new HashMap()) @compiletime function initMap() test_map.put(1,10) init Log.info(test_map.size().toString()) Log.info(test_map.get(1).toString()) ``` should get ``` 1 10 ``` but get ``` 1 0 ``` is...
The following example does not work. ``` package Test import HashMap let map = compiletime(new HashMap()) @compiletime function initialize() map.put("hello", "world") ``` Error in File Hashtable.wurst line 11: You encountered...
# Problem Sometimes we need to read some info from files at compile time # Solution To add file reading possibility where we get plain text and can handle it...
Wurst has a very good support of creating custom units/destructables/etc. at compiletime, but the sad thing is that we cannot use these tools to modify existing custom units, e.g. I...
I am trying to extend LLIterator found in LinkedList.wurst and it does not seem to accept what looks like a well-formed constructor. ``` package ListIterator import LinkedList public class ListIterator...
When I have a base class that implements an interface and a derived class that implements an additional interface where both interfaces have a function of the same signature I...
The following code does not compile. ``` package NewGenericClassWithModule import LinkedListModule class MyClass use LinkedListModule ```
Here is an overview of the compilation times for EBR for the different phases when compiled with `-runcompiletimefunctions -stacktraces -inline -localOptimizations -measure`. ``` parse files: 5592ms Typecheck program: 6296ms Translate...