@exercism/codemirror-lang-pyret 0.0.0-stage → 1.0.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.
@@ -0,0 +1,22 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ import { Completion, CompletionSource } from "@codemirror/autocomplete";
4
+ /// Snippets for the constructs people write most often in Pyret.
5
+ declare const snippets: readonly Completion[];
6
+ /// Keywords, snippets, the names `use context` brings in (such as
7
+ /// `string-length`, `num-modulo` and `map`) and the built-in types. It offers
8
+ /// nothing inside strings and comments, or after a dot.
9
+ declare const pyretCompletion: CompletionSource;
10
+ /// The members after a dot. After a module, as in `lists.` or `L.` with
11
+ /// `import lists as L`, it offers the module's functions. After any other
12
+ /// value it offers the methods of lists, sets, options and string
13
+ /// dictionaries, and the fields and methods of the data types in the file.
14
+ declare const memberCompletionSource: CompletionSource;
15
+ /// The names declared in the file that are in scope at the cursor:
16
+ /// functions, values, parameters, the names bound by `for`, `cases` and
17
+ /// `let`, data types with their variants and `is-` predicates, and imported
18
+ /// modules.
19
+ declare const localCompletionSource: CompletionSource;
20
+ declare const pyretLanguage: LRLanguage;
21
+ declare function pyret(): LanguageSupport;
22
+ export { pyretLanguage, pyret, parser, snippets, pyretCompletion, memberCompletionSource, localCompletionSource };
@@ -0,0 +1,22 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ import { Completion, CompletionSource } from "@codemirror/autocomplete";
4
+ /// Snippets for the constructs people write most often in Pyret.
5
+ declare const snippets: readonly Completion[];
6
+ /// Keywords, snippets, the names `use context` brings in (such as
7
+ /// `string-length`, `num-modulo` and `map`) and the built-in types. It offers
8
+ /// nothing inside strings and comments, or after a dot.
9
+ declare const pyretCompletion: CompletionSource;
10
+ /// The members after a dot. After a module, as in `lists.` or `L.` with
11
+ /// `import lists as L`, it offers the module's functions. After any other
12
+ /// value it offers the methods of lists, sets, options and string
13
+ /// dictionaries, and the fields and methods of the data types in the file.
14
+ declare const memberCompletionSource: CompletionSource;
15
+ /// The names declared in the file that are in scope at the cursor:
16
+ /// functions, values, parameters, the names bound by `for`, `cases` and
17
+ /// `let`, data types with their variants and `is-` predicates, and imported
18
+ /// modules.
19
+ declare const localCompletionSource: CompletionSource;
20
+ declare const pyretLanguage: LRLanguage;
21
+ declare function pyret(): LanguageSupport;
22
+ export { pyretLanguage, pyret, parser, snippets, pyretCompletion, memberCompletionSource, localCompletionSource };