rapydscript-ns 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.agignore +1 -0
  2. package/.gitattributes +4 -0
  3. package/.github/workflows/ci.yml +38 -0
  4. package/.github/workflows/web-repl-page-deploy.yml +42 -0
  5. package/=template.pyj +5 -0
  6. package/CHANGELOG.md +456 -0
  7. package/CONTRIBUTORS +13 -0
  8. package/HACKING.md +103 -0
  9. package/LICENSE +24 -0
  10. package/README.md +2512 -0
  11. package/TODO.md +327 -0
  12. package/add-toc-to-readme +2 -0
  13. package/bin/export +75 -0
  14. package/bin/rapydscript +70 -0
  15. package/bin/web-repl-export +102 -0
  16. package/build +3 -0
  17. package/package.json +46 -0
  18. package/publish.py +37 -0
  19. package/release/baselib-plain-pretty.js +4370 -0
  20. package/release/baselib-plain-ugly.js +3 -0
  21. package/release/compiler.js +18394 -0
  22. package/release/signatures.json +31 -0
  23. package/session.vim +4 -0
  24. package/setup.cfg +2 -0
  25. package/src/ast.pyj +1356 -0
  26. package/src/baselib-builtins.pyj +279 -0
  27. package/src/baselib-containers.pyj +723 -0
  28. package/src/baselib-errors.pyj +37 -0
  29. package/src/baselib-internal.pyj +421 -0
  30. package/src/baselib-itertools.pyj +97 -0
  31. package/src/baselib-str.pyj +798 -0
  32. package/src/compiler.pyj +36 -0
  33. package/src/errors.pyj +30 -0
  34. package/src/lib/aes.pyj +646 -0
  35. package/src/lib/collections.pyj +695 -0
  36. package/src/lib/elementmaker.pyj +83 -0
  37. package/src/lib/encodings.pyj +126 -0
  38. package/src/lib/functools.pyj +148 -0
  39. package/src/lib/gettext.pyj +569 -0
  40. package/src/lib/itertools.pyj +580 -0
  41. package/src/lib/math.pyj +193 -0
  42. package/src/lib/numpy.pyj +2101 -0
  43. package/src/lib/operator.pyj +11 -0
  44. package/src/lib/pythonize.pyj +20 -0
  45. package/src/lib/random.pyj +118 -0
  46. package/src/lib/re.pyj +470 -0
  47. package/src/lib/traceback.pyj +63 -0
  48. package/src/lib/uuid.pyj +77 -0
  49. package/src/monaco-language-service/analyzer.js +526 -0
  50. package/src/monaco-language-service/builtins.js +543 -0
  51. package/src/monaco-language-service/completions.js +498 -0
  52. package/src/monaco-language-service/diagnostics.js +643 -0
  53. package/src/monaco-language-service/dts.js +550 -0
  54. package/src/monaco-language-service/hover.js +121 -0
  55. package/src/monaco-language-service/index.js +386 -0
  56. package/src/monaco-language-service/scope.js +162 -0
  57. package/src/monaco-language-service/signature.js +144 -0
  58. package/src/output/__init__.pyj +0 -0
  59. package/src/output/classes.pyj +296 -0
  60. package/src/output/codegen.pyj +492 -0
  61. package/src/output/comments.pyj +45 -0
  62. package/src/output/exceptions.pyj +105 -0
  63. package/src/output/functions.pyj +491 -0
  64. package/src/output/literals.pyj +109 -0
  65. package/src/output/loops.pyj +444 -0
  66. package/src/output/modules.pyj +329 -0
  67. package/src/output/operators.pyj +429 -0
  68. package/src/output/statements.pyj +463 -0
  69. package/src/output/stream.pyj +309 -0
  70. package/src/output/treeshake.pyj +182 -0
  71. package/src/output/utils.pyj +72 -0
  72. package/src/parse.pyj +3106 -0
  73. package/src/string_interpolation.pyj +72 -0
  74. package/src/tokenizer.pyj +702 -0
  75. package/src/unicode_aliases.pyj +576 -0
  76. package/src/utils.pyj +192 -0
  77. package/test/_import_one.pyj +37 -0
  78. package/test/_import_two/__init__.pyj +11 -0
  79. package/test/_import_two/level2/__init__.pyj +0 -0
  80. package/test/_import_two/level2/deep.pyj +4 -0
  81. package/test/_import_two/other.pyj +6 -0
  82. package/test/_import_two/sub.pyj +13 -0
  83. package/test/aes_vectors.pyj +421 -0
  84. package/test/annotations.pyj +80 -0
  85. package/test/baselib.pyj +319 -0
  86. package/test/classes.pyj +452 -0
  87. package/test/collections.pyj +152 -0
  88. package/test/decorators.pyj +77 -0
  89. package/test/dict_spread.pyj +76 -0
  90. package/test/docstrings.pyj +39 -0
  91. package/test/elementmaker_test.pyj +45 -0
  92. package/test/ellipsis.pyj +49 -0
  93. package/test/functions.pyj +151 -0
  94. package/test/generators.pyj +41 -0
  95. package/test/generic.pyj +370 -0
  96. package/test/imports.pyj +72 -0
  97. package/test/internationalization.pyj +73 -0
  98. package/test/lint.pyj +164 -0
  99. package/test/loops.pyj +85 -0
  100. package/test/numpy.pyj +734 -0
  101. package/test/omit_function_metadata.pyj +20 -0
  102. package/test/regexp.pyj +55 -0
  103. package/test/repl.pyj +121 -0
  104. package/test/scoped_flags.pyj +76 -0
  105. package/test/starargs.pyj +506 -0
  106. package/test/starred_assign.pyj +104 -0
  107. package/test/str.pyj +198 -0
  108. package/test/subscript_tuple.pyj +53 -0
  109. package/test/unit/fixtures/fibonacci_expected.js +46 -0
  110. package/test/unit/index.js +2989 -0
  111. package/test/unit/language-service-builtins.js +815 -0
  112. package/test/unit/language-service-completions.js +1067 -0
  113. package/test/unit/language-service-dts.js +543 -0
  114. package/test/unit/language-service-hover.js +455 -0
  115. package/test/unit/language-service-scope.js +833 -0
  116. package/test/unit/language-service-signature.js +458 -0
  117. package/test/unit/language-service.js +705 -0
  118. package/test/unit/run-language-service.js +41 -0
  119. package/test/unit/web-repl.js +484 -0
  120. package/tools/build-language-service.js +190 -0
  121. package/tools/cli.js +547 -0
  122. package/tools/compile.js +219 -0
  123. package/tools/compiler.js +108 -0
  124. package/tools/completer.js +131 -0
  125. package/tools/embedded_compiler.js +251 -0
  126. package/tools/export.js +316 -0
  127. package/tools/gettext.js +185 -0
  128. package/tools/ini.js +65 -0
  129. package/tools/lint.js +705 -0
  130. package/tools/msgfmt.js +187 -0
  131. package/tools/repl.js +223 -0
  132. package/tools/self.js +162 -0
  133. package/tools/test.js +118 -0
  134. package/tools/utils.js +128 -0
  135. package/tools/web_repl.js +95 -0
  136. package/try +41 -0
  137. package/web-repl/env.js +74 -0
  138. package/web-repl/index.html +163 -0
  139. package/web-repl/language-service.js +4084 -0
  140. package/web-repl/main.js +254 -0
  141. package/web-repl/prism.css +139 -0
  142. package/web-repl/prism.js +113 -0
  143. package/web-repl/rapydscript.js +435 -0
  144. package/web-repl/sha1.js +25 -0
