aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorQuinton Miller <nicetas.c@gmail.com>2021-07-08 06:23:48 +0800
committerGitHub <noreply@github.com>2021-07-08 00:23:48 +0200
commit94ecb093a09a1c2885e260b30be87f18b5781ad3 (patch)
tree634f71d726bce9420cb60b5ffec0ef91056afdae /lib/compilers/argument-parsers.js
parent7a3000c75821814743dcbc8db0c682b9de62b956 (diff)
downloadcompiler-explorer-94ecb093a09a1c2885e260b30be87f18b5781ad3.tar.gz
compiler-explorer-94ecb093a09a1c2885e260b30be87f18b5781ad3.zip
Add Crystal support (#2732)
* Add Crystal support * Fix copyright * Add ASM parser for Crystal * Add supportsLibraryCodeFilter * Update crystal-mode.js * use baseName * Force `square` call * Update default snippet Co-authored-by: Patrick Quist <partouf@gmail.com>
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 f1be78e9d..a7fd8d822 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -310,3 +310,10 @@ export class NimParser extends BaseParser {
return compiler;
}
}
+
+export class CrystalParser extends BaseParser {
+ static async parse(compiler) {
+ await CrystalParser.getOptions(compiler, 'build');
+ return compiler;
+ }
+}