2019-11-22 20:37:27 +00:00
|
|
|
[
|
2022-05-05 20:51:40 +00:00
|
|
|
{
|
|
|
|
"identifier": "plaintext",
|
|
|
|
"name": "Plain text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "c",
|
|
|
|
"name": "C",
|
|
|
|
"helloworld": "#include <stdio.h>\n\nint main(void) {\n puts(\"Hello, world!\");\n return 0;\n}",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "Clang",
|
|
|
|
"identifier": "clang",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "clang",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.c; clang %s code.c && ./a.out"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "gcc",
|
|
|
|
"identifier": "gcc",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "gcc",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.c; gcc %s code.c && ./a.out"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "cpp",
|
|
|
|
"name": "C++",
|
|
|
|
"helloworld": "#include <iostream>\n\nint main(void) {\n std::cout << \"Hello, world!\\n\";\n}",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "Clang",
|
|
|
|
"identifier": "clang",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "clangcpp",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.cpp; clang++ %s code.cpp && ./a.out"
|
|
|
|
}
|
2019-11-23 22:21:45 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "g++",
|
|
|
|
"identifier": "gcc",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "gpp",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.cpp; g++ %s code.cpp && ./a.out"
|
|
|
|
}
|
2019-11-24 12:33:34 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "csharp",
|
|
|
|
"name": "C#",
|
|
|
|
"helloworld": "using System;\n\nclass Program {\n static void Main(string[] args) {\n Console.WriteLine(\"Hello, world!\");\n }\n}",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": ".NET Core",
|
|
|
|
"identifier": "netcore",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "netcore",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "echo '<Project Sdk=\"Microsoft.NET.Sdk\"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>netcoreapp5.0</TargetFramework></PropertyGroup></Project>' > project.csproj; mv code code.cs; dotnet run %s"
|
|
|
|
}
|
2019-11-23 22:21:45 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "go",
|
|
|
|
"name": "Go",
|
|
|
|
"helloworld": "package main\n\nimport \"fmt\"\n\nfunc main() {\n\tfmt.Println(\"Hello, world!\")\n}",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "gc",
|
|
|
|
"identifier": "gc",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "gc",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.go; go run code.go"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "goimports",
|
|
|
|
"label": "Format",
|
|
|
|
"code": "goimports -w code; cat code",
|
|
|
|
"is_formatter": true
|
|
|
|
}
|
2019-11-23 22:21:45 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "haskell",
|
|
|
|
"name": "Haskell",
|
|
|
|
"helloworld": "main = putStrLn \"Hello, world!\"",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "GHC",
|
|
|
|
"identifier": "ghc",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "ghc",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.hs; ghc %s code.hs && ./code"
|
|
|
|
}
|
2019-11-23 22:21:45 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "html",
|
|
|
|
"name": "HTML"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "java",
|
|
|
|
"name": "Java",
|
|
|
|
"helloworld": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello, world!\");\n }\n}",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "OpenJDK 8",
|
|
|
|
"identifier": "openjdk8",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "openjdk8",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.java; $JAVA8/bin/javac %s code.java; $JAVA8/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; $JAVA11/bin/javac %s code.java; $JAVA11/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",
|
|
|
|
"helloworld": "console.log(\"Hello, world!\");",
|
|
|
|
"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",
|
|
|
|
"helloworld": "use v5.12;\nuse warnings;\n\nsay \"Hello, world!\";",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "Perl",
|
2019-11-22 20:37:27 +00:00
|
|
|
"identifier": "perl",
|
2022-05-05 20:51:40 +00:00
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "perl",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "perl %s code"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "php",
|
|
|
|
"name": "PHP",
|
|
|
|
"helloworld": "<?php\necho \"Hello, world!\\n\";",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "PHP",
|
2019-11-22 20:37:27 +00:00
|
|
|
"identifier": "php",
|
2022-05-05 20:51:40 +00:00
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "php",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "php %s code"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "postgresql",
|
|
|
|
"name": "PostgreSQL"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "python",
|
|
|
|
"name": "Python 3",
|
|
|
|
"helloworld": "print(\"Hello, world!\")",
|
|
|
|
"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",
|
|
|
|
"helloworld": "say \"Hello, world!\"",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "Rakudo",
|
|
|
|
"identifier": "rakudo",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "rakudo",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "perl6 %s code"
|
|
|
|
}
|
2019-11-23 22:21:45 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "rust",
|
|
|
|
"name": "Rust",
|
|
|
|
"helloworld": "fn main() {\n println!(\"Hello, world!\");\n}",
|
|
|
|
"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": "clippy-stable",
|
|
|
|
"label": "Clippy",
|
|
|
|
"code": "cargo init; mv code src/main.rs; cargo clippy"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Beta",
|
|
|
|
"identifier": "beta",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "rustc-beta",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.rs; $RUST_BETA/bin/rustc %s code.rs && ./code"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "rustc-asm-beta",
|
|
|
|
"label": "ASM",
|
|
|
|
"code": "$RUST_BETA/bin/rustc --emit asm --crate-type rlib %s code && cat code.s",
|
|
|
|
"is_asm": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "rustfmt-beta",
|
|
|
|
"label": "Rustfmt",
|
|
|
|
"code": "$RUST_BETA/bin/rustfmt code; cat code",
|
|
|
|
"is_formatter": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "clippy-beta",
|
|
|
|
"label": "Clippy",
|
|
|
|
"code": "$RUST_BETA/bin/cargo init; mv code src/main.rs; $RUST_BETA/bin/cargo clippy"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Nightly",
|
|
|
|
"identifier": "nightly",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "rustc-nightly",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.rs; $RUST_NIGHTLY/bin/rustc %s code.rs && ./code"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "rustc-asm-nightly",
|
|
|
|
"label": "ASM",
|
|
|
|
"code": "$RUST_NIGHTLY/bin/rustc --emit asm --crate-type rlib %s code && cat code.s",
|
|
|
|
"is_asm": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "rustfmt-nightly",
|
|
|
|
"label": "Rustfmt",
|
|
|
|
"code": "$RUST_NIGHTLY/bin/rustfmt code; cat code",
|
|
|
|
"is_formatter": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "clippy-nightly",
|
|
|
|
"label": "Clippy",
|
|
|
|
"code": "$RUST_NIGHTLY/bin/cargo init; mv code src/main.rs; $RUST_NIGHTLY/bin/cargo clippy"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "sh",
|
|
|
|
"name": "Sh",
|
|
|
|
"helloworld": "echo Hello, world!",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "sh",
|
2019-11-22 20:37:27 +00:00
|
|
|
"identifier": "sh",
|
2022-05-05 20:51:40 +00:00
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "sh",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "sh %s code"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "sql",
|
|
|
|
"name": "SQL"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "sqlite",
|
|
|
|
"name": "SQLite",
|
|
|
|
"helloworld": "SELECT 'Hello, world!'",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "SQLite",
|
2019-11-22 20:37:27 +00:00
|
|
|
"identifier": "sqlite",
|
2022-05-05 20:51:40 +00:00
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "sqlite",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "sqlite3 %s < code"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "typescript",
|
|
|
|
"name": "TypeScript",
|
|
|
|
"helloworld": "console.log(\"Hello, world!\");",
|
|
|
|
"implementations": [
|
|
|
|
{
|
|
|
|
"label": "Node.js",
|
|
|
|
"identifier": "nodejs",
|
|
|
|
"wrappers": [
|
|
|
|
{
|
|
|
|
"identifier": "typescript-nodejs",
|
|
|
|
"label": "Run",
|
|
|
|
"code": "mv code code.ts; tsc %s code.ts && node code"
|
|
|
|
}
|
2019-11-23 22:21:45 +00:00
|
|
|
]
|
2022-05-05 20:51:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "tsx",
|
|
|
|
"name": "TypeScript-JSX"
|
|
|
|
}
|
2019-11-22 20:37:27 +00:00
|
|
|
]
|