aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorOleksandr <0init0@gmail.com>2021-06-29 10:39:06 +0300
committerGitHub <noreply@github.com>2021-06-29 09:39:06 +0200
commitd1da1485632048c84ebd714a6296e96266141c43 (patch)
treec39803293f4c3da149593ce7b299f957de1f280c /lib/compilers/argument-parsers.js
parent7074739ecf2d1064cdbf3722eb7aa3d40fbc91b3 (diff)
downloadcompiler-explorer-d1da1485632048c84ebd714a6296e96266141c43.tar.gz
compiler-explorer-d1da1485632048c84ebd714a6296e96266141c43.zip
Add initial scala support (#2737)
* Add initial scala support * Fix scala 3 compiler flags * Use semver instead
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index 750e9c2ef..f1be78e9d 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -185,6 +185,13 @@ export class KotlinParser extends BaseParser {
}
}
+export class ScalaParser extends BaseParser {
+ static async parse(compiler) {
+ await ScalaParser.getOptions(compiler, '-help');
+ return compiler;
+ }
+}
+
export class VCParser extends BaseParser {
static async parse(compiler) {
await VCParser.getOptions(compiler, '/help');