@exercism/codemirror-lang-futhark 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 +127 -2
- package/dist/index.cjs +615 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +605 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 Futhark.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets, the prelude's functions and the primitive types. It
|
|
7
|
+
/// offers nothing inside strings and comments, or after a dot.
|
|
8
|
+
declare const futharkCompletion: CompletionSource;
|
|
9
|
+
/// The members of a numeric module after its name and a dot: `i32.` offers
|
|
10
|
+
/// `sum` and `max`, and `f64.` offers `sqrt` too.
|
|
11
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
12
|
+
/// The field names written in the file, after a record and a dot, as in
|
|
13
|
+
/// `queen.` or `(.` in a projection.
|
|
14
|
+
declare const fieldCompletionSource: CompletionSource;
|
|
15
|
+
/// The constructors written in the file's sum types, after a `#`.
|
|
16
|
+
declare const constructorCompletionSource: CompletionSource;
|
|
17
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
18
|
+
/// the definitions above it, the parameters of the function it is in, and the
|
|
19
|
+
/// names bound by `let`, `loop`, `case` and lambdas around it.
|
|
20
|
+
declare const localCompletionSource: CompletionSource;
|
|
21
|
+
declare const futharkLanguage: LRLanguage;
|
|
22
|
+
declare function futhark(): LanguageSupport;
|
|
23
|
+
export { futharkLanguage, futhark, parser, snippets, futharkCompletion, moduleCompletionSource, fieldCompletionSource, constructorCompletionSource, localCompletionSource };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 Futhark.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets, the prelude's functions and the primitive types. It
|
|
7
|
+
/// offers nothing inside strings and comments, or after a dot.
|
|
8
|
+
declare const futharkCompletion: CompletionSource;
|
|
9
|
+
/// The members of a numeric module after its name and a dot: `i32.` offers
|
|
10
|
+
/// `sum` and `max`, and `f64.` offers `sqrt` too.
|
|
11
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
12
|
+
/// The field names written in the file, after a record and a dot, as in
|
|
13
|
+
/// `queen.` or `(.` in a projection.
|
|
14
|
+
declare const fieldCompletionSource: CompletionSource;
|
|
15
|
+
/// The constructors written in the file's sum types, after a `#`.
|
|
16
|
+
declare const constructorCompletionSource: CompletionSource;
|
|
17
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
18
|
+
/// the definitions above it, the parameters of the function it is in, and the
|
|
19
|
+
/// names bound by `let`, `loop`, `case` and lambdas around it.
|
|
20
|
+
declare const localCompletionSource: CompletionSource;
|
|
21
|
+
declare const futharkLanguage: LRLanguage;
|
|
22
|
+
declare function futhark(): LanguageSupport;
|
|
23
|
+
export { futharkLanguage, futhark, parser, snippets, futharkCompletion, moduleCompletionSource, fieldCompletionSource, constructorCompletionSource, localCompletionSource };
|