@exercism/codemirror-lang-sml 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.
- package/LICENSE +21 -0
- package/README.md +81 -2
- package/dist/index.cjs +609 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +601 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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 Standard ML.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets, the top-level Basis Library names and the names of the
|
|
7
|
+
/// Basis structures. It offers nothing inside strings and comments, or after a
|
|
8
|
+
/// dot.
|
|
9
|
+
declare const smlCompletion: CompletionSource;
|
|
10
|
+
/// The names declared in the file that are in scope at the cursor: functions,
|
|
11
|
+
/// values, parameters, the variables bound by patterns, datatypes and their
|
|
12
|
+
/// constructors, exceptions, and structures.
|
|
13
|
+
declare const localCompletionSource: CompletionSource;
|
|
14
|
+
/// The members of a structure after its name and a dot: `List.` offers `map`
|
|
15
|
+
/// and `foldl`. A structure declared in the file offers what it declares.
|
|
16
|
+
declare const structureCompletionSource: CompletionSource;
|
|
17
|
+
declare const smlLanguage: LRLanguage;
|
|
18
|
+
declare function sml(): LanguageSupport;
|
|
19
|
+
export { smlLanguage, sml, parser, snippets, smlCompletion, structureCompletionSource, localCompletionSource };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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 Standard ML.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets, the top-level Basis Library names and the names of the
|
|
7
|
+
/// Basis structures. It offers nothing inside strings and comments, or after a
|
|
8
|
+
/// dot.
|
|
9
|
+
declare const smlCompletion: CompletionSource;
|
|
10
|
+
/// The names declared in the file that are in scope at the cursor: functions,
|
|
11
|
+
/// values, parameters, the variables bound by patterns, datatypes and their
|
|
12
|
+
/// constructors, exceptions, and structures.
|
|
13
|
+
declare const localCompletionSource: CompletionSource;
|
|
14
|
+
/// The members of a structure after its name and a dot: `List.` offers `map`
|
|
15
|
+
/// and `foldl`. A structure declared in the file offers what it declares.
|
|
16
|
+
declare const structureCompletionSource: CompletionSource;
|
|
17
|
+
declare const smlLanguage: LRLanguage;
|
|
18
|
+
declare function sml(): LanguageSupport;
|
|
19
|
+
export { smlLanguage, sml, parser, snippets, smlCompletion, structureCompletionSource, localCompletionSource };
|