mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
[Add] Support Node.js and PHP
This commit is contained in:
parent
2eb44c995b
commit
3c942f40ec
@ -473,6 +473,38 @@ _pypy3_lang_config = {
|
||||
}
|
||||
}
|
||||
|
||||
_php_lang_config = {
|
||||
"template": """//PREPEND BEGIN
|
||||
//PREPEND END
|
||||
//TEMPLATE BEGIN
|
||||
//TEMPLATE END
|
||||
//APPEND BEGIN
|
||||
//APPEND END""",
|
||||
"run": {
|
||||
"exe_name": "solution.php",
|
||||
"command": "/usr/bin/php {exe_path}",
|
||||
"seccomp_rule": "",
|
||||
"env": default_env,
|
||||
"memory_limit_check_only": 1
|
||||
}
|
||||
}
|
||||
|
||||
_js_lang_config = {
|
||||
"template": """//PREPEND BEGIN
|
||||
//PREPEND END
|
||||
//TEMPLATE BEGIN
|
||||
//TEMPLATE END
|
||||
//APPEND BEGIN
|
||||
//APPEND END""",
|
||||
"run": {
|
||||
"exe_name": "solution.js",
|
||||
"command": "/usr/bin/node {exe_path}",
|
||||
"seccomp_rule": "",
|
||||
"env": ["NO_COLOR=true"] + default_env,
|
||||
"memory_limit_check_only": 1
|
||||
}
|
||||
}
|
||||
|
||||
_go_lang_config = {
|
||||
"template": """//PREPEND BEGIN
|
||||
//PREPEND END
|
||||
@ -514,9 +546,11 @@ languages = [
|
||||
{"config": _cpp_17_lang_config, "name": "C++ 17", "description": "G++ 9.3.0", "content_type": "text/x-c++src"},
|
||||
{"config": _cpp_17_o2_lang_config, "name": "C++ 17 With O2", "description": "G++ 9.3.0", "content_type": "text/x-c++src"},
|
||||
{"config": _java_lang_config, "name": "Java", "description": "OpenJDK 1.8", "content_type": "text/x-java"},
|
||||
{"config": _js_lang_config, "name": "JavaScript", "description": "JavaScript (NodeJs 14.16)", "content_type": "text/x-javascript"},
|
||||
{"config": _php_lang_config, "name": "PHP", "description": "PHP 8.0", "content_type": "text/x-php"},
|
||||
{"config": _py2_lang_config, "name": "Python2", "description": "Python 2.7.17", "content_type": "text/x-python"},
|
||||
{"config": _py3_lang_config, "name": "Python3", "description": "Python 3.6.9", "content_type": "text/x-python"},
|
||||
{"config": _pypy2_lang_config, "name": "Pypy2", "description": "Python 2.7.18 with PyPy 7.3.5", "content_type": "text/x-python"},
|
||||
{"config": _pypy3_lang_config, "name": "Pypy3", "description": "Python 3.7.10 with PyPy 7.3.5", "content_type": "text/x-python"},
|
||||
{"config": _go_lang_config, "name": "Golang", "description": "Golang 1.14", "content_type": "text/x-go"},
|
||||
{"config": _go_lang_config, "name": "Golang", "description": "Golang 1.14", "content_type": "text/x-go"}
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user