Skip to content

Pseudocode Transpiler for Hexcasting

License

navarchus/HexTranspiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HexTranspiler

Pseudocode Transpiler for Hexcasting
Current minecraft version supported: 1.20.1

HOW TO USE:

get the install script:

wget https://raw.githubusercontent.com/navarchus/HexTranspiler/refs/heads/master/install.lua

run the install script

ex: install.lua

Subcommands

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

Arguments

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 to true

Example Usage

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.

TODO:

  • 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

About

Pseudocode Transpiler for Hexcasting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published