Add Julia
This commit is contained in:
parent
c8048b3a08
commit
b1ecae7841
4 changed files with 33 additions and 0 deletions
22
src/languages/julia.js
Normal file
22
src/languages/julia.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
const Language = require('../struct/Language');
|
||||
|
||||
class Julia extends Language {
|
||||
constructor() {
|
||||
super('julia', {
|
||||
aliases: ['julia'],
|
||||
options: {
|
||||
e: () => ''
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
runWith(options) {
|
||||
if (options.has('e')) {
|
||||
return { id: this.id, env: { EVAL_EXPR: 'true' } };
|
||||
}
|
||||
|
||||
return super.runWith(options);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Julia;
|
Loading…
Add table
Add a link
Reference in a new issue