forked from replit-archive/repl.it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanguages.coffee
248 lines (247 loc) · 8.36 KB
/
languages.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# Core module.
# Defines the supported languages.
@REPLIT.Languages =
QBasic:
name: 'QBasic'
tagline: 'Structured programming for beginners.'
shortcut: 'Q'
about_link: 'http://en.wikipedia.org/wiki/QBasic'
engine_link: 'https://github.com/replit/jsrepl/tree/master/extern/qb.js'
examples:
editor: '/langs/qbasic/examples-editor.html'
console: '/langs/qbasic/examples-console.html'
header: '''
QBasic (qb.js)
Copyright (c) 2010 Steve Hanov
'''
Forth:
name: 'Forth'
tagline: 'An interactive stack-oriented language.'
shortcut: 'h'
about_link: 'http://en.wikipedia.org/wiki/Forth_(programming_language)'
engine_link: 'https://github.com/replit/jsrepl/blob/master/extern/jsforth/jsforth.js'
examples:
editor: '/langs/forth/examples-editor.html'
console: '/langs/forth/examples-console.html'
header: '''
JS-Forth 0.5200804171342
http://www.forthfreak.net/jsforth.html
This program is published under the GPL.
'''
LOLCODE:
name: 'LOLCODE'
tagline: 'The basic language of lolcats.'
shortcut: 'O'
about_link: 'http://lolcode.com/specs/1.2'
engine_link: 'https://github.com/replit/lol-coffee'
examples:
editor: '/langs/lolcode/examples-editor.html'
console: '/langs/lolcode/examples-console.html'
header: '''
LOLCODE v1.2 (lol-coffee)
Copyright (c) 2011 Max Shawabkeh
'''
Brainfuck:
name: 'Brainfuck'
tagline: 'A pure Turing machine controller.'
shortcut: 'f'
about_link: 'http://en.wikipedia.org/wiki/Brainfuck'
engine_link: 'https://github.com/replit/bfjs'
examples:
editor: '/langs/brainfuck/examples-editor.html'
console: '/langs/brainfuck/examples-console.html'
header: '''
Brainfuck, bfjs
Copyright (c) 2011 Amjad Masad
'''
Emoticon:
name: 'Emoticon'
tagline: 'Programming with an extra dose of smile.'
shortcut: 'E'
about_link: 'http://www.teuton.org/~stranger/code/emoticon/manual.php'
engine_link: 'https://github.com/replit/emoticoffee'
examples:
editor: '/langs/emoticon/examples-editor.html'
console: '/langs/emoticon/examples-console.html'
header: '''
Emoticon v1.5 (emoticoffee)
Copyright (c) 2011 Amjad Masad
'''
Bloop:
name: 'Bloop'
tagline: 'Nothing but bounded loops.'
shortcut: 'B'
about_link: 'http://en.wikipedia.org/wiki/BlooP_and_FlooP'
engine_link: 'https://github.com/replit/jsrepl/blob/master/extern/bloop/bloop.js'
examples:
editor: '/langs/bloop/examples-editor.html'
console: '/langs/bloop/examples-console.html'
header: '''
BlooPjs
Copyright (c) 2005 Tim Cameron Ryan
Based on Perl code by John Cowan, 1994
'''
Unlambda:
name: 'Unlambda'
tagline: 'Functional purity given form.'
shortcut: 'U'
about_link: 'http://en.wikipedia.org/wiki/Unlambda'
engine_link: 'https://github.com/replit/unlambda-coffee'
examples:
editor: '/langs/unlambda/examples-editor.html'
console: '/langs/unlambda/examples-console.html'
header: '''
Unlambda v2.0 (unlambda-coffee)
Copyright (c) 2011 Max Shawabkeh
'''
JavaScript:
name: 'JavaScript'
tagline: 'The de facto language of the Web.'
shortcut: 'J'
about_link: 'http://en.wikipedia.org/wiki/Javascript'
engine_link: 'http://en.wikipedia.org/wiki/JavaScript_engine#JavaScript_engines'
examples:
editor: '/langs/javascript/examples-editor.html'
console: '/langs/javascript/examples-console.html'
ace_mode:
script: '/lib/ace/mode-javascript.js'
module: 'ace/mode/javascript'
header: """
Native #{
if $.browser.webkit
if navigator.userAgent.match /Android/ then 'Android'
else if navigator.userAgent.match /Chrome/ then 'Chrome'
else 'WebKit'
else if $.browser.opera then 'Opera'
else if $.browser.msie then 'Internet Explorer'
else if $.browser.mozilla then 'Mozilla Firefox'
else 'Browser'
} JavaScript.
Copyright (c) 2011 #{
navigator?.vendor?.replace(/\.$/, '') or (
if $.browser.webkit then 'Apple Inc'
else if $.browser.opera then 'Opera Software ASA'
else if $.browser.msie then 'Microsoft'
else if $.browser.mozilla then 'Mozilla Foundation'
else 'Browser Vendor'
)
}
"""
Traceur:
name: 'Javascript.next'
tagline: 'The JavaScript of tomorrow.'
shortcut: 'n'
about_link: 'http://wiki.ecmascript.org/doku.php?id=harmony:harmony'
engine_link: 'http://code.google.com/p/traceur-compiler/'
examples:
editor: '/langs/traceur/examples-editor.html'
console: '/langs/traceur/examples-console.html'
header: '''
Traceur Compiler v0.10
Copyright (c) 2011 Google Inc.
'''
CoffeeScript:
name: 'CoffeeScript'
tagline: 'Unfancy JavaScript.'
shortcut: 'C'
about_link: 'http://jashkenas.github.com/coffee-script/'
engine_link: 'https://github.com/jashkenas/coffee-script/'
examples:
editor: '/langs/coffee-script/examples-editor.html'
console: '/langs/coffee-script/examples-console.html'
ace_mode:
script: '/lib/ace/mode-coffee.js'
module: 'ace/mode/coffee'
header: '''
CoffeeScript v1.0.1
Copyright (c) 2011, Jeremy Ashkenas
'''
Kaffeine:
name: 'Kaffeine'
tagline: 'Extended JavaScript for pros.'
shortcut: 'K'
about_link: 'http://weepy.github.com/kaffeine/'
engine_link: 'https://github.com/weepy/kaffeine'
examples:
editor: '/langs/kaffeine/examples-editor.html'
console: '/langs/kaffeine/examples-console.html'
header: '''
| |/ /__ _ / _|/ _|___(_)_ _ ___
| ' </ _` | _| _/ -_) | ' \\/ -_)
|_|\\_\\__,_|_| |_| \\___|_|_||_\\___|
Version 0.0.4, Copyright (c) 2010 Jonah Fox
'''
Move:
name: 'Move'
tagline: 'The easy way to program the web.'
shortcut: 'M'
about_link: 'http://movelang.org/'
engine_link: 'https://github.com/rsms/move'
examples:
editor: '/langs/move/examples-editor.html'
console: '/langs/move/examples-console.html'
header: '''
Move v0.4.3
Copyright (c) 2011 Rasmus Andersson
'''
Scheme:
name: 'Scheme'
tagline: 'An elegant dynamic dialect of Lisp.'
shortcut: 'S'
about_link: 'http://en.wikipedia.org/wiki/Scheme_(programming_language)'
engine_link: 'https://github.com/yhara/biwascheme'
examples:
editor: '/langs/scheme/examples-editor.html'
console: '/langs/scheme/examples-console.html'
header: '''
BiwaScheme Interpreter version 0.5.7
Copyright (C) 2007-2010 Yutaka HARA and the BiwaScheme team
'''
Lua:
name: 'Lua'
tagline: 'A lightweight multi-paradigm scripting language.'
shortcut: 'L'
about_link: 'http://en.wikipedia.org/wiki/Lua_(programming_language)'
engine_link: 'https://github.com/replit/jsrepl/tree/master/extern/lua'
examples:
editor: '/langs/lua/examples-editor.html'
console: '/langs/lua/examples-console.html'
ace_mode:
script: '/lib/ace/mode-lua.js'
module: 'ace/mode/lua'
header: '''
Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
[GCC 4.2.1 (LLVM, Emscripten 1.5)] on linux2
'''
Python:
name: 'Python'
tagline: 'A dynamic language emphasizing readability.'
shortcut: 'P'
about_link: 'http://en.wikipedia.org/wiki/Python_(programming_language)'
engine_link: 'https://github.com/replit/empythoned'
examples:
editor: '/langs/python/examples-editor.html'
console: '/langs/python/examples-console.html'
ace_mode:
script: '/lib/ace/mode-python.js'
module: 'ace/mode/python'
header: '''
Python 2.7.2 (default, Jul 20 2011, 02:32:18)
[GCC 4.2.1 (LLVM, Emscripten 1.5, Empythoned)] on linux2
'''
Ruby:
name: 'Ruby (beta)'
tagline: 'A natural dynamic object-oriented language.'
shortcut: 'R'
about_link: 'http://en.wikipedia.org/wiki/Ruby_(programming_language)'
engine_link: 'https://github.com/replit/emscripted-ruby'
examples:
editor: '/langs/ruby/examples-editor.html'
console: '/langs/ruby/examples-console.html'
ace_mode:
script: '/lib/ace/mode-ruby.js'
module: 'ace/mode/ruby'
header: '''
Ruby 1.8.7 (2008-05-31 patchlevel 0) [x86-linux]
[GCC 4.2.1 (LLVM, Emscripten 1.5, Emscripted-Ruby)]
'''