package/tools/utils.js ADDED
@@ -0,0 +1,128 @@
1
+ /* vim:fileencoding=utf-8
2
+ *
3
+ * Copyright (C) 2015 Kovid Goyal <kovid at kovidgoyal.net>
4
+ *
5
+ * Distributed under terms of the BSD license
6
+ */
7
+ "use strict"; /*jshint node:true */
8
+
9
+ var comment_contents = /\/\*!?(?:\@preserve)?[ \t]*(?:\r\n|\n)([\s\S]*?)(?:\r\n|\n)[ \t]*\*\//;
10
+ var colors = ['red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'];
11
+
12
+ function ansi(code) {
13
+ code = code || 0;
14
+ return String.fromCharCode(27) + '[' + code + 'm';
15
+ }
16
+
17
+ function path_exists(path) {
18
+ var fs = require('fs');
19
+ try {
20
+ fs.statSync(path);
21
+ return true;
22
+ } catch(e) {
23
+ if (e.code != 'ENOENT') throw e;
24
+ }
25
+ }
26
+
27
+ function colored(string, color, bold) {
28
+ var prefix = [];
29
+ if (bold) prefix.push(ansi(1));
30
+ if (color) prefix.push(ansi(colors.indexOf(color) + 31));
31
+ return prefix.join('') + string + ansi(0);
32
+ }
33
+
34
+ function supports_color(stdout) {
35
+ stdout = stdout || process.stdout;
36
+ if (stdout && !stdout.isTTY) {
37
+ return false;
38
+ }
39
+
40
+ if (process.platform === 'win32') {
41
+ return false;
42
+ }
43
+
44
+ if ('COLORTERM' in process.env) {
45
+ return true;
46
+ }
47
+
48
+ if (process.env.TERM === 'dumb') {
49
+ return false;
50
+ }
51
+
52
+ if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
53
+ return true;
54
+ }
55
+
56
+ return false;
57
+
58
+ }
59
+
60
+ function safe_colored(string) {
61
+ return string;
62
+ }
63
+
64
+ function repeat(str, num) {
65
+ return new Array( num + 1 ).join( str );
66
+ }
67
+
68
+ function generators_available() {
69
+ var gen;
70
+ try {
71
+ eval('gen = function *(){}'); // jshint ignore:line
72
+ return typeof gen === 'function' && gen.constructor.name == 'GeneratorFunction';
73
+ } catch(e) {
74
+ return false;
75
+ }
76
+ }
77
+
78
+ function wrap(lines, width) {
79
+ var ans = [];
80
+ var prev = '';
81
+ lines.forEach(function (line) {
82
+ line = prev + line;
83
+ prev = '';
84
+ if (line.length > width) {
85
+ prev = line.substr(width);
86
+ if (prev) prev += ' ';
87
+ line = line.substr(0, width - 1);
88
+ if (line.substr(line.length - 1 !== ' ')) line += '-';
89
+ }
90
+ ans.push(line);
91
+ });
92
+ if (prev) ans = ans.concat(wrap([prev]));
93
+ return ans;
94
+ }
95
+
96
+ function merge() {
97
+ // Simple merge of properties from all objects
98
+ var ans = {};
99
+ Array.prototype.slice.call(arguments).forEach(function (arg) {
100
+ Object.keys(arg).forEach(function(key) {
101
+ ans[key] = arg[key];
102
+ });
103
+ });
104
+ return ans;
105
+ }
106
+
107
+ function get_import_dirs(paths_string, ignore_env) {
108
+ var path = require('path');
109
+ var paths = [];
110
+ function merge(new_path) {
111
+ if (paths.indexOf(new_path) == -1) paths.push(new_path);
112
+ }
113
+ if (!ignore_env && process && process.env && process.env.RAPYDSCRIPT_IMPORT_PATH) {
114
+ process.env.RAPYDSCRIPT_IMPORT_PATH.split(path.delimiter).forEach(merge);
115
+ }
116
+ if (paths_string) paths_string.split(path.delimiter).forEach(merge);
117
+ return paths;
118
+ }
119
+
120
+ exports.comment_contents = comment_contents;
121
+ exports.repeat = repeat;
122
+ exports.wrap = wrap;
123
+ exports.merge = merge;
124
+ exports.colored = colored;
125
+ exports.safe_colored = (supports_color()) ? colored : safe_colored;
126
+ exports.generators_available = generators_available;
127
+ exports.get_import_dirs = get_import_dirs;
128
+ exports.path_exists = path_exists;
@@ -0,0 +1,95 @@
1
+ /* vim:fileencoding=utf-8
2
+ *
3
+ * Copyright (C) 2016 Kovid Goyal <kovid at kovidgoyal.net>
4
+ *
5
+ * Distributed under terms of the BSD license
6
+ */
7
+ "use strict"; /*jshint node:true */
8
+ var vm = require('vm');
9
+ var embedded_compiler = require('tools/embedded_compiler.js');
10
+
11
+ module.exports = function(compiler, baselib, vf_context) {
12
+ var ctx = vm.createContext();
13
+ var LINE_CONTINUATION_CHARS = ':\\';
14
+ var find_completions = null;
15
+ function strip_exports(js) { return js.replace(/^export ((?:async )?function |let )/gm, '$1'); }
16
+ var streaming_compiler = embedded_compiler(compiler, baselib, function(js) { return vm.runInContext(strip_exports(js), ctx); }, '__repl__', vf_context);
17
+
18
+ return {
19
+ 'in_block_mode': false,
20
+
21
+ 'replace_print': function replace_print(write_line_func) {
22
+ ctx.print = function() {
23
+ var parts = [];
24
+ for (var i = 0; i < arguments.length; i++)
25
+ parts.push(ctx.ρσ_str(arguments[i]));
26
+ write_line_func(parts.join(' '));
27
+ };
28
+ },
29
+
30
+ 'is_input_complete': function is_input_complete(source) {
31
+ if (!source || !source.trim()) return false;
32
+ var lines = source.split('\n');
33
+ var last_line = lines[lines.length - 1].trimRight();
34
+ if (this.in_block_mode) {
35
+ // In a block only exit after two blank lines
36
+ if (lines.length < 2) return false;
37
+ var second_last_line = lines[lines.length - 2].trimRight();
38
+ var block_ended = !!(!last_line && !second_last_line);
39
+ if (!block_ended) return false;
40
+ this.in_block_mode = false;
41
+ return true;
42
+ }
43
+
44
+ if (last_line && LINE_CONTINUATION_CHARS.indexOf(last_line.substr(last_line.length - 1)) > -1) {
45
+ this.in_block_mode = true;
46
+ return false;
47
+ }
48
+ try {
49
+ compiler.parse(source, {'filename': '<repl>', 'basedir': '__stdlib__'});
50
+ } catch(e) {
51
+ if (e.is_eof && e.line === lines.length && e.col > 0) {
52
+ return false;
53
+ }
54
+ this.in_block_mode = false;
55
+ return true;
56
+ }
57
+ this.in_block_mode = false;
58
+ return true;
59
+ },
60
+
61
+ 'compile': function web_repl_compile(code, opts) {
62
+ opts = opts || {};
63
+ opts.keep_docstrings = true;
64
+ opts.filename = '<input>';
65
+ return streaming_compiler.compile(code, opts);
66
+ },
67
+
68
+ 'compile_mapped': function web_repl_compile_mapped(code, opts) {
69
+ opts = opts || {};
70
+ opts.keep_docstrings = true;
71
+ opts.filename = '<input>';
72
+ return streaming_compiler.compile_with_sourcemap(code, opts);
73
+ },
74
+
75
+ 'runjs': function runjs(code) {
76
+ var ans = vm.runInContext(strip_exports(code), ctx);
77
+ if (ans !== undefined || ans === null) {
78
+ ctx.ρσ_repl_val = ans;
79
+ var q = vm.runInContext('ρσ_repr(ρσ_repl_val)', ctx);
80
+ ans = (q === 'undefined') ? ans.toString() : q;
81
+ }
82
+ return ans;
83
+ },
84
+
85
+ 'init_completions': function init_completions(completelib) {
86
+ find_completions = completelib(compiler);
87
+ },
88
+
89
+ 'find_completions': function find_completions_(line) {
90
+ return find_completions(line, ctx);
91
+ },
92
+
93
+ };
94
+ };
95
+
package/try ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env python3
2
+
3
+ import subprocess
4
+ import sys
5
+ import os
6
+ import shutil
7
+
8
+ args = sys.argv[1:]
9
+ source = None
10
+
11
+ cmd = ['bin/rapydscript']
12
+
13
+ while args:
14
+ if args[0] in ('-m', '-x'):
15
+ cmd.append(args.pop(0))
16
+ elif args[0] == '-f':
17
+ args.pop(0)
18
+ source = args[0]
19
+ cmd.append(source)
20
+ else:
21
+ break
22
+
23
+ raw = ' '.join(args).replace('\\n', '\n')
24
+
25
+ if os.path.exists('dev'):
26
+ shutil.rmtree('dev')
27
+ shutil.copytree('release', 'dev')
28
+ subprocess.check_call(cmd[:1] + ['self'])
29
+ if source:
30
+ p = subprocess.Popen(
31
+ ['node', '--stack-trace-limit=1000'] + cmd)
32
+ else:
33
+ p = subprocess.Popen(
34
+ ['node', '--stack-trace-limit=1000'] + cmd, stdin=subprocess.PIPE)
35
+ p.stdin.write(raw.encode('utf-8'))
36
+ p.stdin.close()
37
+ try:
38
+ raise SystemExit(p.wait())
39
+ except KeyboardInterrupt:
40
+ p.kill()
41
+ raise SystemExit(1)
@@ -0,0 +1,74 @@
1
+ /* vim:fileencoding=utf-8
2
+ *
3
+ * Copyright (C) 2016 Kovid Goyal <kovid at kovidgoyal.net>
4
+ *
5
+ * Distributed under terms of the BSD license
6
+ */
7
+
8
+ var namespace = {}, jsSHA = {};
9
+
10
+ var write_cache = {};
11
+
12
+ var builtin_modules = {
13
+ 'crypto' : {
14
+ 'createHash': function create_hash() {
15
+ var ans = new jsSHA.jsSHA('SHA-1', 'TEXT');
16
+ ans.digest = function hex_digest() { return ans.getHash('HEX'); };
17
+ return ans;
18
+ },
19
+ },
20
+
21
+ 'vm': {
22
+ 'createContext': function create_context(ctx) {
23
+ var iframe = document.createElement('iframe');
24
+ iframe.style.display = 'none';
25
+ document.body.appendChild(iframe);
26
+ var win = iframe.contentWindow;
27
+ if(!ctx) ctx = {};
28
+ if (!ctx.sha1sum) ctx.sha1sum = sha1sum;
29
+ if (!ctx.require) ctx.require = require;
30
+ Object.keys(ctx).forEach(function(k) { win[k] = ctx[k]; });
31
+ return win;
32
+ },
33
+
34
+ 'runInContext': function run_in_context(code, ctx) {
35
+ return ctx.eval(code.replace(/^export ((?:async )?function |let )/gm, '$1'));
36
+ },
37
+
38
+ 'runInThisContext': eval,
39
+ },
40
+ 'path': {
41
+ 'join': function path_join() { return Array.prototype.slice.call(arguments).join('/'); },
42
+ 'dirname': function path_dirname(path) {
43
+ return path.split('/').slice(0, -1).join('/');
44
+ },
45
+ },
46
+ 'inspect': function inspect(x) { return x.toString(); },
47
+
48
+ 'fs': {
49
+ 'readFileSync': function readfile(name) {
50
+ if (namespace.virtual_file_system && namespace.virtual_file_system.read_file_sync) {
51
+ data = namespace.virtual_file_system.read_file_sync(name);
52
+ if (data !== null) return data;
53
+ }
54
+ var data = namespace.file_data[name];
55
+ if (data) return data;
56
+ data = write_cache[name];
57
+ if (data) return data;
58
+ var err = Error();
59
+ err.code = 'ENOENT';
60
+ throw err;
61
+ },
62
+
63
+ 'writeFileSync': function writefile(name, data) {
64
+ if (namespace.virtual_file_system && namespace.virtual_file_system.write_file_sync) {
65
+ namespace.virtual_file_system.write_file_sync(name, data);
66
+ } else write_cache[name] = data;
67
+ },
68
+
69
+ },
70
+ };
71
+
72
+ function require(name) {
73
+ return builtin_modules[name] || {};
74
+ }
@@ -0,0 +1,163 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>RapydScript REPL</title>
5
+ <meta charset="utf-8" />
6
+ <script type="text/javascript" src="prism.js" defer data-manual></script>
7
+ <script type="text/javascript" src="rapydscript.js" defer></script>
8
+ <script type="text/javascript" src="main.js" defer></script>
9
+ <style type="text/css">
10
+
11
+ body, div, h1, h2, h3 { margin: 0; padding: 0; border-width: 0; box-sizing: border-box }
12
+
13
+ body {
14
+ color: black;
15
+ background-color: #f5f2f0;
16
+ font-family: monospace;
17
+ }
18
+
19
+ hr {
20
+ border: 0; height: 1px; background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
21
+ }
22
+
23
+ #top, #bottom {
24
+ display: none;
25
+ }
26
+
27
+ #top {
28
+ border-bottom: solid 1px currentColor;
29
+ height: 75vh;
30
+ max-height: 75vh;
31
+ }
32
+
33
+ #bottom {
34
+ border-top: solid 1px currentColor;
35
+ padding: 1ex 1rem;
36
+ height: 25vh;
37
+ justify-content: flex-start;
38
+ align-items: center;
39
+ }
40
+
41
+ .panel {
42
+ width: 50vw;
43
+ }
44
+
45
+ #left {
46
+ border-right: solid 1px currentColor;
47
+ }
48
+
49
+ #right {
50
+ border-left: solid 1px currentColor;
51
+ }
52
+
53
+ .panel > div {
54
+ height: 75vh;
55
+ max-height: 7xvh;
56
+ overflow:auto;
57
+ }
58
+
59
+ .panel h2 {
60
+ background-color: lightGray;
61
+ border-bottom: solid 1px currentColor;
62
+ vertical-align: middle;
63
+ padding: 1ex 1rem;
64
+ }
65
+
66
+ .panel .output {
67
+ padding: 1ex 1rem;
68
+ white-space: pre-wrap;
69
+ }
70
+
71
+ code.language-javascript {
72
+ white-space: pre-wrap !important;
73
+ font-family: monospace !important;
74
+ }
75
+
76
+ #input {
77
+ margin-right: 1rem;
78
+ flex: 2;
79
+ align-self: stretch;
80
+ }
81
+
82
+ #completions {
83
+ display: none;
84
+ position: absolute;
85
+ bottom: 25vh;
86
+ bottom: calc(25vh - 1ex);
87
+ border: solid 1px currentColor;
88
+ background-color: #ffefd5;
89
+ z-index: 200;
90
+ border-radius: 4px;
91
+ padding: 1ex 1em;
92
+ margin: 0 1em;
93
+ }
94
+
95
+ #completions > div:first-of-type {
96
+ float: right;
97
+ margin-top: -27px;
98
+ margin-right: -25px;
99
+ width: 30px;
100
+ height: 30px;
101
+ border-radius: 30px;
102
+ font-size: 25px;
103
+ padding: 0;
104
+ z-index: 201;
105
+ line-height: 0px;
106
+ cursor: pointer;
107
+ left: 100%;
108
+ display:flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ background: #605F61;
112
+ border: 1px solid #AEAEAE;
113
+ }
114
+
115
+ #completions > div:first-of-type:hover {
116
+ color: red;
117
+ }
118
+
119
+ #completions > div:last-of-type {
120
+ overflow: auto;
121
+ height: auto;
122
+ max-height: 20vh;
123
+ width: 100%;
124
+ }
125
+
126
+ .completion-group {
127
+ display: flex;
128
+ flex-wrap: wrap;
129
+ align-items: baseline;
130
+ margin-bottom: 2ex;
131
+ }
132
+
133
+ .completion-group:last-of-type {
134
+ margin-bottom: 0;
135
+ }
136
+
137
+ </style>
138
+ </head>
139
+ <body>
140
+ <pre id="loading">Loading RapydScript REPL, please wait...</pre>
141
+ <div id="top">
142
+ <div id="left" class="panel">
143
+ <div id="left-scroll">
144
+ <h2>Compiled JavaScript</h2>
145
+ <div id="js" class="output"></div>
146
+ </div>
147
+ </div>
148
+ <div id="right" class="panel">
149
+ <div id="right-scroll">
150
+ <h2>Output</h2>
151
+ <div id="output" class="output"></div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ <div id="bottom">
156
+ <textarea id="input" spellcheck="false"></textarea>
157
+ <button id="run">Run!</button>
158
+ </div>
159
+ <div id="completions"><div title="Close completions popup"><span>✖</span></div><div></div></div>
160
+ <link href="prism.css" type="text/css" rel="stylesheet"></link>
161
+ </body>
162
+ </html>
163
+