Pseudocode Transpiler for Hexcasting
Current minecraft version supported: 1.20.1
wget https://raw.githubusercontent.com/navarchus/HexTranspiler/refs/heads/master/install.lua
ex: install.lua
There is one subcommand: cgs or cleargreatspell. Using this command clears saved greatspells from local storage.
ex:
hexpiler cgs "Create Lava" will clear any definition for "Create Lava"
hexpiler cgs all will clear ALL great spell definitions
There are three arguments:
--input/-i: Required, string, file path to the .hexpattern file to transpile.--output/-o: Optional, string, file path to write raw anglesigs to. Will not write anything if not set.--export/-e: Optional, boolean, whether to write the result to a focal port. Defaults totrue
The command
hexpiler -i counter.hexpattern -o a.out -e true
would attempt to read the file counter.hexpattern, write raw anglesigs to the file a.out, and attempt to write the result to an attached focal port.
- Optimized numerical reflection/more accurate numerical reflection (https://s5bug.github.io/squiggler/ is an option)
- could also look into re-introducing decomposition
- More detailed error messages
- Use Hexbug format instead of custom format for lookup tables (no regex so may be impossible)
- nested #include directives (need to figure out cyclical dependency detection)
- document scraper usage