Initial commit
This commit is contained in:
commit
07ec57a453
27 changed files with 1853 additions and 0 deletions
12
src/languages/haskell.js
Normal file
12
src/languages/haskell.js
Normal 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;
|
23
src/languages/javascript.js
Normal file
23
src/languages/javascript.js
Normal 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
12
src/languages/python.js
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue