328 lines
9.1 KiB
JSON
328 lines
9.1 KiB
JSON
[
|
|
{
|
|
"identifier": "plaintext",
|
|
"name": "Plain text"
|
|
},
|
|
{
|
|
"identifier": "c",
|
|
"name": "C",
|
|
"implementations": [
|
|
{
|
|
"label": "Clang",
|
|
"identifier": "clang",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "clang",
|
|
"label": "Run",
|
|
"code": "mv code code.cpp; clang++ %s code.cpp && ./a.out"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "gcc",
|
|
"identifier": "gcc",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "gcc",
|
|
"label": "Run",
|
|
"code": "mv code code.c; gcc %s code.c && ./a.out"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "cpp",
|
|
"name": "C++",
|
|
"implementations": [
|
|
{
|
|
"label": "Clang",
|
|
"identifier": "clang",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "clangcpp",
|
|
"label": "Run",
|
|
"code": "mv code code.cpp; clang++ %s code.cpp && ./a.out"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "g++",
|
|
"identifier": "gcc",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "gpp",
|
|
"label": "Run",
|
|
"code": "mv code code.cpp; g++ %s code.cpp && ./a.out"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "csharp",
|
|
"name": "C#",
|
|
"implementations": [
|
|
{
|
|
"label": ".NET Core",
|
|
"identifier": "netcore",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "netcore",
|
|
"label": "Run",
|
|
"code": "dotnet new console &>/dev/null; dotnet run %s"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "haskell",
|
|
"name": "Haskell",
|
|
"implementations": [
|
|
{
|
|
"label": "GHC",
|
|
"identifier": "ghc",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "ghc",
|
|
"label": "Run",
|
|
"code": "mv code code.hs; ghc %s code.hs && ./code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "html",
|
|
"name": "HTML"
|
|
},
|
|
{
|
|
"identifier": "java",
|
|
"name": "Java",
|
|
"implementations": [
|
|
{
|
|
"label": "OpenJDK 8",
|
|
"identifier": "openjdk8",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "openjdk8",
|
|
"label": "Run",
|
|
"code": "mv code code.java; /etc/alternatives/java_sdk_1.8.0/bin/javac %s code.java; /etc/alternatives/java_sdk_1.8.0/bin/java \"$(perl -e 'my @classes = grep { !/\\$/ } glob q[*.class]; if (@classes == 1) { my $class = $classes[0]; $class =~ s/\\.class\\z//; print $class } else { print q[Main] }')\""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "OpenJDK 11",
|
|
"identifier": "openjdk11",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "openjdk11",
|
|
"label": "Run",
|
|
"code": "mv code code.java; /etc/alternatives/java_sdk_11/bin/javac %s code.java; /etc/alternatives/java_sdk_11/bin/java \"$(perl -e 'my @classes = grep { !/\\$/ } glob q[*.class]; if (@classes == 1) { my $class = $classes[0]; $class =~ s/\\.class\\z//; print $class } else { print q[Main] }')\""
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "javascript",
|
|
"name": "JavaScript",
|
|
"implementations": [
|
|
{
|
|
"label": "Node.js",
|
|
"identifier": "nodejs",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "nodejs",
|
|
"label": "Run",
|
|
"code": "node %s code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "jinja2",
|
|
"name": "Jinja2"
|
|
},
|
|
{
|
|
"identifier": "jsx",
|
|
"name": "JSX"
|
|
},
|
|
{
|
|
"identifier": "markdown",
|
|
"name": "Markdown"
|
|
},
|
|
{
|
|
"identifier": "perl",
|
|
"name": "Perl",
|
|
"implementations": [
|
|
{
|
|
"label": "Perl",
|
|
"identifier": "perl",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "perl",
|
|
"label": "Run",
|
|
"code": "perl %s code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "php",
|
|
"name": "PHP",
|
|
"implementations": [
|
|
{
|
|
"label": "PHP",
|
|
"identifier": "php",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "php",
|
|
"label": "Run",
|
|
"code": "php %s code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "postgresql",
|
|
"name": "PostgreSQL"
|
|
},
|
|
{
|
|
"identifier": "python2",
|
|
"name": "Python 2"
|
|
},
|
|
{
|
|
"identifier": "python",
|
|
"name": "Python 3",
|
|
"implementations": [
|
|
{
|
|
"label": "CPython",
|
|
"identifier": "cpython",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "cpython",
|
|
"label": "Run",
|
|
"code": "python3 %s code"
|
|
},
|
|
{
|
|
"identifier": "black",
|
|
"label": "Format (black)",
|
|
"code": "black code; cat code",
|
|
"is_formatter": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "raku",
|
|
"name": "Raku",
|
|
"implementations": [
|
|
{
|
|
"label": "Rakudo",
|
|
"identifier": "rakudo",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "rakudo",
|
|
"label": "Run",
|
|
"code": "perl6 %s code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "rust",
|
|
"name": "Rust",
|
|
"implementations": [
|
|
{
|
|
"label": "Stable",
|
|
"identifier": "stable",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "rustc-stable",
|
|
"label": "Run",
|
|
"code": "mv code code.rs && rustc %s code.rs && ./code"
|
|
},
|
|
{
|
|
"identifier": "rustc-asm-stable",
|
|
"label": "ASM",
|
|
"code": "rustc --emit asm --crate-type rlib %s code && cat code.s",
|
|
"is_asm": true
|
|
},
|
|
{
|
|
"identifier": "rustfmt-stable",
|
|
"label": "Rustfmt",
|
|
"code": "rustfmt code; cat code",
|
|
"is_formatter": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "sh",
|
|
"name": "Sh",
|
|
"implementations": [
|
|
{
|
|
"label": "sh",
|
|
"identifier": "sh",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "sh",
|
|
"label": "Run",
|
|
"code": "sh %s code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "sql",
|
|
"name": "SQL"
|
|
},
|
|
{
|
|
"identifier": "sqlite",
|
|
"name": "SQLite",
|
|
"implementations": [
|
|
{
|
|
"label": "SQLite",
|
|
"identifier": "sqlite",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "sqlite",
|
|
"label": "Run",
|
|
"code": "sqlite3 %s < code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "typescript",
|
|
"name": "TypeScript",
|
|
"implementations": [
|
|
{
|
|
"label": "Node.js",
|
|
"identifier": "nodejs",
|
|
"wrappers": [
|
|
{
|
|
"identifier": "typescript-nodejs",
|
|
"label": "Run",
|
|
"code": "mv code code.ts; /usr/local/bin/tsc %s code.ts && node code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "tsx",
|
|
"name": "TypeScript-JSX"
|
|
}
|
|
]
|