ChemiAssembler

Human readible code to ChemiCompiler code compiler.

Overview

This tool builds chemf*** programs for the ChemiCompiler in the Goonstation codebase for Space Station 13. The syntax is based on assembly. Visit the Goonstation wiki for a detailed guide to the ChemiCompiler.

  • API - Click to show/hide
    Notes
    • Number inputs are indicated with # followed by a letter. In code you should replace #s with just the number of the source
    • The code ignores letter case and white space excluding the print command.
    • Comments begin with # just like python, however they must be on their own line.
    • The current version only checks for some syntax errors.
    • Values must be separated by commas.
    • The sfor loop cannot yet be nested.
    Commands
    Command Action
    mov #a, #s, #t moves #a amount from #s source container to #t target container
    movall #s, #t moves all the contents of #s source container to #t target container
    temp #s, #v sets the temperature of #s source to #v value
    iso #a, #r, #s, #t isolates #a amount of #r reagent from #s source to #t target
    pill #s makes the contents of #s into pills. Identical to movall-ing the contents to 11
    vial #s makes the contents of #s into vials. Identical to movall-ing the contents to 12
    dump #s dumps the contents of #s. Identical to movall-ing the contents to 13
    compile this line anywhere in the code indicates that the resulting program should have ~ appended
    print #text prints #text to the ChemiCompiler screen (this adds a lot of code to the output)
    sfor #i simple for loop, iterates the code below until end #i times. If #i <= 0 the code is skipped
    end markes the end of a loop

Output Code

Feel free to submit an issue or contact Slugo#7646 on discord to suggest changes.