@exercism/codemirror-lang-8th 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.
@@ -0,0 +1,33 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ import { CompletionSource } from "@codemirror/autocomplete";
4
+ /// A snippet: its label, its detail and its body.
5
+ type SnippetSpec = [
6
+ string,
7
+ string,
8
+ string
9
+ ];
10
+ declare const snippets: SnippetSpec[];
11
+ /// Completes 8th's words. After a namespace such as `a:`, it offers the words
12
+ /// in that namespace. Elsewhere it offers the words outside any namespace, the
13
+ /// namespaces and the snippets.
14
+ declare const builtinCompletionSource: CompletionSource;
15
+ /// Completes the words, variables and constants defined earlier in the file.
16
+ declare const localCompletionSource: CompletionSource;
17
+ declare const eighthLanguage: LRLanguage;
18
+ // Generated by scripts/extract-words.py from https://8th-dev.com/words.html.
19
+ // Each word is [name, stack effect] or [name, stack effect, library it needs].
20
+ type WordSpec = [
21
+ string,
22
+ string
23
+ ] | [
24
+ string,
25
+ string,
26
+ string
27
+ ];
28
+ declare const namespaces: Record<string, {
29
+ title: string;
30
+ words: WordSpec[];
31
+ }>;
32
+ declare function eighth(): LanguageSupport;
33
+ export { eighthLanguage, parser, builtinCompletionSource, localCompletionSource, snippets, namespaces, eighth };
@@ -0,0 +1,33 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ import { CompletionSource } from "@codemirror/autocomplete";
4
+ /// A snippet: its label, its detail and its body.
5
+ type SnippetSpec = [
6
+ string,
7
+ string,
8
+ string
9
+ ];
10
+ declare const snippets: SnippetSpec[];
11
+ /// Completes 8th's words. After a namespace such as `a:`, it offers the words
12
+ /// in that namespace. Elsewhere it offers the words outside any namespace, the
13
+ /// namespaces and the snippets.
14
+ declare const builtinCompletionSource: CompletionSource;
15
+ /// Completes the words, variables and constants defined earlier in the file.
16
+ declare const localCompletionSource: CompletionSource;
17
+ declare const eighthLanguage: LRLanguage;
18
+ // Generated by scripts/extract-words.py from https://8th-dev.com/words.html.
19
+ // Each word is [name, stack effect] or [name, stack effect, library it needs].
20
+ type WordSpec = [
21
+ string,
22
+ string
23
+ ] | [
24
+ string,
25
+ string,
26
+ string
27
+ ];
28
+ declare const namespaces: Record<string, {
29
+ title: string;
30
+ words: WordSpec[];
31
+ }>;
32
+ declare function eighth(): LanguageSupport;
33
+ export { eighthLanguage, parser, builtinCompletionSource, localCompletionSource, snippets, namespaces, eighth };