@exercism/codemirror-lang-scheme 0.0.0-stage → 1.0.1

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.
package/dist/index.cjs ADDED
@@ -0,0 +1,722 @@
1
+ 'use strict';
2
+
3
+ var language = require('@codemirror/language');
4
+ var lr = require('@lezer/lr');
5
+ var highlight = require('@lezer/highlight');
6
+ var autocomplete = require('@codemirror/autocomplete');
7
+
8
+ // This file was generated by lezer-generator. You probably shouldn't edit it.
9
+ const spec_symbolName = {__proto__:null,".":232, define:239, "define*":239, "define-public":239, "define-inline":239, "define-integrable":239, "define/contract":241, "define/public":241, "define/private":241, "define/override":241, "define/augment":241, "define/pubment":241, "define-values":253, "define-syntax":259, "define-syntax-rule":259, "define-macro":259, "define-record-type":263, lambda:269, "lambda*":269, "λ":269, "case-lambda":275, let:279, "let*":279, letrec:279, "letrec*":279, "let-syntax":279, "letrec-syntax":279, "let-values":283, "let*-values":283, receive:287, do:291, guard:295, struct:299, match:305, "match*":305, "match-lambda":309, "match-lambda*":309, "match-define":313, for:317, "for/list":317, "for/vector":317, "for/hash":317, "for/hasheq":317, "for/hasheqv":317, "for/and":317, "for/or":317, "for/sum":317, "for/product":317, "for/first":317, "for/last":317, "for/set":317, "for/string":317, "for*":317, "for*/list":317, "for*/vector":317, "for*/hash":317, "for*/hasheq":317, "for*/hasheqv":317, "for*/and":317, "for*/or":317, "for*/sum":317, "for*/product":317, "for*/first":317, "for*/last":317, "for*/set":317, "for/fold":323, "for*/fold":323, "for/foldr":323, "for*/foldr":323, "for/lists":323, "for*/lists":323, "let/ec":327, "let/cc":327, if:333, cond:333, case:333, and:333, or:333, when:333, unless:333, begin:333, else:333, "set!":333, quote:333, quasiquote:333, unquote:333, "unquote-splicing":333, delay:333, "delay-force":333, "make-promise":333, parameterize:333, assert:333, "syntax-rules":333, "syntax-case":333, "with-syntax":333, syntax:333, quasisyntax:333, import:333, export:333, library:333, "define-library":333, include:333, "include-ci":333, "cond-expand":333, "define-module":333, "use-modules":333, "fluid-let":333, module:335, "module+":335, "module*":335, provide:335, require:335, "contract-out":335, "struct-out":335, "all-defined-out":335, "all-from-out":335, "rename-out":335, "only-in":335, "except-in":335, "prefix-in":335, "rename-in":335, "for-syntax":335, begin0:335, "with-handlers":335, "with-handlers*":335, local:335, "struct-copy":335, "match-let":335, "match-let*":335, "define-syntax-parser":335, "syntax-parse":335, class:335, "class*":335, new:335, send:335, "super-new":335, field:335, init:335, "init-field":335, inherit:335, this:335, "->":335, "->*":335, "->i":335, "+":337, "-":337, "*":337, "/":337, "=":337, "<":337, ">":337, "<=":337, ">=":337};
10
+ const parser = lr.LRParser.deserialize({
11
+ version: 14,
12
+ states: "!!lQcQPOOP#YOPOOOOQO'#Cc'#CcOOQO'#Ck'#CkOOQO'#Ea'#EaQcQPOOO#bQPO'#ClO$}QPO'#ClO&jQPO'#ClO(VQPO'#DsO(^QPO'#DtO(eQPO'#DwOcQPO'#D{OcQPO'#D}OcQPO'#EPOcQPO'#EROcQPO'#ETOcQPO'#EVOcQPO'#EXOcQPO'#EZOOQO'#Es'#EsOOQO'#Ep'#EpP(lOQO'#C_P(wQPO'#CaPOOO)C@c)C@cOOQO-E8_-E8_OOQO'#Cn'#CnO+PQPO'#EvOOQO'#Cx'#CxO+^QPO'#E}OOQO'#Cz'#CzO+xQPO'#FQOOQO'#C|'#C|O,dQPO'#FSOOQO'#DR'#DRO-WQPO'#FVOOQO'#DT'#DTO-eQPO'#FYOOQO'#DV'#DVO-yQPO'#F[OOQO'#DY'#DYO.eQPO'#F^OOQO'#D['#D[O.yQPO'#F`OOQO'#D]'#D]O/WQPO'#FbOOQO'#D^'#D^O/lQPO'#FdOOQO'#D_'#D_O0QQPO'#FfOOQO'#Db'#DbO0cQPO'#FiOOQO'#De'#DeO0pQPO'#FkOOQO'#Df'#DfO1UQPO'#FmOOQO'#Dg'#DgO1cQPO'#FoOOQO'#Dk'#DkO1wQPO'#FrOOQO'#Dm'#D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%o%r%s%t%v&R&X&Y&e&g&h&q&s&t&w&y&{&|'X'Y'Z']'^'b'c'd'j'}(O(P(S(Z(](^(f(h(iS!p[(sS!q](tS!r^(uS!s_(vS!t`(wS!ua(xS!vb(yS!wc(zQ!{gQ#{!TW$R!X#|#}$OR'e%{%beOTXYZ[]^_`abcg!T!X!e!j!l!n#R#W#[#d#n#s#t#u#y#|#}$O$S$W$]$^$i$r$s$t$u$v%T%U%V%W%_%`%e%f%g%h%i%j%k%o%r%s%t%v%{&R&X&Y&e&g&h&q&s&t&w&y&{&|'X'Y'Z']'^'b'c'd'j'}(O(P(S(Z(](^(f(h(i(s(t(u(v(w(x(y(zV!dUVWQ!gUQ!hVR!iWV!fUVWR#RkQ$f!}Q$g#OR$h#PQ%Q#`Q%R#aQ%S#bR&Z$eZ$}#`#a#b$e%OR#WmR${#^Q#dsQ#t{Q%U#eQ%V#fR%W#g]'S%l%m%n'T'V'W[%|$T$U$V%}&P&Q]&S$X$Y$Z&T&V&WV!eUVW",
15
+ nodeNames: "⚠ LineComment |# BlockComment #| DatumComment #; Symbol Number String Regexp Character Boolean Nil Keyword Dot List ( DefineLike VarName List LocalName List ) [ ] { } DefineValuesLike List DefineSyntaxLike List DefineRecordLike TypeName List FieldName List LambdaLike List CaseLambdaLike List LetLike LoopName List LetValuesLike List ReceiveLike DoLike GuardLike StructLike List List MatchLike List Pattern MatchLambdaLike MatchDefineLike ForLike List List List ForFoldLike List EscapeLike SpecialForm RacketForm Operator Callee #( Vector ByteVector #u8( #vu8( HashTable #hash( #hasheq( #hasheqv( Quote ' QuasiQuote ` Unquote , UnquoteSplicing ,@ Syntax #' QuasiSyntax #` Unsyntax #, UnsyntaxSplicing #,@ Directive Program",
16
+ maxTerm: 168,
17
+ nodeProps: [
18
+ ["openedBy", 23,"#("],
19
+ ["closedBy", 68,")"]
20
+ ],
21
+ skippedNodes: [0,1,2,3,4,5,6,93,95],
22
+ repeatNodeCount: 13,
23
+ tokenData: "$4k~RwOX#lXY'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'S%h;'S;=`%|<%lO%h",
24
+ tokenizers: [0, 1],
25
+ topRules: {"Program":[0,94]},
26
+ dialects: {racket: 2649},
27
+ dynamicPrecedences: {"18":1,"28":1,"30":1,"32":1,"37":1,"39":1,"41":1,"44":1,"46":1,"47":1,"48":1,"49":1,"52":1,"55":1,"56":1,"57":1,"61":1,"63":1,"64":1,"65":1,"66":1},
28
+ specialized: [{term: 113, get: (value) => spec_symbolName[value] || -1}],
29
+ tokenPrec: 2659
30
+ });
31
+
32
+ // The parts of the language support that Scheme and Racket share: the parser
33
+ // with its highlighting, indentation and folding, and the language data.
34
+ const definitionHeads = [
35
+ "DefineLike", "DefineValuesLike", "DefineSyntaxLike", "DefineRecordLike", "LambdaLike",
36
+ "CaseLambdaLike", "LetLike", "LetValuesLike", "ReceiveLike", "StructLike", "MatchDefineLike",
37
+ "EscapeLike",
38
+ ];
39
+ const controlHeads = ["DoLike", "GuardLike", "MatchLike", "MatchLambdaLike", "ForLike", "ForFoldLike"];
40
+ /// The nodes for keywords at the head of a list.
41
+ const keywordHeads = new Set([...definitionHeads, ...controlHeads, "SpecialForm", "RacketForm"]);
42
+ const closesList = /^\s*[)\]}]/;
43
+ const closers = new Set([")", "]", "}"]);
44
+ // Scheme indents a list in one of three ways:
45
+ //
46
+ // (define (f x) ; a special form indents its body by one unit
47
+ // (g x))
48
+ //
49
+ // (string-append a ; a call lines its arguments up under the first one
50
+ // b)
51
+ //
52
+ // '((1 . "one") ; a list that starts with a list lines up its elements
53
+ // (2 . "two"))
54
+ function listIndent(context) {
55
+ const open = context.node.firstChild;
56
+ if (!open)
57
+ return null;
58
+ const column = context.column(open.from);
59
+ if (closesList.test(context.textAfter))
60
+ return column;
61
+ const head = open.nextSibling;
62
+ if (!head || closers.has(head.name) || keywordHeads.has(head.name))
63
+ return column + context.unit;
64
+ if (head.name != "Callee" && head.name != "Operator")
65
+ return context.column(head.from);
66
+ const argument = head.nextSibling;
67
+ if (argument && !closers.has(argument.name) &&
68
+ context.lineAt(argument.from).from == context.lineAt(head.from).from)
69
+ return context.column(argument.from);
70
+ return column + context.unit;
71
+ }
72
+ /// The grammar's parser, with highlighting, indentation and folding.
73
+ const configuredParser = parser.configure({
74
+ props: [
75
+ language.indentNodeProp.add({
76
+ "List Vector ByteVector HashTable": listIndent,
77
+ }),
78
+ language.foldNodeProp.add({
79
+ "List Vector ByteVector HashTable": language.foldInside,
80
+ BlockComment: (node) => ({ from: node.from + 2, to: node.to - 2 }),
81
+ }),
82
+ highlight.styleTags({
83
+ [definitionHeads.join(" ")]: highlight.tags.definitionKeyword,
84
+ [controlHeads.join(" ")]: highlight.tags.controlKeyword,
85
+ "SpecialForm RacketForm": highlight.tags.keyword,
86
+ Operator: highlight.tags.operator,
87
+ "VarName/Symbol LocalName/Symbol LoopName/Symbol FieldName/Symbol Pattern/Symbol": highlight.tags.definition(highlight.tags.variableName),
88
+ "TypeName/Symbol": highlight.tags.definition(highlight.tags.typeName),
89
+ "Callee/Symbol": highlight.tags.function(highlight.tags.variableName),
90
+ "Quote/Symbol": highlight.tags.atom,
91
+ Symbol: highlight.tags.variableName,
92
+ Number: highlight.tags.number,
93
+ String: highlight.tags.string,
94
+ Regexp: highlight.tags.regexp,
95
+ Character: highlight.tags.character,
96
+ Boolean: highlight.tags.bool,
97
+ Nil: highlight.tags.null,
98
+ Keyword: highlight.tags.atom,
99
+ LineComment: highlight.tags.lineComment,
100
+ "BlockComment #| |#": highlight.tags.blockComment,
101
+ "DatumComment/...": highlight.tags.comment,
102
+ Directive: highlight.tags.meta,
103
+ "' ` , ,@ #' #` #, #,@": highlight.tags.operator,
104
+ Dot: highlight.tags.punctuation,
105
+ "( )": highlight.tags.paren,
106
+ "[ ]": highlight.tags.squareBracket,
107
+ "{ }": highlight.tags.brace,
108
+ "#( #u8( #vu8( #hash( #hasheq( #hasheqv(": highlight.tags.paren,
109
+ }),
110
+ ],
111
+ });
112
+ /// The comment tokens, brackets and indent trigger for both languages.
113
+ const languageData = {
114
+ commentTokens: { line: ";", block: { open: "#|", close: "|#" } },
115
+ closeBrackets: { brackets: ["(", "[", "{", '"'] },
116
+ indentOnInput: /^\s*[)\]}]$/,
117
+ };
118
+
119
+ // The names that completion offers. The first two lists are R7RS-small, so a
120
+ // grammar for another Scheme (or Racket) can reuse them and add its own.
121
+ const words$1 = (text) => text.trim().split(/\s+/);
122
+ // R7RS syntax, including the auxiliary keywords used inside other forms.
123
+ const r7rsSyntax = words$1(`
124
+ and begin case case-lambda cond cond-expand define define-library
125
+ define-record-type define-syntax define-values delay delay-force do else
126
+ export guard if import include include-ci lambda let let* let*-values
127
+ let-syntax let-values letrec letrec* letrec-syntax parameterize quasiquote
128
+ quote set! syntax-error syntax-rules unless unquote unquote-splicing when
129
+ `);
130
+ // The procedures of every R7RS-small library.
131
+ const r7rsProcedures = words$1(`
132
+ * + - / < <= = > >= abs append apply assoc assq assv binary-port? boolean=?
133
+ boolean? bytevector bytevector-append bytevector-copy bytevector-copy!
134
+ bytevector-length bytevector-u8-ref bytevector-u8-set! bytevector? caar cadr
135
+ call-with-current-continuation call-with-port call-with-values call/cc car
136
+ cdar cddr cdr ceiling char->integer char-ready? char<=? char<? char=? char>=?
137
+ char>? char? close-input-port close-output-port close-port complex? cons
138
+ current-error-port current-input-port current-output-port denominator
139
+ dynamic-wind eof-object eof-object? eq? equal? eqv? error
140
+ error-object-irritants error-object-message error-object? even? exact
141
+ exact-integer-sqrt exact-integer? exact? expt features file-error? floor
142
+ floor-quotient floor-remainder floor/ flush-output-port for-each gcd
143
+ get-output-bytevector get-output-string inexact inexact? input-port-open?
144
+ input-port? integer->char integer? lcm length list list->string list->vector
145
+ list-copy list-ref list-set! list-tail list? make-bytevector make-list
146
+ make-parameter make-string make-vector map max member memq memv min modulo
147
+ negative? newline not null? number->string number? numerator odd?
148
+ open-input-bytevector open-input-string open-output-bytevector
149
+ open-output-string output-port-open? output-port? pair? peek-char peek-u8
150
+ positive? procedure? quotient raise raise-continuable rational? rationalize
151
+ read-bytevector read-bytevector! read-char read-error? read-line read-string
152
+ read-u8 real? remainder reverse round set-car! set-cdr! square string
153
+ string->list string->number string->symbol string->utf8 string->vector
154
+ string-append string-copy string-copy! string-fill! string-for-each
155
+ string-length string-map string-ref string-set! string<=? string<? string=?
156
+ string>=? string>? string? substring symbol->string symbol=? symbol?
157
+ textual-port? truncate truncate-quotient truncate-remainder truncate/
158
+ u8-ready? utf8->string values vector vector->list vector->string
159
+ vector-append vector-copy vector-copy! vector-fill! vector-for-each
160
+ vector-length vector-map vector-ref vector-set! vector? with-exception-handler
161
+ write-bytevector write-char write-string write-u8 zero?
162
+
163
+ char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>?
164
+ char-downcase char-foldcase char-lower-case? char-numeric? char-upcase
165
+ char-upper-case? char-whitespace? digit-value string-ci<=? string-ci<?
166
+ string-ci=? string-ci>=? string-ci>? string-downcase string-foldcase
167
+ string-upcase
168
+
169
+ angle imag-part magnitude make-polar make-rectangular real-part
170
+
171
+ caaar caadr cadar caddr cdaar cdadr cddar cdddr caaaar caaadr caadar caaddr
172
+ cadaar cadadr caddar cadddr cdaaar cdaadr cdadar cdaddr cddaar cddadr cdddar
173
+ cddddr
174
+
175
+ environment eval
176
+
177
+ call-with-input-file call-with-output-file delete-file file-exists?
178
+ open-binary-input-file open-binary-output-file open-input-file
179
+ open-output-file with-input-from-file with-output-to-file
180
+
181
+ acos asin atan cos exp finite? infinite? log nan? sin sqrt tan
182
+
183
+ force make-promise promise?
184
+
185
+ load
186
+
187
+ command-line emergency-exit exit get-environment-variable
188
+ get-environment-variables
189
+
190
+ read
191
+
192
+ interaction-environment
193
+
194
+ current-jiffy current-second jiffies-per-second
195
+
196
+ display write write-shared write-simple
197
+ `);
198
+ // Procedures from R6RS, SRFI-1 and Guile that the track's solutions often use.
199
+ // The track runs on both Chez and Guile, so each one exists in at least one of
200
+ // them.
201
+ const commonProcedures = words$1(`
202
+ fold-left fold-right filter remove partition find exists for-all list-sort
203
+ div mod
204
+ fold reduce iota first second third last take drop delete delete-duplicates
205
+ any every count filter-map append-map
206
+ format sort string-null? string-split string-join string-index string-contains
207
+ 1+ 1-
208
+ `);
209
+ // Syntax from R6RS, SRFI-8 and Guile that the track's solutions often use.
210
+ const commonSyntax = words$1(`
211
+ assert receive define* lambda* define-public
212
+ `);
213
+
214
+ // A Scheme identifier, such as `list->string`, `set-car!` or `<=`.
215
+ const Identifier = /^[^\s()\[\]{}"';`,|#][^\s()\[\]{}"';`,|]*$/;
216
+ // The cursor is in one of these when it is typing a name.
217
+ const wordNodes = new Set(["Symbol", "Operator", ...keywordHeads]);
218
+ // Nothing is offered inside these, or while a new name is being typed.
219
+ const dontComplete = new Set([
220
+ "String", "Regexp", "Character", "Number", "Boolean", "Keyword", "LineComment", "BlockComment",
221
+ "DatumComment", "Directive", "VarName", "LocalName", "LoopName", "FieldName", "TypeName",
222
+ ]);
223
+ function inNode(node, names) {
224
+ for (let cur = node; cur; cur = cur.parent)
225
+ if (names.has(cur.name))
226
+ return true;
227
+ return false;
228
+ }
229
+ const schemeSnippets = [
230
+ ["define", "procedure", "define (${name} ${params})\n\t${}"],
231
+ ["define", "variable", "define ${name} ${value}"],
232
+ ["lambda", "anonymous procedure", "lambda (${params})\n\t${}"],
233
+ ["let", "local bindings", "let ((${name} ${value}))\n\t${}"],
234
+ ["let", "named let loop", "let ${loop} ((${name} ${init}))\n\t${}"],
235
+ ["let*", "sequential bindings", "let* ((${name} ${value}))\n\t${}"],
236
+ ["letrec", "recursive bindings", "letrec ((${name} ${value}))\n\t${}"],
237
+ ["if", "conditional", "if ${test}\n\t${then}\n\t${else}"],
238
+ ["cond", "conditional", "cond\n\t(${test} ${result})\n\t(else ${default})"],
239
+ ["case", "conditional", "case ${key}\n\t((${datum}) ${result})\n\t(else ${default})"],
240
+ ["when", "conditional", "when ${test}\n\t${}"],
241
+ ["unless", "conditional", "unless ${test}\n\t${}"],
242
+ ["do", "loop", "do ((${i} ${init} ${step}))\n\t((${test}) ${result})\n\t${}"],
243
+ ["define-record-type", "record", "define-record-type ${name}\n\t(make-${name} ${field})\n\t${name}?\n\t(${field} ${name}-${field})"],
244
+ ["import", "import libraries", "import (scheme base)"],
245
+ ];
246
+ function wordAt(context, inner) {
247
+ if (wordNodes.has(inner.name) && inner.to - inner.from < 60) {
248
+ const text = context.state.sliceDoc(inner.from, context.pos);
249
+ if (Identifier.test(text))
250
+ return { from: inner.from };
251
+ }
252
+ return context.explicit ? { from: context.pos } : null;
253
+ }
254
+ /// Makes a completion source that offers the given syntax, procedures and
255
+ /// snippets.
256
+ function builtinSource(syntax, procedures, snippets) {
257
+ const options = [
258
+ ...[...new Set(syntax)].map((label) => ({ label, type: "keyword" })),
259
+ ...[...new Set(procedures)].map((label) => ({ label, type: "function" })),
260
+ ];
261
+ const inParens = options.concat(snippets.map(([label, detail, body]) => autocomplete.snippetCompletion(body, { label, detail, type: "keyword", boost: -1 })));
262
+ const withParens = options.concat(snippets.map(([label, detail, body]) => autocomplete.snippetCompletion("(" + body + ")", { label, detail, type: "keyword", boost: -1 })));
263
+ return (context) => {
264
+ const inner = language.syntaxTree(context.state).resolveInner(context.pos, -1);
265
+ if (inNode(inner, dontComplete))
266
+ return null;
267
+ const word = wordAt(context, inner);
268
+ if (!word)
269
+ return null;
270
+ const afterParen = /[(\[{]/.test(context.state.sliceDoc(word.from - 1, word.from));
271
+ return { from: word.from, options: afterParen ? inParens : withParens, validFor: Identifier };
272
+ };
273
+ }
274
+ /// Completes R7RS syntax and procedures, a few common extensions, and
275
+ /// snippets for the common forms.
276
+ const builtinCompletionSource = builtinSource([...r7rsSyntax, ...commonSyntax], [...r7rsProcedures, ...commonProcedures], schemeSnippets);
277
+ const brackets = new Set(["(", ")", "[", "]", "{", "}"]);
278
+ // The elements of a list, without its brackets.
279
+ function elements(list) {
280
+ const result = [];
281
+ for (let child = list.firstChild; child; child = child.nextSibling) {
282
+ if (!brackets.has(child.name))
283
+ result.push(child);
284
+ }
285
+ return result;
286
+ }
287
+ // The names in a parameter list: `x`, `(a b . rest)` or Guile's
288
+ // `(a #:optional (b 1))`.
289
+ function paramNames(node, add) {
290
+ if (!node)
291
+ return;
292
+ if (node.name == "LocalName" || node.name == "VarName") {
293
+ add({ node, type: "variable" });
294
+ }
295
+ else if (node.name == "List") {
296
+ for (const el of elements(node)) {
297
+ if (el.name == "LocalName" || el.name == "VarName")
298
+ add({ node: el, type: "variable" });
299
+ else if (el.name == "List") {
300
+ const first = elements(el)[0];
301
+ if ((first === null || first === void 0 ? void 0 : first.name) == "LocalName")
302
+ add({ node: first, type: "variable" });
303
+ }
304
+ }
305
+ }
306
+ }
307
+ function isLambda(state, node) {
308
+ var _a;
309
+ return (node === null || node === void 0 ? void 0 : node.name) == "List" && ((_a = elements(node)[0]) === null || _a === void 0 ? void 0 : _a.name) == "LambdaLike";
310
+ }
311
+ // The names that a definition at this list's level creates. A `begin` at the
312
+ // same level can hold more of them.
313
+ function definedNames(state, list, add) {
314
+ var _a, _b, _c, _d;
315
+ const els = elements(list);
316
+ const head = els[0];
317
+ if (!head)
318
+ return;
319
+ switch (head.name) {
320
+ case "DefineLike": {
321
+ let target = els[1];
322
+ let isProcedure = isLambda(state, els[2]);
323
+ while ((target === null || target === void 0 ? void 0 : target.name) == "List") {
324
+ target = elements(target)[0];
325
+ isProcedure = true;
326
+ }
327
+ if ((target === null || target === void 0 ? void 0 : target.name) == "VarName")
328
+ add({ node: target, type: isProcedure ? "function" : "variable" });
329
+ break;
330
+ }
331
+ case "DefineValuesLike":
332
+ paramNames(els[1], add);
333
+ break;
334
+ case "DefineSyntaxLike": {
335
+ const target = ((_a = els[1]) === null || _a === void 0 ? void 0 : _a.name) == "List" ? elements(els[1])[0] : els[1];
336
+ if ((target === null || target === void 0 ? void 0 : target.name) == "VarName")
337
+ add({ node: target, type: "keyword" });
338
+ break;
339
+ }
340
+ case "DefineRecordLike": {
341
+ if (((_b = els[1]) === null || _b === void 0 ? void 0 : _b.name) == "TypeName")
342
+ add({ node: els[1], type: "type" });
343
+ for (const el of els.slice(2)) {
344
+ if (el.name == "VarName")
345
+ add({ node: el, type: "function" });
346
+ else if (el.name == "List") {
347
+ for (const v of elements(el))
348
+ if (v.name == "VarName")
349
+ add({ node: v, type: "function" });
350
+ }
351
+ }
352
+ break;
353
+ }
354
+ case "StructLike": {
355
+ // `(struct point (x [y #:mutable]))` defines `point`, `point?`,
356
+ // `point-x`, `point-y` and `set-point-y!`.
357
+ const type = els[1];
358
+ if ((type === null || type === void 0 ? void 0 : type.name) != "TypeName")
359
+ break;
360
+ const name = state.sliceDoc(type.from, type.to);
361
+ add({ node: type, type: "type" });
362
+ add({ node: type, type: "function", label: name + "?" });
363
+ const fields = els.slice(2).find((el) => el.name == "List");
364
+ const text = (el) => state.sliceDoc(el.from, el.to);
365
+ const allMutable = els.some((el) => el.name == "Keyword" && text(el) == "#:mutable");
366
+ for (const field of fields ? elements(fields) : []) {
367
+ const parts = field.name == "List" ? elements(field) : [field];
368
+ if (((_c = parts[0]) === null || _c === void 0 ? void 0 : _c.name) != "FieldName")
369
+ continue;
370
+ const fieldName = text(parts[0]);
371
+ add({ node: parts[0], type: "function", label: `${name}-${fieldName}` });
372
+ if (allMutable || parts.some((p) => p.name == "Keyword" && text(p) == "#:mutable"))
373
+ add({ node: parts[0], type: "function", label: `set-${name}-${fieldName}!` });
374
+ }
375
+ break;
376
+ }
377
+ case "MatchDefineLike":
378
+ if (((_d = els[1]) === null || _d === void 0 ? void 0 : _d.name) == "Pattern")
379
+ patternNames(state, els[1], add);
380
+ break;
381
+ case "RacketForm":
382
+ case "SpecialForm":
383
+ if (state.sliceDoc(head.from, head.to) == "begin") {
384
+ for (const el of els.slice(1))
385
+ if (el.name == "List")
386
+ definedNames(state, el, add);
387
+ }
388
+ break;
389
+ }
390
+ }
391
+ // The names that a binding form binds and that are in scope at `pos`, which is
392
+ // inside the form.
393
+ function boundNames(state, list, pos, add) {
394
+ var _a, _b;
395
+ const els = elements(list);
396
+ const head = els[0];
397
+ if (!head)
398
+ return;
399
+ const keyword = state.sliceDoc(head.from, head.to);
400
+ switch (head.name) {
401
+ case "DefineLike": {
402
+ // The parameters of `(define (name . params) body)`, at every level of a
403
+ // curried definition.
404
+ let sig = els[1];
405
+ while ((sig === null || sig === void 0 ? void 0 : sig.name) == "List") {
406
+ for (const el of elements(sig).slice(1))
407
+ paramNames(el, add);
408
+ sig = elements(sig)[0];
409
+ }
410
+ break;
411
+ }
412
+ case "LambdaLike":
413
+ paramNames(els[1], add);
414
+ break;
415
+ case "CaseLambdaLike":
416
+ for (const clause of els.slice(1)) {
417
+ if (clause.name == "List" && clause.from < pos && pos < clause.to)
418
+ paramNames(elements(clause)[0], add);
419
+ }
420
+ break;
421
+ case "LetLike":
422
+ case "DoLike": {
423
+ let i = 1;
424
+ if (((_a = els[i]) === null || _a === void 0 ? void 0 : _a.name) == "LoopName") {
425
+ if (els[i + 1] && pos > els[i + 1].to)
426
+ add({ node: els[i], type: "function" });
427
+ i++;
428
+ }
429
+ const bindings = els[i];
430
+ if ((bindings === null || bindings === void 0 ? void 0 : bindings.name) != "List")
431
+ break;
432
+ const sequential = keyword == "let*";
433
+ const everywhere = head.name == "DoLike" || keyword.startsWith("letrec");
434
+ for (const b of elements(bindings)) {
435
+ const name = b.name == "List" ? elements(b)[0] : null;
436
+ if ((name === null || name === void 0 ? void 0 : name.name) != "LocalName")
437
+ continue;
438
+ if (everywhere || pos > bindings.to || (sequential && pos > b.to))
439
+ add({ node: name, type: "variable" });
440
+ }
441
+ break;
442
+ }
443
+ case "LetValuesLike": {
444
+ const bindings = els[1];
445
+ if ((bindings === null || bindings === void 0 ? void 0 : bindings.name) != "List")
446
+ break;
447
+ const sequential = keyword == "let*-values";
448
+ for (const b of elements(bindings)) {
449
+ if (b.name != "List")
450
+ continue;
451
+ if (pos > bindings.to || (sequential && pos > b.to))
452
+ paramNames(elements(b)[0], add);
453
+ }
454
+ break;
455
+ }
456
+ case "ReceiveLike":
457
+ if (els[2] && pos > els[2].to)
458
+ paramNames(els[1], add);
459
+ break;
460
+ case "MatchLike":
461
+ case "MatchLambdaLike":
462
+ for (const clause of els.slice(head.name == "MatchLike" ? 2 : 1)) {
463
+ if (clause.name != "List" || pos <= clause.from || pos >= clause.to)
464
+ continue;
465
+ const pattern = elements(clause)[0];
466
+ if ((pattern === null || pattern === void 0 ? void 0 : pattern.name) == "Pattern" && pos > pattern.to)
467
+ patternNames(state, pattern, add);
468
+ }
469
+ break;
470
+ case "ForLike":
471
+ forNames(els[1], pos, add);
472
+ break;
473
+ case "ForFoldLike": {
474
+ // `(for/fold ([acc 0]) ([x xs]) body)`: the accumulators are in scope in
475
+ // the body, and the loop variables as in `for`.
476
+ const accumulators = els[1];
477
+ if ((accumulators === null || accumulators === void 0 ? void 0 : accumulators.name) == "List" && els[2] && pos > els[2].to) {
478
+ for (const el of elements(accumulators)) {
479
+ if (el.name == "LocalName")
480
+ add({ node: el, type: "variable" });
481
+ else if (el.name == "List")
482
+ paramNames(elements(el)[0], add);
483
+ }
484
+ }
485
+ forNames(els[2], pos, add);
486
+ break;
487
+ }
488
+ case "EscapeLike":
489
+ if (((_b = els[1]) === null || _b === void 0 ? void 0 : _b.name) == "LocalName")
490
+ add({ node: els[1], type: "function" });
491
+ break;
492
+ case "GuardLike": {
493
+ const clause = els[1];
494
+ const name = (clause === null || clause === void 0 ? void 0 : clause.name) == "List" ? elements(clause)[0] : null;
495
+ if ((name === null || name === void 0 ? void 0 : name.name) == "LocalName")
496
+ add({ node: name, type: "variable" });
497
+ break;
498
+ }
499
+ }
500
+ }
501
+ // The names bound by the clauses of a `for` form. A name is in scope in the
502
+ // body and in the clauses after its own. Racket's `for` lets a later clause
503
+ // see the name only after a `#:when`, and `for*` always does. Completion
504
+ // offers it in every later clause for both.
505
+ function forNames(clauses, pos, add) {
506
+ if ((clauses === null || clauses === void 0 ? void 0 : clauses.name) != "List")
507
+ return;
508
+ for (const clause of elements(clauses)) {
509
+ if (clause.name != "List" || (pos < clauses.to && pos <= clause.to))
510
+ continue;
511
+ paramNames(elements(clause)[0], add);
512
+ }
513
+ }
514
+ // The names a `match` pattern binds: its symbols, apart from list heads such
515
+ // as `list` and `cons`, quoted data, predicates such as `string?`, and `_` and
516
+ // `...`.
517
+ function patternNames(state, pattern, add) {
518
+ for (let child = pattern.firstChild; child; child = child.nextSibling) {
519
+ if (child.name == "Quote" || child.name == "Callee")
520
+ continue;
521
+ if (child.name != "Symbol") {
522
+ patternNames(state, child, add);
523
+ continue;
524
+ }
525
+ const text = state.sliceDoc(child.from, child.to);
526
+ if (!/^(_|\.\.\.|\.\.\d+|___|else)$|\?$/.test(text))
527
+ add({ node: child, type: "variable" });
528
+ }
529
+ }
530
+ function namesInScope(state, pos) {
531
+ const seen = new Set();
532
+ const options = [];
533
+ const add = (found) => {
534
+ var _a;
535
+ const { node, type } = found;
536
+ // Skip the name that is being typed.
537
+ if (node.from <= pos && pos <= node.to)
538
+ return;
539
+ const label = (_a = found.label) !== null && _a !== void 0 ? _a : state.sliceDoc(node.from, node.to);
540
+ if (seen.has(label))
541
+ return;
542
+ seen.add(label);
543
+ options.push({ label, type });
544
+ };
545
+ const tree = language.syntaxTree(state);
546
+ for (let node = tree.resolveInner(pos, -1); node; node = node.parent) {
547
+ if (node.name != "List" && node.name != "Program")
548
+ continue;
549
+ if (node.name == "List")
550
+ boundNames(state, node, pos, add);
551
+ // Definitions in a body are in scope in the whole body.
552
+ for (let child = node.firstChild; child; child = child.nextSibling) {
553
+ if (child.name == "List")
554
+ definedNames(state, child, add);
555
+ }
556
+ }
557
+ return options;
558
+ }
559
+ /// Completes the names defined or bound in the file that are in scope at the
560
+ /// cursor.
561
+ const localCompletionSource = (context) => {
562
+ const inner = language.syntaxTree(context.state).resolveInner(context.pos, -1);
563
+ if (inNode(inner, dontComplete))
564
+ return null;
565
+ const word = wordAt(context, inner);
566
+ if (!word)
567
+ return null;
568
+ return { from: word.from, options: namesInScope(context.state, context.pos), validFor: Identifier };
569
+ };
570
+
571
+ // The names that completion offers for Racket: the syntax and procedures of
572
+ // `racket/base`, and the most used ones from the libraries that `#lang racket`
573
+ // loads (racket/list, racket/string, racket/math, racket/set, racket/function
574
+ // and racket/contract), plus rackunit.
575
+ const words = (text) => text.trim().split(/\s+/);
576
+ const racketSyntax = words(`
577
+ define define-values define-syntax define-syntax-rule define/contract define-struct
578
+ define/public define/private define/override struct struct-copy lambda λ case-lambda
579
+ let let* letrec letrec* let-values let*-values letrec-values let/ec let/cc
580
+ if cond case when unless and or else begin begin0 set! set!-values do
581
+ quote quasiquote unquote unquote-splicing syntax quasisyntax unsyntax
582
+ syntax-rules syntax-case syntax-parse with-syntax
583
+ match match* match-lambda match-lambda* match-define match-let match-let*
584
+ for for/list for/vector for/hash for/hasheq for/and for/or for/sum for/product
585
+ for/first for/last for/fold for/foldr for/lists for/set
586
+ for* for*/list for*/vector for*/hash for*/and for*/or for*/sum for*/product
587
+ for*/first for*/last for*/fold for*/lists
588
+ module module+ module* provide require all-defined-out all-from-out
589
+ contract-out struct-out rename-out only-in except-in prefix-in rename-in for-syntax
590
+ parameterize with-handlers with-handlers* local delay force
591
+ class class* new send super-new field init init-field inherit this
592
+ -> ->* ->i
593
+ `);
594
+ const racketProcedures = words(`
595
+ * + - / < <= = > >= abs add1 sub1 quotient remainder modulo quotient/remainder
596
+ max min gcd lcm expt exp log sqrt sqr integer-sqrt exact-round exact-floor
597
+ exact-ceiling exact-truncate round floor ceiling truncate exact->inexact
598
+ inexact->exact exact inexact number->string string->number numerator denominator
599
+ zero? positive? negative? even? odd? exact? inexact? integer? rational? real?
600
+ number? natural? exact-integer? exact-nonnegative-integer? exact-positive-integer?
601
+ nan? infinite? pi sin cos tan atan random
602
+ bitwise-and bitwise-ior bitwise-xor bitwise-not arithmetic-shift
603
+
604
+ cons car cdr caar cadr cdar cddr caddr cdddr list list* cons? pair? null? list?
605
+ empty empty? first second third fourth fifth last rest last-pair length
606
+ list-ref list-tail append append* reverse map for-each andmap ormap foldl foldr
607
+ filter filter-not remove remq remv remove* remove-duplicates member memq memv
608
+ assoc assq assv sort take drop take-right drop-right takef dropf split-at
609
+ splitf-at partition count range inclusive-range make-list build-list flatten
610
+ append-map filter-map index-of indexes-of list-set list-update argmin argmax
611
+ group-by cartesian-product combinations permutations in-combinations shuffle
612
+ apply values call-with-values
613
+
614
+ string string? string-length string-ref string-append string-append*
615
+ substring string-copy string->list list->string string->symbol symbol->string
616
+ string-upcase string-downcase string-titlecase string-split string-join
617
+ string-trim string-replace string-prefix? string-suffix? string-contains?
618
+ string=? string<? string>? string<=? string>=? string-ci=? make-string
619
+ build-string non-empty-string? string-normalize-spaces
620
+ char? char->integer integer->char char-upcase char-downcase char-alphabetic?
621
+ char-numeric? char-whitespace? char-upper-case? char-lower-case? char=? char<?
622
+ char>? char-ci=? symbol? keyword? boolean? procedure? void void? equal? eqv? eq?
623
+ not
624
+
625
+ vector vector? make-vector build-vector vector-ref vector-set! vector-length
626
+ vector->list list->vector vector-map vector-for-each vector-fill! vector-copy
627
+ vector-append vector-count vector-member vector-sort vector-argmin vector-argmax
628
+
629
+ hash hasheq make-hash make-hasheq make-immutable-hash hash? hash-ref hash-ref!
630
+ hash-set hash-set! hash-update hash-update! hash-remove hash-remove!
631
+ hash-has-key? hash-keys hash-values hash->list hash-count hash-empty? hash-map
632
+ hash-for-each hash-clear!
633
+ set seteq list->set set->list set-member? set-add set-remove set-union
634
+ set-intersect set-subtract set-count set-empty? subset?
635
+
636
+ in-range in-inclusive-range in-naturals in-list in-vector in-string in-hash
637
+ in-hash-keys in-hash-values in-set in-indexed in-value in-cycle in-parallel
638
+ sequence->list stream-first stream-rest
639
+
640
+ display displayln write writeln print printf fprintf eprintf format newline
641
+ ~a ~s ~v ~r with-output-to-string open-output-string get-output-string
642
+ read-line current-output-port
643
+
644
+ error raise raise-argument-error raise-user-error exn:fail? exn-message
645
+ identity const curry curryr compose compose1 negate conjoin disjoin thunk
646
+
647
+ regexp pregexp regexp-match regexp-match* regexp-match? regexp-replace
648
+ regexp-replace* regexp-split regexp-quote
649
+
650
+ any/c none/c or/c and/c not/c listof list/c vectorof hash/c cons/c one-of/c
651
+ integer-in between/c string-len/c
652
+
653
+ check-equal? check-true check-false check-exn check-not-equal? test-case
654
+ test-suite run-tests
655
+ `);
656
+
657
+ // Racket support. It uses the same grammar as Scheme, with the `racket`
658
+ // dialect turned on for Racket's special forms.
659
+ const racketLanguage = language.LRLanguage.define({
660
+ name: "racket",
661
+ parser: configuredParser.configure({ dialect: "racket" }),
662
+ languageData,
663
+ });
664
+ const racketSnippets = [
665
+ ["define", "procedure", "define (${name} ${params})\n\t${}"],
666
+ ["define", "variable", "define ${name} ${value}"],
667
+ ["define/contract", "procedure with a contract", "define/contract (${name} ${params})\n\t(-> ${any/c} ${any/c})\n\t${}"],
668
+ ["lambda", "anonymous procedure", "lambda (${params})\n\t${}"],
669
+ ["let", "local bindings", "let ([${name} ${value}])\n\t${}"],
670
+ ["let", "named let loop", "let ${loop} ([${name} ${init}])\n\t${}"],
671
+ ["let*", "sequential bindings", "let* ([${name} ${value}])\n\t${}"],
672
+ ["if", "conditional", "if ${test}\n\t${then}\n\t${else}"],
673
+ ["cond", "conditional", "cond\n\t[${test} ${result}]\n\t[else ${default}]"],
674
+ ["case", "conditional", "case ${key}\n\t[(${datum}) ${result}]\n\t[else ${default}]"],
675
+ ["when", "conditional", "when ${test}\n\t${}"],
676
+ ["unless", "conditional", "unless ${test}\n\t${}"],
677
+ ["match", "pattern match", "match ${value}\n\t[${pattern} ${result}]\n\t[_ ${default}]"],
678
+ ["struct", "structure type", "struct ${name} (${field})\n\t#:transparent"],
679
+ ["for", "loop", "for ([${x} ${sequence}])\n\t${}"],
680
+ ["for/list", "loop that builds a list", "for/list ([${x} ${sequence}])\n\t${}"],
681
+ ["for/fold", "loop with an accumulator", "for/fold ([${acc} ${init}])\n\t\t ([${x} ${sequence}])\n\t${}"],
682
+ ["provide", "export names", "provide ${name}"],
683
+ ["require", "import a library", "require ${racket/list}"],
684
+ ["module+", "test submodule", "module+ test\n\t(require rackunit)\n\t${}"],
685
+ ];
686
+ /// Completes `racket/base` syntax and procedures, the common ones from
687
+ /// `#lang racket`, and snippets for Racket's common forms.
688
+ const racketCompletionSource = builtinSource(racketSyntax, racketProcedures, racketSnippets);
689
+ /// Racket language support, with completion for Racket's syntax and
690
+ /// procedures, snippets, and the names defined in the file.
691
+ function racket() {
692
+ return new language.LanguageSupport(racketLanguage, [
693
+ racketLanguage.data.of({ autocomplete: racketCompletionSource }),
694
+ racketLanguage.data.of({ autocomplete: localCompletionSource }),
695
+ ]);
696
+ }
697
+
698
+ const schemeLanguage = language.LRLanguage.define({
699
+ name: "scheme",
700
+ parser: configuredParser,
701
+ languageData,
702
+ });
703
+ /// Scheme language support, with completion for R7RS syntax and procedures,
704
+ /// snippets, and the names defined in the file.
705
+ function scheme() {
706
+ return new language.LanguageSupport(schemeLanguage, [
707
+ schemeLanguage.data.of({ autocomplete: builtinCompletionSource }),
708
+ schemeLanguage.data.of({ autocomplete: localCompletionSource }),
709
+ ]);
710
+ }
711
+
712
+ exports.builtinCompletionSource = builtinCompletionSource;
713
+ exports.localCompletionSource = localCompletionSource;
714
+ exports.r7rsProcedures = r7rsProcedures;
715
+ exports.r7rsSyntax = r7rsSyntax;
716
+ exports.racket = racket;
717
+ exports.racketCompletionSource = racketCompletionSource;
718
+ exports.racketLanguage = racketLanguage;
719
+ exports.racketProcedures = racketProcedures;
720
+ exports.racketSyntax = racketSyntax;
721
+ exports.scheme = scheme;
722
+ exports.schemeLanguage = schemeLanguage;