Initial commit

This commit is contained in:
1computer1 2019-03-12 05:09:46 -04:00
commit 07ec57a453
27 changed files with 1853 additions and 0 deletions

12
src/languages/haskell.js Normal file
View file

@ -0,0 +1,12 @@
const Language = require('../struct/Language');
class Haskell extends Language {
constructor() {
super('haskell', {
highlight: 'hs',
aliases: ['haskell', 'hs']
});
}
}
module.exports = Haskell;

View file

@ -0,0 +1,23 @@
const Language = require('../struct/Language');
class JavaScript extends Language {
constructor() {
super('javaScript', {
highlight: 'js',
aliases: ['javaScript', 'js'],
options: {
harmony: () => true
}
});
}
runWith(options) {
if (options.has('harmony')) {
return { id: this.id, env: { EVAL_HARMONY: 'true' } };
}
return { id: this.id, env: {} };
}
}
module.exports = JavaScript;

12
src/languages/python.js Normal file
View file

@ -0,0 +1,12 @@
const Language = require('../struct/Language');
class Python extends Language {
constructor() {
super('python', {
highlight: 'py',
aliases: ['python', 'py']
});
}
}
module.exports = Python;