HEY THERE!
The BattleScript compiler is written in TypeScript so it can be executed anywhere JavaScript can run (such as in your browser). Your BattleScript code is compiled to the JSON-based AST format, (or the optional binary format found in the download section) by the compiler running in your browser. No internet connection is required to compile your scripts. You can also use the compiler in your own projects or download your own version for use in the command line. NPM Package: @irrelon/battlescript
BattleScript Online Compiler
Paste your BattleScript code below and click "Compile" to generate the Abstract Syntax Tree (AST).
Input Code
Compiled AST
BattleScript Online Decompiler
Paste your compiled AST below and click "Decompile" to generate the BattleScript code.