Skip to content

Commit

Permalink
feat: 言語選択対応
Browse files Browse the repository at this point in the history
  • Loading branch information
taizod1024 committed Aug 23, 2022
1 parent bc0c5a2 commit a42d40c
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 100 deletions.
158 changes: 113 additions & 45 deletions src/xsite/AtCoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { java } from "../xextension/Java";
import { javascript } from "../xextension/JavaScript";
import { python } from "../xextension/Python";
import { typescript } from "../xextension/TypeScript";
import { user1 } from "../xextension/User1";

class AtCoder implements XSite {
// param
Expand Down Expand Up @@ -52,51 +53,118 @@ class AtCoder implements XSite {
this.extension = "";
this.language = "";
this.xlanguages = [
{
language: "C (GCC 9.2.1)",
xextension: cc,
id: 4001,
},
{
language: "C (Clang 10.0.0)",
xextension: cc,
id: 4002,
},
{
language: "C++ (GCC 9.2.1)",
xextension: cpp,
id: 4003,
},
{
language: "C++ (Clang 10.0.0)",
xextension: cpp,
id: 4004,
},
{
language: "Java (OpenJDK 11.0.6)",
xextension: java,
id: 4005,
},
{
language: "Java (OpenJDK 1.8.0)",
xextension: java,
id: 4052,
},
{
language: "JavaScript (Node.js 12.16.1)",
xextension: javascript,
id: 4030,
},
{
language: "Python (3.8.2)",
xextension: python,
id: 4006,
},
{
language: "TypeScript (3.8)",
xextension: typescript,
id: 4057,
},
// {
// language: "C (GCC 9.2.1)",
// xextension: cc,
// id: 4001,
// },
// {
// language: "C (Clang 10.0.0)",
// xextension: cc,
// id: 4002,
// },
// {
// language: "C++ (GCC 9.2.1)",
// xextension: cpp,
// id: 4003,
// },
// {
// language: "C++ (Clang 10.0.0)",
// xextension: cpp,
// id: 4004,
// },
// {
// language: "Java (OpenJDK 11.0.6)",
// xextension: java,
// id: 4005,
// },
// {
// language: "Java (OpenJDK 1.8.0)",
// xextension: java,
// id: 4052,
// },
// {
// language: "JavaScript (Node.js 12.16.1)",
// xextension: javascript,
// id: 4030,
// },
// {
// language: "Python (3.8.2)",
// xextension: python,
// id: 4006,
// },
// {
// language: "TypeScript (3.8)",
// xextension: typescript,
// id: 4057,
// },
{ id: 4001, language: "C (GCC 9.2.1)", xextension: cc },
{ id: 4002, language: "C (Clang 10.0.0)", xextension: cc },
{ id: 4003, language: "C++ (GCC 9.2.1)", xextension: cpp },
{ id: 4004, language: "C++ (Clang 10.0.0)", xextension: cpp },
{ id: 4005, language: "Java (OpenJDK 11.0.6)", xextension: java },
{ id: 4006, language: "Python (3.8.2)", xextension: python },
{ id: 4007, language: "Bash (5.0.11)", xextension: user1 },
{ id: 4008, language: "bc (1.07.1)", xextension: user1 },
{ id: 4009, language: "Awk (GNU Awk 4.1.4)", xextension: user1 },
{ id: 4010, language: "C# (.NET Core 3.1.201)", xextension: user1 },
{ id: 4011, language: "C# (Mono-mcs 6.8.0.105)", xextension: user1 },
{ id: 4012, language: "C# (Mono-csc 3.5.0)", xextension: user1 },
{ id: 4013, language: "Clojure (1.10.1.536)", xextension: user1 },
{ id: 4014, language: "Crystal (0.33.0)", xextension: user1 },
{ id: 4015, language: "D (DMD 2.091.0)", xextension: user1 },
{ id: 4016, language: "D (GDC 9.2.1)", xextension: user1 },
{ id: 4017, language: "D (LDC 1.20.1)", xextension: user1 },
{ id: 4018, language: "Dart (2.7.2)", xextension: user1 },
{ id: 4019, language: "dc (1.4.1)", xextension: user1 },
{ id: 4020, language: "Erlang (22.3)", xextension: user1 },
{ id: 4021, language: "Elixir (1.10.2)", xextension: user1 },
{ id: 4022, language: "F# (.NET Core 3.1.201)", xextension: user1 },
{ id: 4023, language: "F# (Mono 10.2.3)", xextension: user1 },
{ id: 4024, language: "Forth (gforth 0.7.3)", xextension: user1 },
{ id: 4025, language: "Fortran (GNU Fortran 9.2.1)", xextension: user1 },
{ id: 4026, language: "Go (1.14.1)", xextension: user1 },
{ id: 4027, language: "Haskell (GHC 8.8.3)", xextension: user1 },
{ id: 4028, language: "Haxe (4.0.3); js", xextension: javascript },
{ id: 4029, language: "Haxe (4.0.3); Java", xextension: java },
{ id: 4030, language: "JavaScript (Node.js 12.16.1)", xextension: javascript },
{ id: 4031, language: "Julia (1.4.0)", xextension: user1 },
{ id: 4032, language: "Kotlin (1.3.71)", xextension: user1 },
{ id: 4033, language: "Lua (Lua 5.3.5)", xextension: user1 },
{ id: 4034, language: "Lua (LuaJIT 2.1.0)", xextension: user1 },
{ id: 4035, language: "Dash (0.5.8)", xextension: user1 },
{ id: 4036, language: "Nim (1.0.6)", xextension: user1 },
{ id: 4037, language: "Objective-C (Clang 10.0.0)", xextension: user1 },
{ id: 4038, language: "Common Lisp (SBCL 2.0.3)", xextension: user1 },
{ id: 4039, language: "OCaml (4.10.0)", xextension: user1 },
{ id: 4040, language: "Octave (5.2.0)", xextension: user1 },
{ id: 4041, language: "Pascal (FPC 3.0.4)", xextension: user1 },
{ id: 4042, language: "Perl (5.26.1)", xextension: user1 },
{ id: 4043, language: "Raku (Rakudo 2020.02.1)", xextension: user1 },
{ id: 4044, language: "PHP (7.4.4)", xextension: user1 },
{ id: 4045, language: "Prolog (SWI-Prolog 8.0.3)", xextension: user1 },
{ id: 4046, language: "PyPy2 (7.3.0)", xextension: python },
{ id: 4047, language: "PyPy3 (7.3.0)", xextension: python },
{ id: 4048, language: "Racket (7.6)", xextension: user1 },
{ id: 4049, language: "Ruby (2.7.1)", xextension: user1 },
{ id: 4050, language: "Rust (1.42.0)", xextension: user1 },
{ id: 4051, language: "Scala (2.13.1)", xextension: user1 },
{ id: 4052, language: "Java (OpenJDK 1.8.0)", xextension: java },
{ id: 4053, language: "Scheme (Gauche 0.9.9)", xextension: user1 },
{ id: 4054, language: "Standard ML (MLton 20130715)", xextension: user1 },
{ id: 4055, language: "Swift (5.2.1)", xextension: user1 },
{ id: 4056, language: "Text (cat 8.28)", xextension: user1 },
{ id: 4057, language: "TypeScript (3.8)", xextension: typescript },
{ id: 4058, language: "Visual Basic (.NET Core 3.1.101)", xextension: user1 },
{ id: 4059, language: "Zsh (5.4.2)", xextension: user1 },
{ id: 4060, language: "COBOL - Fixed (OpenCOBOL 1.1.0)", xextension: user1 },
{ id: 4061, language: "COBOL - Free (OpenCOBOL 1.1.0)", xextension: user1 },
{ id: 4062, language: "Brainfuck (bf 20041219)", xextension: user1 },
{ id: 4063, language: "Ada2012 (GNAT 9.2.1)", xextension: user1 },
{ id: 4064, language: "Unlambda (2.0.0)", xextension: user1 },
{ id: 4065, language: "Cython (0.29.16)", xextension: user1 },
{ id: 4066, language: "Sed (4.4)", xextension: user1 },
{ id: 4067, language: "Vim (8.2.0460)", xextension: user1 },
];
}

Expand Down
158 changes: 103 additions & 55 deletions src/xsite/Yukicoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { java } from "../xextension/Java";
import { javascript } from "../xextension/JavaScript";
import { python } from "../xextension/Python";
import { typescript } from "../xextension/TypeScript";
import { user1 } from "../xextension/User1";

class Yukicoder implements XSite {
// param
Expand Down Expand Up @@ -51,61 +52,108 @@ class Yukicoder implements XSite {
this.extension = "";
this.language = "";
this.xlanguages = [
{
language: "C++14 (gcc 11.2.0 + boost 1.78.0)",
xextension: cpp,
id: "cpp14",
},
{
language: "C++17 (gcc 11.2.0 + boost 1.78.0",
xextension: cpp,
id: "cpp17",
},
{
language: "C++17(clang Beta) (gcc 10.0.0 + boost 1.78.0)",
xextension: cpp,
id: "cpp-clang",
},
{
language: "C++23(draft) (gcc 11.2.0 + boost 1.78.0)",
xextension: cpp,
id: "cpp23",
},
{
language: "C++11 (gcc 8.5.0)",
xextension: cpp,
id: "cpp",
},
{
language: "C (gcc 11.2.0)",
xextension: cc,
id: "c11",
},
{
language: "C90 (gcc 8.5.0)",
xextension: cc,
id: "c",
},
{
language: "Java17 (openjdk 17.0.1)",
xextension: java,
id: "java8",
},
{
language: "Python3 (3.10.1 + numpy 1.22.3 + scipy 1.8.0)",
xextension: python,
id: "python3",
},
{
language: "JavaScript (node v17.7.1)",
xextension: javascript,
id: "node",
},
{
language: "TypeScript (4.6.2)",
xextension: typescript,
id: "typescript",
},
// {
// language: "C++14 (gcc 11.2.0 + boost 1.78.0)",
// xextension: cpp,
// id: "cpp14",
// },
// {
// language: "C++17 (gcc 11.2.0 + boost 1.78.0",
// xextension: cpp,
// id: "cpp17",
// },
// {
// language: "C++17(clang Beta) (gcc 10.0.0 + boost 1.78.0)",
// xextension: cpp,
// id: "cpp-clang",
// },
// {
// language: "C++23(draft) (gcc 11.2.0 + boost 1.78.0)",
// xextension: cpp,
// id: "cpp23",
// },
// {
// language: "C++11 (gcc 8.5.0)",
// xextension: cpp,
// id: "cpp",
// },
// {
// language: "C (gcc 11.2.0)",
// xextension: cc,
// id: "c11",
// },
// {
// language: "C90 (gcc 8.5.0)",
// xextension: cc,
// id: "c",
// },
// {
// language: "Java17 (openjdk 17.0.1)",
// xextension: java,
// id: "java8",
// },
// {
// language: "Python3 (3.10.1 + numpy 1.22.3 + scipy 1.8.0)",
// xextension: python,
// id: "python3",
// },
// {
// language: "JavaScript (node v17.7.1)",
// xextension: javascript,
// id: "node",
// },
// {
// language: "TypeScript (4.6.2)",
// xextension: typescript,
// id: "typescript",
// },
{ id: "cpp14", language: "C++14 (gcc 11.2.0 + boost 1.78.0)", xextension: cpp },
{ id: "cpp17", language: "C++17 (gcc 11.2.0 + boost 1.78.0)", xextension: cpp },
{ id: "cpp-clang", language: "C++17(clang Beta) (clang 10.0.0 + boost 1.78.0)", xextension: cpp },
{ id: "cpp23", language: "C++23(draft) (gcc 11.2.0 + boost 1.78.0)", xextension: cpp },
{ id: "cpp", language: "C++11 (gcc 8.5.0)", xextension: cpp },
{ id: "c11", language: "C (gcc 11.2.0)", xextension: cc },
{ id: "c", language: "C90 (gcc 8.5.0)", xextension: cc },
{ id: "java8", language: "Java17 (openjdk 17.0.1)", xextension: java },
{ id: "csharp", language: "C# (csc 3.9.0)", xextension: user1 },
{ id: "csharp_mono", language: "C#(mono) (mono 6.12.0.158)", xextension: user1 },
{ id: "csharp_dotnet", language: "C#(.NET 6 Beta) (.NET 6.12.0)", xextension: user1 },
{ id: "perl", language: "Perl (5.26.3)", xextension: user1 },
{ id: "raku", language: "Raku (rakudo v2021.12-89-g196969167)", xextension: user1 },
{ id: "php", language: "PHP (7.2.24)", xextension: user1 },
{ id: "php7", language: "PHP8 (8.1.3)", xextension: user1 },
{ id: "python3", language: "Python3 (3.10.1 + numpy 1.22.3 + scipy 1.8.0)", xextension: python },
{ id: "pypy2", language: "PyPy2 (7.3.8)", xextension: python },
{ id: "pypy3", language: "PyPy3 (7.3.8)", xextension: python },
{ id: "ruby", language: "Ruby (3.1.1p18 )", xextension: user1 },
{ id: "d", language: "D (dmd 2.099.1)", xextension: user1 },
{ id: "go", language: "Go (1.18)", xextension: user1 },
{ id: "haskell", language: "Haskell (9.2.2)", xextension: user1 },
{ id: "scala", language: "Scala(Beta) (3.1.1)", xextension: user1 },
{ id: "nim", language: "Nim (1.6.4)", xextension: user1 },
{ id: "rust", language: "Rust (1.59.0)", xextension: user1 },
{ id: "kotlin", language: "Kotlin (1.6.10)", xextension: user1 },
{ id: "scheme", language: "Scheme (Gauche-0.9.11-p1)", xextension: user1 },
{ id: "crystal", language: "Crystal (1.3.2)", xextension: user1 },
{ id: "swift", language: "Swift (5.4.2)", xextension: user1 },
{ id: "ocaml", language: "OCaml (4.13.1)", xextension: user1 },
{ id: "clojure", language: "Clojure(Beta) (1.10.2.790)", xextension: user1 },
{ id: "fsharp", language: "F# (5.0)", xextension: user1 },
{ id: "elixir", language: "Elixir (1.7.4)", xextension: user1 },
{ id: "lua", language: "Lua (LuaJit 2.0.5)", xextension: user1 },
{ id: "fortran", language: "Fortran (gFortran 8.4.1)", xextension: user1 },
{ id: "node", language: "JavaScript (node v17.7.1)", xextension: javascript },
{ id: "typescript", language: "TypeScript (4.6.2)", xextension: typescript },
{ id: "lisp", language: "Common Lisp (sbcl 2.1.6)", xextension: user1 },
{ id: "sml", language: "Standard ML (MLton 20180207-6)", xextension: user1 },
{ id: "kuin", language: "Kuin (KuinC++ v.2021.9.17)", xextension: user1 },
{ id: "vim", language: "Vim script (v8.2)", xextension: user1 },
{ id: "sh", language: "Bash (Bash 4.4.19)", xextension: user1 },
{ id: "nasm", language: "Assembler (nasm 2.15.03)", xextension: user1 },
{ id: "clay", language: "cLay (20220312-1)", xextension: user1 },
{ id: "bf", language: "Brainfuck (BFI 1.1)", xextension: user1 },
{ id: "Whitespace", language: "Whitespace (0.3)", xextension: user1 },
{ id: "text", language: "Text (cat 8.3)", xextension: user1 },
];
}

Expand Down

0 comments on commit a42d40c

Please sign in to comment.