FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
compilebox/API/compilers.js at master · codegrande/compilebox · GitHub
codegrande
/
compilebox
Public
forked from
remoteinterview/compilebox
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
compilebox
/
API
/
compilers.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (30 loc) · 1.85 KB
Breadcrumbs
compilebox
/
API
/
compilers.js
Copy path
File metadata and controls
34 lines (30 loc) · 1.85 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
This file stores the compiler/interpretor details that are provided to DockerSandbox.sh by the app.js
The index is the key field,
First column contains the compiler/interpretor that will be used for translation
Second column is the file name to use when storing the source code
Third column is optional, it contains the command to invoke the compiled program, it is used only for compilers
Fourth column is just the language name for display on console, for verbose error messages
Fifth column is optional, it contains additional arguments/flags for compilers
You can add more languages to this API by simply adding another row in this file along with installing it in your
Docker VM.
Author: Osman Ali
Date: 3 - JUN - 2014
*Revised on: 30th June 2014 (Added Column number 4 to display the name of languages to console)
*/
exports
.
compilerArray
=
[
[
"python"
,
"file.py"
,
""
,
"Python"
,
""
]
,
[
"ruby"
,
"file.rb"
,
""
,
"Ruby"
,
""
]
,
[
"clojure"
,
"file.clj"
,
""
,
"Clojure"
,
""
]
,
[
"php"
,
"file.php"
,
""
,
"Php"
,
""
]
,
[
"nodejs"
,
"file.js"
,
""
,
"Nodejs"
,
""
]
,
[
"scala"
,
"file.scala"
,
""
,
"Scala"
,
""
]
,
[
"\'go run\'"
,
"file.go"
,
""
,
"Go"
,
""
]
,
[
"\'g++ -o /usercode/a.out\' "
,
"file.cpp"
,
"/usercode/a.out"
,
"C/C++"
,
""
]
,
[
"javac"
,
"file.java"
,
"\'./usercode/javaRunner.sh\'"
,
"Java"
,
""
]
,
[
"\'vbnc -nologo -quiet\'"
,
"file.vb"
,
"\'mono /usercode/file.exe\'"
,
"VB.Net"
,
""
]
,
[
"gmcs"
,
"file.cs"
,
"\'mono /usercode/file.exe\'"
,
"C#"
,
""
]
,
[
"/bin/bash"
,
"file.sh"
,
" "
,
"Bash"
,
""
]
,
[
"gcc "
,
"file.m"
,
" /usercode/a.out"
,
"Objective-C"
,
"\' -o /usercode/a.out -I/usr/include/GNUstep -L/usr/lib/GNUstep -lobjc -lgnustep-base -Wall -fconstant-string-class=NSConstantString\'"
]
,
[
"/usercode/sql_runner.sh"
,
"file.sql"
,
""
,
"MYSQL"
,
""
]
,
[
"perl"
,
"file.pl"
,
""
,
"Perl"
,
""
]
,
[
"\'env HOME=/opt/rust /opt/rust/.cargo/bin/rustc\'"
,
"file.rs"
,
"/usercode/a.out"
,
"Rust"
,
"\'-o /usercode/a.out\'"
]
]
;
Back
|
FazBrowse Home
|
New Git URL