diff options
author | Christian Vonrüti <christian@vonrueti.ch> | 2019-05-26 19:16:14 +0200 |
---|---|---|
committer | Christian Vonrüti <christian@vonrueti.ch> | 2019-05-26 19:16:54 +0200 |
commit | 92914a76c88e152d6bbc2ee973288162c9df5753 (patch) | |
tree | c0ae32e5c0dfa858ba5d5aff000f2559d7158b62 /lib/compilers/argument-parsers.js | |
parent | e35f555cfc06353db456bb98574fb9b6fea02c76 (diff) | |
download | compiler-explorer-92914a76c88e152d6bbc2ee973288162c9df5753.tar.gz compiler-explorer-92914a76c88e152d6bbc2ee973288162c9df5753.zip |
Initial Java/javap support
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index adae6e81f..1a95fb617 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -166,6 +166,13 @@ class ISPCParser extends BaseParser { } } +class JavaParser extends BaseParser { + + static parse(compiler) { + return JavaParser.getOptions(compiler, "-help").then(() => compiler); + } +} + class VCParser extends BaseParser { static parse(compiler) { return Promise.all([ @@ -248,6 +255,7 @@ module.exports = { Base: BaseParser, Clang: ClangParser, GCC: GCCParser, + Java: JavaParser, VC: VCParser, Pascal: PascalParser, ISPC: ISPCParser |