Language Setup
Brainf**k Supported!
HHSOJ-Essential supports customizing and adding new programming languages. They are defined in config/lang.json
in Server Manager's folder.
Adding a language
Write your lang.json file as follows:
The reason why we need opCode
and file
is to prevent codes from doing something dangerous. For example, you should never allow a program to delete all files in your server! These two arguments differ from language to language, server to server maybe.
Important: You have to restart the Judger after changing the lang.json! It's not necessary to restart the Manager, but it's recommended to do so.
You can Google or explore Ace official site to get the language's ace code. Mostly it's just the language name in lower case. One exception is C/C++.
Note that this field is only needed if you use Maven version.
Last updated
Was this helpful?