@tinta-lang/syntax 0.0.0-stage → 0.1.0-dev.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/THIRD_PARTY_NOTICES.txt +13651 -0
- package/dist/directive.d.ts +40 -0
- package/dist/editing.d.ts +46 -0
- package/dist/enrichment.d.ts +5 -0
- package/dist/expression.d.ts +26 -0
- package/dist/image-destinations.d.ts +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +10118 -0
- package/dist/parser.d.ts +40 -0
- package/dist/registry.d.ts +144 -0
- package/dist/source.d.ts +28 -0
- package/package.json +280 -3
- package/parser-provenance.json +1419 -0
- package/patches/README.md +5 -0
- package/patches/micromark.patch +84 -0
- package/vendor/@noble/hashes/LICENSE +21 -0
- package/vendor/@noble/hashes/_md.js +209 -0
- package/vendor/@noble/hashes/_u64.js +77 -0
- package/vendor/@noble/hashes/package.json +91 -0
- package/vendor/@noble/hashes/sha2.js +446 -0
- package/vendor/@noble/hashes/utils.js +687 -0
- package/vendor/character-entities/index.js +2132 -0
- package/vendor/character-entities/license +22 -0
- package/vendor/character-entities/package.json +78 -0
- package/vendor/decode-named-character-reference/index.js +19 -0
- package/vendor/decode-named-character-reference/license +22 -0
- package/vendor/decode-named-character-reference/package.json +90 -0
- package/vendor/devlop/lib/default.js +9 -0
- package/vendor/devlop/license +22 -0
- package/vendor/devlop/package.json +80 -0
- package/vendor/longest-streak/index.js +36 -0
- package/vendor/longest-streak/license +22 -0
- package/vendor/longest-streak/package.json +73 -0
- package/vendor/markdown-table/index.js +393 -0
- package/vendor/markdown-table/license +22 -0
- package/vendor/markdown-table/package.json +77 -0
- package/vendor/mdast-util-from-markdown/index.js +2 -0
- package/vendor/mdast-util-from-markdown/lib/index.js +1270 -0
- package/vendor/mdast-util-from-markdown/license +22 -0
- package/vendor/mdast-util-from-markdown/package.json +98 -0
- package/vendor/mdast-util-gfm-strikethrough/index.js +5 -0
- package/vendor/mdast-util-gfm-strikethrough/lib/index.js +133 -0
- package/vendor/mdast-util-gfm-strikethrough/license +22 -0
- package/vendor/mdast-util-gfm-strikethrough/package.json +84 -0
- package/vendor/mdast-util-gfm-table/index.js +2 -0
- package/vendor/mdast-util-gfm-table/lib/index.js +300 -0
- package/vendor/mdast-util-gfm-table/license +22 -0
- package/vendor/mdast-util-gfm-table/package.json +101 -0
- package/vendor/mdast-util-gfm-task-list-item/index.js +4 -0
- package/vendor/mdast-util-gfm-task-list-item/lib/index.js +141 -0
- package/vendor/mdast-util-gfm-task-list-item/license +22 -0
- package/vendor/mdast-util-gfm-task-list-item/package.json +90 -0
- package/vendor/mdast-util-phrasing/index.js +1 -0
- package/vendor/mdast-util-phrasing/lib/index.js +45 -0
- package/vendor/mdast-util-phrasing/license +23 -0
- package/vendor/mdast-util-phrasing/package.json +78 -0
- package/vendor/mdast-util-to-markdown/index.js +3 -0
- package/vendor/mdast-util-to-markdown/lib/configure.js +98 -0
- package/vendor/mdast-util-to-markdown/lib/handle/blockquote.js +40 -0
- package/vendor/mdast-util-to-markdown/lib/handle/break.js +41 -0
- package/vendor/mdast-util-to-markdown/lib/handle/code.js +86 -0
- package/vendor/mdast-util-to-markdown/lib/handle/definition.js +83 -0
- package/vendor/mdast-util-to-markdown/lib/handle/emphasis.js +67 -0
- package/vendor/mdast-util-to-markdown/lib/handle/heading.js +84 -0
- package/vendor/mdast-util-to-markdown/lib/handle/html.js +27 -0
- package/vendor/mdast-util-to-markdown/lib/handle/image-reference.js +78 -0
- package/vendor/mdast-util-to-markdown/lib/handle/image.js +92 -0
- package/vendor/mdast-util-to-markdown/lib/handle/index.js +45 -0
- package/vendor/mdast-util-to-markdown/lib/handle/inline-code.js +86 -0
- package/vendor/mdast-util-to-markdown/lib/handle/link-reference.js +78 -0
- package/vendor/mdast-util-to-markdown/lib/handle/link.js +129 -0
- package/vendor/mdast-util-to-markdown/lib/handle/list-item.js +73 -0
- package/vendor/mdast-util-to-markdown/lib/handle/list.js +107 -0
- package/vendor/mdast-util-to-markdown/lib/handle/paragraph.js +27 -0
- package/vendor/mdast-util-to-markdown/lib/handle/root.js +34 -0
- package/vendor/mdast-util-to-markdown/lib/handle/strong.js +67 -0
- package/vendor/mdast-util-to-markdown/lib/handle/text.js +30 -0
- package/vendor/mdast-util-to-markdown/lib/handle/thematic-break.js +27 -0
- package/vendor/mdast-util-to-markdown/lib/index.js +213 -0
- package/vendor/mdast-util-to-markdown/lib/join.js +56 -0
- package/vendor/mdast-util-to-markdown/lib/unsafe.js +160 -0
- package/vendor/mdast-util-to-markdown/lib/util/association.js +33 -0
- package/vendor/mdast-util-to-markdown/lib/util/character.js +32 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-bullet-other.js +42 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-bullet.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-emphasis.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-fence.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-list-item-indent.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-quote.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-rule-repetition.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-rule.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/check-strong.js +25 -0
- package/vendor/mdast-util-to-markdown/lib/util/compile-pattern.js +30 -0
- package/vendor/mdast-util-to-markdown/lib/util/container-flow.js +93 -0
- package/vendor/mdast-util-to-markdown/lib/util/container-phrasing.js +704 -0
- package/vendor/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
- package/vendor/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
- package/vendor/mdast-util-to-markdown/lib/util/format-code-as-indented.js +27 -0
- package/vendor/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +39 -0
- package/vendor/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +39 -0
- package/vendor/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
- package/vendor/mdast-util-to-markdown/lib/util/indent-lines.js +40 -0
- package/vendor/mdast-util-to-markdown/lib/util/pattern-in-scope.js +52 -0
- package/vendor/mdast-util-to-markdown/lib/util/safe.js +263 -0
- package/vendor/mdast-util-to-markdown/lib/util/track.js +55 -0
- package/vendor/mdast-util-to-markdown/license +22 -0
- package/vendor/mdast-util-to-markdown/package.json +88 -0
- package/vendor/mdast-util-to-string/index.js +5 -0
- package/vendor/mdast-util-to-string/lib/index.js +108 -0
- package/vendor/mdast-util-to-string/license +22 -0
- package/vendor/mdast-util-to-string/package.json +78 -0
- package/vendor/micromark/index.js +60 -0
- package/vendor/micromark/lib/compile.js +1068 -0
- package/vendor/micromark/lib/constructs.js +85 -0
- package/vendor/micromark/lib/create-tokenizer.js +615 -0
- package/vendor/micromark/lib/initialize/content.js +79 -0
- package/vendor/micromark/lib/initialize/document.js +370 -0
- package/vendor/micromark/lib/initialize/flow.js +58 -0
- package/vendor/micromark/lib/initialize/text.js +216 -0
- package/vendor/micromark/lib/parse.js +56 -0
- package/vendor/micromark/lib/postprocess.js +18 -0
- package/vendor/micromark/lib/preprocess.js +112 -0
- package/vendor/micromark/license +22 -0
- package/vendor/micromark/package.json +87 -0
- package/vendor/micromark-core-commonmark/index.js +22 -0
- package/vendor/micromark-core-commonmark/lib/attention.js +231 -0
- package/vendor/micromark-core-commonmark/lib/autolink.js +233 -0
- package/vendor/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/vendor/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/vendor/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/vendor/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/vendor/micromark-core-commonmark/lib/code-fenced.js +422 -0
- package/vendor/micromark-core-commonmark/lib/code-indented.js +159 -0
- package/vendor/micromark-core-commonmark/lib/code-text.js +225 -0
- package/vendor/micromark-core-commonmark/lib/content.js +163 -0
- package/vendor/micromark-core-commonmark/lib/definition.js +254 -0
- package/vendor/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/vendor/micromark-core-commonmark/lib/heading-atx.js +191 -0
- package/vendor/micromark-core-commonmark/lib/html-flow.js +827 -0
- package/vendor/micromark-core-commonmark/lib/html-text.js +678 -0
- package/vendor/micromark-core-commonmark/lib/label-end.js +561 -0
- package/vendor/micromark-core-commonmark/lib/label-start-image.js +110 -0
- package/vendor/micromark-core-commonmark/lib/label-start-link.js +63 -0
- package/vendor/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/vendor/micromark-core-commonmark/lib/list.js +213 -0
- package/vendor/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
- package/vendor/micromark-core-commonmark/lib/setext-underline.js +187 -0
- package/vendor/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/vendor/micromark-core-commonmark/license +22 -0
- package/vendor/micromark-core-commonmark/package.json +62 -0
- package/vendor/micromark-extension-gfm-strikethrough/index.js +3 -0
- package/vendor/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
- package/vendor/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
- package/vendor/micromark-extension-gfm-strikethrough/license +22 -0
- package/vendor/micromark-extension-gfm-strikethrough/package.json +129 -0
- package/vendor/micromark-extension-gfm-table/index.js +2 -0
- package/vendor/micromark-extension-gfm-table/lib/edit-map.js +222 -0
- package/vendor/micromark-extension-gfm-table/lib/html.js +135 -0
- package/vendor/micromark-extension-gfm-table/lib/infer.js +52 -0
- package/vendor/micromark-extension-gfm-table/lib/syntax.js +846 -0
- package/vendor/micromark-extension-gfm-table/license +22 -0
- package/vendor/micromark-extension-gfm-table/package.json +86 -0
- package/vendor/micromark-extension-gfm-task-list-item/index.js +2 -0
- package/vendor/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
- package/vendor/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
- package/vendor/micromark-extension-gfm-task-list-item/license +22 -0
- package/vendor/micromark-extension-gfm-task-list-item/package.json +131 -0
- package/vendor/micromark-factory-destination/index.js +206 -0
- package/vendor/micromark-factory-destination/license +22 -0
- package/vendor/micromark-factory-destination/package.json +57 -0
- package/vendor/micromark-factory-label/index.js +148 -0
- package/vendor/micromark-factory-label/license +22 -0
- package/vendor/micromark-factory-label/package.json +60 -0
- package/vendor/micromark-factory-space/index.js +116 -0
- package/vendor/micromark-factory-space/license +22 -0
- package/vendor/micromark-factory-space/package.json +46 -0
- package/vendor/micromark-factory-title/index.js +158 -0
- package/vendor/micromark-factory-title/license +22 -0
- package/vendor/micromark-factory-title/package.json +58 -0
- package/vendor/micromark-factory-whitespace/index.js +44 -0
- package/vendor/micromark-factory-whitespace/license +22 -0
- package/vendor/micromark-factory-whitespace/package.json +57 -0
- package/vendor/micromark-util-character/index.js +246 -0
- package/vendor/micromark-util-character/license +22 -0
- package/vendor/micromark-util-character/package.json +57 -0
- package/vendor/micromark-util-chunked/index.js +81 -0
- package/vendor/micromark-util-chunked/license +22 -0
- package/vendor/micromark-util-chunked/package.json +57 -0
- package/vendor/micromark-util-classify-character/index.js +27 -0
- package/vendor/micromark-util-classify-character/license +22 -0
- package/vendor/micromark-util-classify-character/package.json +59 -0
- package/vendor/micromark-util-combine-extensions/index.js +143 -0
- package/vendor/micromark-util-combine-extensions/license +22 -0
- package/vendor/micromark-util-combine-extensions/package.json +52 -0
- package/vendor/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/vendor/micromark-util-decode-numeric-character-reference/license +22 -0
- package/vendor/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/vendor/micromark-util-decode-string/index.js +45 -0
- package/vendor/micromark-util-decode-string/license +22 -0
- package/vendor/micromark-util-decode-string/package.json +63 -0
- package/vendor/micromark-util-edit-map/index.js +225 -0
- package/vendor/micromark-util-edit-map/license +22 -0
- package/vendor/micromark-util-edit-map/package.json +48 -0
- package/vendor/micromark-util-encode/index.js +33 -0
- package/vendor/micromark-util-encode/license +22 -0
- package/vendor/micromark-util-encode/package.json +47 -0
- package/vendor/micromark-util-html-tag-name/index.js +93 -0
- package/vendor/micromark-util-html-tag-name/license +22 -0
- package/vendor/micromark-util-html-tag-name/package.json +47 -0
- package/vendor/micromark-util-normalize-identifier/index.js +33 -0
- package/vendor/micromark-util-normalize-identifier/license +22 -0
- package/vendor/micromark-util-normalize-identifier/package.json +58 -0
- package/vendor/micromark-util-resolve-all/index.js +32 -0
- package/vendor/micromark-util-resolve-all/license +22 -0
- package/vendor/micromark-util-resolve-all/package.json +48 -0
- package/vendor/micromark-util-sanitize-uri/index.js +107 -0
- package/vendor/micromark-util-sanitize-uri/license +22 -0
- package/vendor/micromark-util-sanitize-uri/package.json +59 -0
- package/vendor/micromark-util-subtokenize/index.js +228 -0
- package/vendor/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/vendor/micromark-util-subtokenize/license +22 -0
- package/vendor/micromark-util-subtokenize/package.json +60 -0
- package/vendor/unist-util-is/index.js +7 -0
- package/vendor/unist-util-is/lib/index.js +296 -0
- package/vendor/unist-util-is/license +22 -0
- package/vendor/unist-util-is/package.json +103 -0
- package/vendor/unist-util-stringify-position/index.js +1 -0
- package/vendor/unist-util-stringify-position/lib/index.js +84 -0
- package/vendor/unist-util-stringify-position/license +22 -0
- package/vendor/unist-util-stringify-position/package.json +80 -0
- package/vendor/unist-util-visit/index.js +2 -0
- package/vendor/unist-util-visit/lib/index.js +312 -0
- package/vendor/unist-util-visit/license +22 -0
- package/vendor/unist-util-visit/package.json +108 -0
- package/vendor/unist-util-visit-parents/index.js +2 -0
- package/vendor/unist-util-visit-parents/lib/color.js +7 -0
- package/vendor/unist-util-visit-parents/lib/index.js +399 -0
- package/vendor/unist-util-visit-parents/license +22 -0
- package/vendor/unist-util-visit-parents/package.json +106 -0
- package/vendor/zwitch/index.js +118 -0
- package/vendor/zwitch/license +22 -0
- package/vendor/zwitch/package.json +72 -0
- package/README.md +0 -3
package/dist/parser.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { CompilerOptions, Diagnostic, Expr, Result, SourceInput, Span } from "@tinta-lang/types";
|
|
2
|
+
import type { CompileContext } from "mdast-util-from-markdown";
|
|
3
|
+
import { type DirectiveSyntax } from "./directive.js";
|
|
4
|
+
import { type Lexeme } from "./expression.js";
|
|
5
|
+
type MdNode = CompileContext["stack"][number];
|
|
6
|
+
export type SyntaxKind = MdNode["type"] | "directive" | "interpolation" | "error";
|
|
7
|
+
export interface SyntaxNode {
|
|
8
|
+
readonly kind: SyntaxKind;
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly span: Span;
|
|
11
|
+
readonly children: readonly SyntaxNode[];
|
|
12
|
+
readonly value?: string;
|
|
13
|
+
readonly expression?: Expr;
|
|
14
|
+
readonly directive?: DirectiveSyntax;
|
|
15
|
+
readonly attributes?: Readonly<Record<string, string | number | boolean | null | readonly (string | null)[]>>;
|
|
16
|
+
}
|
|
17
|
+
export interface EditorToken {
|
|
18
|
+
readonly kind: SyntaxKind | Expr["kind"];
|
|
19
|
+
readonly span: Span;
|
|
20
|
+
}
|
|
21
|
+
export interface EditingRegion {
|
|
22
|
+
readonly kind: "directive" | "interpolation";
|
|
23
|
+
readonly span: Span;
|
|
24
|
+
readonly lexemes: readonly Lexeme[];
|
|
25
|
+
}
|
|
26
|
+
/** Lossless syntax, deliberately distinct from a validated/typed Program. */
|
|
27
|
+
export interface ParsedSource {
|
|
28
|
+
readonly lexemes: readonly Lexeme[];
|
|
29
|
+
readonly regions: readonly EditingRegion[];
|
|
30
|
+
readonly compileOperations: number;
|
|
31
|
+
readonly source: string;
|
|
32
|
+
readonly bytes: Uint8Array;
|
|
33
|
+
readonly tree: SyntaxNode;
|
|
34
|
+
readonly tokens: readonly EditorToken[];
|
|
35
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
36
|
+
}
|
|
37
|
+
export declare function parse(input: SourceInput, options?: CompilerOptions): Result<ParsedSource>;
|
|
38
|
+
/** Recovery retains erroneous nodes for editing; callers must inspect diagnostics. */
|
|
39
|
+
export declare function parseRecovering(input: SourceInput, options?: CompilerOptions): Result<ParsedSource>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
export declare const registry: {
|
|
2
|
+
readonly contractRevision: "1.0-draft.3";
|
|
3
|
+
readonly sourceVersion: "1.0";
|
|
4
|
+
readonly workingName: "Tinta";
|
|
5
|
+
readonly sourceExtension: ".tinta";
|
|
6
|
+
readonly bundleExtension: ".tinta.zip";
|
|
7
|
+
readonly profiles: readonly ["markdown", "tinta"];
|
|
8
|
+
readonly directives: readonly ["meta", "let", "calc", "slider", "toggle", "choice", "when", "details", "data", "view", "table", "chart"];
|
|
9
|
+
readonly blockDirectives: readonly ["when", "details", "data"];
|
|
10
|
+
readonly blockDelimiter: "end";
|
|
11
|
+
readonly functions: readonly ["if", "min", "max", "round", "pow", "count", "sum", "mean", "fixed", "percent", "money"];
|
|
12
|
+
readonly chartTypes: readonly ["line", "area", "bar", "scatter", "pie", "donut", "histogram"];
|
|
13
|
+
readonly reservedIdentifiers: readonly ["true", "false", "and", "or", "not", "row", "__proto__", "prototype", "constructor", "if", "min", "max", "round", "pow", "count", "sum", "mean", "fixed", "percent", "money"];
|
|
14
|
+
readonly locales: readonly ["en-US", "en-GB", "es-ES", "fr-FR", "de-DE", "ja-JP", "zh-CN", "zh-TW"];
|
|
15
|
+
readonly currencies: readonly ["USD", "EUR", "GBP", "JPY", "CHF", "CAD", "AUD", "CNY"];
|
|
16
|
+
readonly defaults: {
|
|
17
|
+
readonly locale: "en-US";
|
|
18
|
+
readonly currency: "USD";
|
|
19
|
+
readonly version: "1.0";
|
|
20
|
+
readonly sliderMin: 0;
|
|
21
|
+
readonly sliderMax: 100;
|
|
22
|
+
readonly sliderStep: 1;
|
|
23
|
+
readonly histogramBins: 8;
|
|
24
|
+
};
|
|
25
|
+
readonly limits: {
|
|
26
|
+
readonly sourceBytes: 2097152;
|
|
27
|
+
readonly sourceLineUnits: 65536;
|
|
28
|
+
readonly expressionUnits: 8192;
|
|
29
|
+
readonly expressionDepth: 32;
|
|
30
|
+
readonly astNodes: 100000;
|
|
31
|
+
readonly tintaBlockDepth: 16;
|
|
32
|
+
readonly markdownDepth: 64;
|
|
33
|
+
readonly declarations: 512;
|
|
34
|
+
readonly controls: 128;
|
|
35
|
+
readonly identifierUnits: 64;
|
|
36
|
+
readonly textValueUnits: 65536;
|
|
37
|
+
readonly literalListItems: 1000;
|
|
38
|
+
readonly tableCount: 64;
|
|
39
|
+
readonly tableRows: 10000;
|
|
40
|
+
readonly tableColumns: 64;
|
|
41
|
+
readonly totalCells: 100000;
|
|
42
|
+
readonly chartRows: 2000;
|
|
43
|
+
readonly chartCategories: 200;
|
|
44
|
+
readonly chartSectors: 24;
|
|
45
|
+
readonly chartSeries: 6;
|
|
46
|
+
readonly chartMarks: 12000;
|
|
47
|
+
readonly documentChartMarks: 32000;
|
|
48
|
+
readonly chartCount: 32;
|
|
49
|
+
readonly histogramBinsMin: 2;
|
|
50
|
+
readonly histogramBinsMax: 30;
|
|
51
|
+
readonly histogramBinsDefault: 8;
|
|
52
|
+
readonly choiceOptions: 50;
|
|
53
|
+
readonly choiceOptionCodePoints: 120;
|
|
54
|
+
readonly labelCodePoints: 200;
|
|
55
|
+
readonly sliderTicks: 100000;
|
|
56
|
+
readonly sliderFractionalDigits: 6;
|
|
57
|
+
readonly sliderMagnitude: 1000000000;
|
|
58
|
+
readonly evaluationOperations: 2000000;
|
|
59
|
+
readonly compileOperations: 5000000;
|
|
60
|
+
readonly diagnostics: 100;
|
|
61
|
+
readonly importBytes: 5242880;
|
|
62
|
+
readonly assetCount: 100;
|
|
63
|
+
readonly assetBytes: 10485760;
|
|
64
|
+
readonly totalAssetBytes: 26214400;
|
|
65
|
+
readonly imagePixels: 20000000;
|
|
66
|
+
readonly bundleCompressedBytes: 31457280;
|
|
67
|
+
readonly bundleExpandedBytes: 31457280;
|
|
68
|
+
readonly bundleEntries: 102;
|
|
69
|
+
readonly htmlBytes: 41943040;
|
|
70
|
+
readonly workerWatchdogMs: 3000;
|
|
71
|
+
readonly editorDebounceMs: 200;
|
|
72
|
+
readonly recoveryDebounceMs: 1000;
|
|
73
|
+
readonly recoveryEntries: 10;
|
|
74
|
+
readonly recoveryTotalBytes: 31457280;
|
|
75
|
+
};
|
|
76
|
+
readonly errors: {
|
|
77
|
+
readonly E_ENCODING: "Invalid UTF-8 source or import encoding.";
|
|
78
|
+
readonly E_LIMIT: "A named resource limit was exceeded.";
|
|
79
|
+
readonly E_DIRECTIVE_UNKNOWN: "Unregistered column-1 directive.";
|
|
80
|
+
readonly E_DIRECTIVE_SYNTAX: "Malformed directive operands/options.";
|
|
81
|
+
readonly E_BLOCK_END: "Unexpected closing @end.";
|
|
82
|
+
readonly E_BLOCK_UNCLOSED: "Tinta block has no closing @end.";
|
|
83
|
+
readonly E_BLOCK_EMPTY: "Conditional/detail block contains no renderable content.";
|
|
84
|
+
readonly E_DECLARATION_SCOPE: "Root-only declaration used in a nested block.";
|
|
85
|
+
readonly E_PROPERTY_UNKNOWN: "Unsupported option key.";
|
|
86
|
+
readonly E_PROPERTY_DUPLICATE: "Option key repeated.";
|
|
87
|
+
readonly E_PROPERTY_REQUIRED: "Required option missing.";
|
|
88
|
+
readonly E_PROPERTY_DEPENDENCY: "Option depends on another missing option.";
|
|
89
|
+
readonly E_PROPERTY_VALUE: "Option has an invalid literal value.";
|
|
90
|
+
readonly E_VERSION: "Unsupported source format version.";
|
|
91
|
+
readonly E_META_POSITION: "Repeated or misplaced metadata.";
|
|
92
|
+
readonly E_META_VALUE: "Unsupported metadata setting.";
|
|
93
|
+
readonly E_EXPRESSION_SYNTAX: "Invalid/unfinished expression token sequence.";
|
|
94
|
+
readonly E_NAME_RESERVED: "Reserved or invalid identifier.";
|
|
95
|
+
readonly E_NAME_DUPLICATE: "Document name declared more than once.";
|
|
96
|
+
readonly E_NAME_UNKNOWN: "Unresolved global name.";
|
|
97
|
+
readonly E_ROW_SCOPE: "row.field used outside a supported row context.";
|
|
98
|
+
readonly E_COLUMN_UNKNOWN: "Referenced table column does not exist.";
|
|
99
|
+
readonly E_TYPE: "Types do not satisfy an operator/directive/function contract.";
|
|
100
|
+
readonly E_FUNCTION_ARITY: "Incorrect number of function arguments.";
|
|
101
|
+
readonly E_CONST_DEPENDENCY: "Constant depends on nonconstant state/data.";
|
|
102
|
+
readonly E_CYCLE: "Dependency cycle detected.";
|
|
103
|
+
readonly E_NUMBER_RANGE: "Numeric operation produced a non-finite/non-real result.";
|
|
104
|
+
readonly E_DIV_ZERO: "Division or remainder by zero.";
|
|
105
|
+
readonly E_DIGITS_RANGE: "Formatting/rounding digits are outside integer 0–10.";
|
|
106
|
+
readonly E_EMPTY_MEAN: "Mean requested for an empty table/view.";
|
|
107
|
+
readonly E_STATE_NAME: "Update names an unknown/non-control symbol.";
|
|
108
|
+
readonly E_STATE_DOMAIN: "Control update/default violates its allowed domain.";
|
|
109
|
+
readonly E_DATA_HEADER: "Invalid or duplicate typed table header.";
|
|
110
|
+
readonly E_DATA_ARITY: "Row cell count differs from the schema.";
|
|
111
|
+
readonly E_DATA_VALUE: "Cell is not a valid scalar for its declared type.";
|
|
112
|
+
readonly E_CHART_TYPE: "Unknown chart type.";
|
|
113
|
+
readonly E_CHART_SERIES: "Invalid series count/form for chart type.";
|
|
114
|
+
readonly E_CHART_DUPLICATE_X: "Chart requires unique x values.";
|
|
115
|
+
readonly E_CHART_VALUE: "Invalid chart datum, e.g. negative sector value.";
|
|
116
|
+
readonly E_CHART_DOMAIN: "Finite chart geometry cannot be constructed.";
|
|
117
|
+
readonly E_SELECTION_TARGET: "Invalid linked-control type/name.";
|
|
118
|
+
readonly E_SELECTION_DOMAIN: "Chart x cannot be represented by the linked control.";
|
|
119
|
+
readonly E_IMPORT_SCHEMA: "Unsupported import structure or conversion.";
|
|
120
|
+
readonly E_IMPORT_PRESERVATION: "Markdown enrichment changed unintended semantics.";
|
|
121
|
+
readonly E_ASSET_MISSING: "Referenced local image was not supplied.";
|
|
122
|
+
readonly E_ASSET_EXTERNAL: "Remote/nonlocal image is not permitted.";
|
|
123
|
+
readonly E_ASSET_TYPE: "Unsupported/mismatched raster image format.";
|
|
124
|
+
readonly E_ASSET_PATH: "Unsafe resource or ZIP entry path.";
|
|
125
|
+
readonly E_BUNDLE: "Malformed bundle, duplicate keys/entries, CRC or manifest mismatch.";
|
|
126
|
+
readonly E_HASH_MISMATCH: "Source/resource hash does not match its envelope.";
|
|
127
|
+
readonly E_SNAPSHOT: "State envelope does not match source/schema/controls.";
|
|
128
|
+
readonly E_EXPORT_INVALID: "Export requested for invalid/stale source or an invalid state.";
|
|
129
|
+
readonly E_OUTPUT_EXISTS: "Output already exists and replacement is not authorized.";
|
|
130
|
+
readonly E_IO: "Authorized filesystem operation failed.";
|
|
131
|
+
readonly E_WORKER_TIMEOUT: "Worker did not complete before the watchdog.";
|
|
132
|
+
readonly E_PROTOCOL: "Malformed or unauthorized host protocol message; stale valid results are ignored.";
|
|
133
|
+
readonly E_INTERNAL: "Unexpected engine fault; not a document syntax diagnosis.";
|
|
134
|
+
};
|
|
135
|
+
readonly warnings: {
|
|
136
|
+
readonly W_NUL_REPLACED: "NUL displayed as the replacement character.";
|
|
137
|
+
readonly W_HTML_INERT: "Raw author HTML displayed as text.";
|
|
138
|
+
readonly W_LINK_LOCAL_UNSUPPORTED: "Local document navigation is not implemented.";
|
|
139
|
+
readonly W_LINK_UNSAFE: "Unsafe/unsupported link disabled.";
|
|
140
|
+
readonly W_ASSET_UNAVAILABLE: "Preview image unavailable; export remains blocked.";
|
|
141
|
+
readonly W_RECOVERY_UNAVAILABLE: "Local browser recovery is unavailable.";
|
|
142
|
+
readonly W_MARKDOWN_COLLISION: "Enrichment proposes escapes for Tinta-looking literal text.";
|
|
143
|
+
};
|
|
144
|
+
};
|
package/dist/source.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CompilerOptions, Diagnostic, Position, SourceInput, Span } from "@tinta-lang/types";
|
|
2
|
+
export declare class SyntaxFailure extends Error {
|
|
3
|
+
readonly diagnostic: Diagnostic;
|
|
4
|
+
constructor(diagnostic: Diagnostic);
|
|
5
|
+
}
|
|
6
|
+
export { decodeUtf8, encodeUtf8 } from "@tinta-lang/types/utf8";
|
|
7
|
+
export declare class Source {
|
|
8
|
+
readonly input: SourceInput;
|
|
9
|
+
readonly lexemes: {
|
|
10
|
+
raw: string;
|
|
11
|
+
start: number;
|
|
12
|
+
end: number;
|
|
13
|
+
}[];
|
|
14
|
+
readonly text: string;
|
|
15
|
+
readonly bytes: Uint8Array;
|
|
16
|
+
readonly lines: number[];
|
|
17
|
+
readonly limits: Readonly<Record<string, number>>;
|
|
18
|
+
readonly diagnostics: Diagnostic[];
|
|
19
|
+
private readonly counts;
|
|
20
|
+
constructor(input: SourceInput, options?: CompilerOptions);
|
|
21
|
+
position(offset: number): Position;
|
|
22
|
+
span(start: number, end: number): Span;
|
|
23
|
+
fail(code: string, start: number, end: number, message: string, details?: Diagnostic["details"], phase?: Diagnostic["phase"]): never;
|
|
24
|
+
warn(code: string, start: number, end: number, message: string): void;
|
|
25
|
+
limit(name: string, observed: number, at: number, maximum?: number): void;
|
|
26
|
+
get compileOperations(): number;
|
|
27
|
+
charge(name: string, at: number, amount?: number): void;
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,283 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinta-lang/syntax",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0-dev.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=24.21.0 <25"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public",
|
|
12
|
+
"tag": "next"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@tinta-lang/types": "0.1.0-dev.0",
|
|
22
|
+
"micromark": "4.0.3",
|
|
23
|
+
"mdast-util-from-markdown": "2.1.0",
|
|
24
|
+
"micromark-extension-gfm-table": "2.1.2",
|
|
25
|
+
"micromark-extension-gfm-task-list-item": "2.1.0",
|
|
26
|
+
"micromark-extension-gfm-strikethrough": "2.1.0",
|
|
27
|
+
"mdast-util-gfm-table": "2.0.0",
|
|
28
|
+
"mdast-util-gfm-task-list-item": "2.0.0",
|
|
29
|
+
"mdast-util-gfm-strikethrough": "2.0.1",
|
|
30
|
+
"@noble/hashes": "2.4.0"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"THIRD_PARTY_NOTICES.txt",
|
|
35
|
+
"dist/directive.d.ts",
|
|
36
|
+
"dist/editing.d.ts",
|
|
37
|
+
"dist/enrichment.d.ts",
|
|
38
|
+
"dist/expression.d.ts",
|
|
39
|
+
"dist/image-destinations.d.ts",
|
|
40
|
+
"dist/index.d.ts",
|
|
41
|
+
"dist/index.js",
|
|
42
|
+
"dist/parser.d.ts",
|
|
43
|
+
"dist/registry.d.ts",
|
|
44
|
+
"dist/source.d.ts",
|
|
45
|
+
"parser-provenance.json",
|
|
46
|
+
"patches/README.md",
|
|
47
|
+
"patches/micromark.patch",
|
|
48
|
+
"vendor/@noble/hashes/LICENSE",
|
|
49
|
+
"vendor/@noble/hashes/_md.js",
|
|
50
|
+
"vendor/@noble/hashes/_u64.js",
|
|
51
|
+
"vendor/@noble/hashes/package.json",
|
|
52
|
+
"vendor/@noble/hashes/sha2.js",
|
|
53
|
+
"vendor/@noble/hashes/utils.js",
|
|
54
|
+
"vendor/character-entities/index.js",
|
|
55
|
+
"vendor/character-entities/license",
|
|
56
|
+
"vendor/character-entities/package.json",
|
|
57
|
+
"vendor/decode-named-character-reference/index.js",
|
|
58
|
+
"vendor/decode-named-character-reference/license",
|
|
59
|
+
"vendor/decode-named-character-reference/package.json",
|
|
60
|
+
"vendor/devlop/lib/default.js",
|
|
61
|
+
"vendor/devlop/license",
|
|
62
|
+
"vendor/devlop/package.json",
|
|
63
|
+
"vendor/longest-streak/index.js",
|
|
64
|
+
"vendor/longest-streak/license",
|
|
65
|
+
"vendor/longest-streak/package.json",
|
|
66
|
+
"vendor/markdown-table/index.js",
|
|
67
|
+
"vendor/markdown-table/license",
|
|
68
|
+
"vendor/markdown-table/package.json",
|
|
69
|
+
"vendor/mdast-util-from-markdown/index.js",
|
|
70
|
+
"vendor/mdast-util-from-markdown/lib/index.js",
|
|
71
|
+
"vendor/mdast-util-from-markdown/license",
|
|
72
|
+
"vendor/mdast-util-from-markdown/package.json",
|
|
73
|
+
"vendor/mdast-util-gfm-strikethrough/index.js",
|
|
74
|
+
"vendor/mdast-util-gfm-strikethrough/lib/index.js",
|
|
75
|
+
"vendor/mdast-util-gfm-strikethrough/license",
|
|
76
|
+
"vendor/mdast-util-gfm-strikethrough/package.json",
|
|
77
|
+
"vendor/mdast-util-gfm-table/index.js",
|
|
78
|
+
"vendor/mdast-util-gfm-table/lib/index.js",
|
|
79
|
+
"vendor/mdast-util-gfm-table/license",
|
|
80
|
+
"vendor/mdast-util-gfm-table/package.json",
|
|
81
|
+
"vendor/mdast-util-gfm-task-list-item/index.js",
|
|
82
|
+
"vendor/mdast-util-gfm-task-list-item/lib/index.js",
|
|
83
|
+
"vendor/mdast-util-gfm-task-list-item/license",
|
|
84
|
+
"vendor/mdast-util-gfm-task-list-item/package.json",
|
|
85
|
+
"vendor/mdast-util-phrasing/index.js",
|
|
86
|
+
"vendor/mdast-util-phrasing/lib/index.js",
|
|
87
|
+
"vendor/mdast-util-phrasing/license",
|
|
88
|
+
"vendor/mdast-util-phrasing/package.json",
|
|
89
|
+
"vendor/mdast-util-to-markdown/index.js",
|
|
90
|
+
"vendor/mdast-util-to-markdown/lib/configure.js",
|
|
91
|
+
"vendor/mdast-util-to-markdown/lib/handle/blockquote.js",
|
|
92
|
+
"vendor/mdast-util-to-markdown/lib/handle/break.js",
|
|
93
|
+
"vendor/mdast-util-to-markdown/lib/handle/code.js",
|
|
94
|
+
"vendor/mdast-util-to-markdown/lib/handle/definition.js",
|
|
95
|
+
"vendor/mdast-util-to-markdown/lib/handle/emphasis.js",
|
|
96
|
+
"vendor/mdast-util-to-markdown/lib/handle/heading.js",
|
|
97
|
+
"vendor/mdast-util-to-markdown/lib/handle/html.js",
|
|
98
|
+
"vendor/mdast-util-to-markdown/lib/handle/image-reference.js",
|
|
99
|
+
"vendor/mdast-util-to-markdown/lib/handle/image.js",
|
|
100
|
+
"vendor/mdast-util-to-markdown/lib/handle/index.js",
|
|
101
|
+
"vendor/mdast-util-to-markdown/lib/handle/inline-code.js",
|
|
102
|
+
"vendor/mdast-util-to-markdown/lib/handle/link-reference.js",
|
|
103
|
+
"vendor/mdast-util-to-markdown/lib/handle/link.js",
|
|
104
|
+
"vendor/mdast-util-to-markdown/lib/handle/list-item.js",
|
|
105
|
+
"vendor/mdast-util-to-markdown/lib/handle/list.js",
|
|
106
|
+
"vendor/mdast-util-to-markdown/lib/handle/paragraph.js",
|
|
107
|
+
"vendor/mdast-util-to-markdown/lib/handle/root.js",
|
|
108
|
+
"vendor/mdast-util-to-markdown/lib/handle/strong.js",
|
|
109
|
+
"vendor/mdast-util-to-markdown/lib/handle/text.js",
|
|
110
|
+
"vendor/mdast-util-to-markdown/lib/handle/thematic-break.js",
|
|
111
|
+
"vendor/mdast-util-to-markdown/lib/index.js",
|
|
112
|
+
"vendor/mdast-util-to-markdown/lib/join.js",
|
|
113
|
+
"vendor/mdast-util-to-markdown/lib/unsafe.js",
|
|
114
|
+
"vendor/mdast-util-to-markdown/lib/util/association.js",
|
|
115
|
+
"vendor/mdast-util-to-markdown/lib/util/character.js",
|
|
116
|
+
"vendor/mdast-util-to-markdown/lib/util/check-bullet-ordered.js",
|
|
117
|
+
"vendor/mdast-util-to-markdown/lib/util/check-bullet-other.js",
|
|
118
|
+
"vendor/mdast-util-to-markdown/lib/util/check-bullet.js",
|
|
119
|
+
"vendor/mdast-util-to-markdown/lib/util/check-emphasis.js",
|
|
120
|
+
"vendor/mdast-util-to-markdown/lib/util/check-fence.js",
|
|
121
|
+
"vendor/mdast-util-to-markdown/lib/util/check-list-item-indent.js",
|
|
122
|
+
"vendor/mdast-util-to-markdown/lib/util/check-quote.js",
|
|
123
|
+
"vendor/mdast-util-to-markdown/lib/util/check-rule-repetition.js",
|
|
124
|
+
"vendor/mdast-util-to-markdown/lib/util/check-rule.js",
|
|
125
|
+
"vendor/mdast-util-to-markdown/lib/util/check-strong.js",
|
|
126
|
+
"vendor/mdast-util-to-markdown/lib/util/compile-pattern.js",
|
|
127
|
+
"vendor/mdast-util-to-markdown/lib/util/container-flow.js",
|
|
128
|
+
"vendor/mdast-util-to-markdown/lib/util/container-phrasing.js",
|
|
129
|
+
"vendor/mdast-util-to-markdown/lib/util/encode-character-reference.js",
|
|
130
|
+
"vendor/mdast-util-to-markdown/lib/util/encode-info.js",
|
|
131
|
+
"vendor/mdast-util-to-markdown/lib/util/format-code-as-indented.js",
|
|
132
|
+
"vendor/mdast-util-to-markdown/lib/util/format-heading-as-setext.js",
|
|
133
|
+
"vendor/mdast-util-to-markdown/lib/util/format-link-as-autolink.js",
|
|
134
|
+
"vendor/mdast-util-to-markdown/lib/util/html-kind.js",
|
|
135
|
+
"vendor/mdast-util-to-markdown/lib/util/indent-lines.js",
|
|
136
|
+
"vendor/mdast-util-to-markdown/lib/util/pattern-in-scope.js",
|
|
137
|
+
"vendor/mdast-util-to-markdown/lib/util/safe.js",
|
|
138
|
+
"vendor/mdast-util-to-markdown/lib/util/track.js",
|
|
139
|
+
"vendor/mdast-util-to-markdown/license",
|
|
140
|
+
"vendor/mdast-util-to-markdown/package.json",
|
|
141
|
+
"vendor/mdast-util-to-string/index.js",
|
|
142
|
+
"vendor/mdast-util-to-string/lib/index.js",
|
|
143
|
+
"vendor/mdast-util-to-string/license",
|
|
144
|
+
"vendor/mdast-util-to-string/package.json",
|
|
145
|
+
"vendor/micromark-core-commonmark/index.js",
|
|
146
|
+
"vendor/micromark-core-commonmark/lib/attention.js",
|
|
147
|
+
"vendor/micromark-core-commonmark/lib/autolink.js",
|
|
148
|
+
"vendor/micromark-core-commonmark/lib/blank-line.js",
|
|
149
|
+
"vendor/micromark-core-commonmark/lib/block-quote.js",
|
|
150
|
+
"vendor/micromark-core-commonmark/lib/character-escape.js",
|
|
151
|
+
"vendor/micromark-core-commonmark/lib/character-reference.js",
|
|
152
|
+
"vendor/micromark-core-commonmark/lib/code-fenced.js",
|
|
153
|
+
"vendor/micromark-core-commonmark/lib/code-indented.js",
|
|
154
|
+
"vendor/micromark-core-commonmark/lib/code-text.js",
|
|
155
|
+
"vendor/micromark-core-commonmark/lib/content.js",
|
|
156
|
+
"vendor/micromark-core-commonmark/lib/definition.js",
|
|
157
|
+
"vendor/micromark-core-commonmark/lib/hard-break-escape.js",
|
|
158
|
+
"vendor/micromark-core-commonmark/lib/heading-atx.js",
|
|
159
|
+
"vendor/micromark-core-commonmark/lib/html-flow.js",
|
|
160
|
+
"vendor/micromark-core-commonmark/lib/html-text.js",
|
|
161
|
+
"vendor/micromark-core-commonmark/lib/label-end.js",
|
|
162
|
+
"vendor/micromark-core-commonmark/lib/label-start-image.js",
|
|
163
|
+
"vendor/micromark-core-commonmark/lib/label-start-link.js",
|
|
164
|
+
"vendor/micromark-core-commonmark/lib/line-ending.js",
|
|
165
|
+
"vendor/micromark-core-commonmark/lib/list.js",
|
|
166
|
+
"vendor/micromark-core-commonmark/lib/partial-non-lazy-continuation.js",
|
|
167
|
+
"vendor/micromark-core-commonmark/lib/setext-underline.js",
|
|
168
|
+
"vendor/micromark-core-commonmark/lib/thematic-break.js",
|
|
169
|
+
"vendor/micromark-core-commonmark/license",
|
|
170
|
+
"vendor/micromark-core-commonmark/package.json",
|
|
171
|
+
"vendor/micromark-extension-gfm-strikethrough/index.js",
|
|
172
|
+
"vendor/micromark-extension-gfm-strikethrough/lib/html.js",
|
|
173
|
+
"vendor/micromark-extension-gfm-strikethrough/lib/syntax.js",
|
|
174
|
+
"vendor/micromark-extension-gfm-strikethrough/license",
|
|
175
|
+
"vendor/micromark-extension-gfm-strikethrough/package.json",
|
|
176
|
+
"vendor/micromark-extension-gfm-table/index.js",
|
|
177
|
+
"vendor/micromark-extension-gfm-table/lib/edit-map.js",
|
|
178
|
+
"vendor/micromark-extension-gfm-table/lib/html.js",
|
|
179
|
+
"vendor/micromark-extension-gfm-table/lib/infer.js",
|
|
180
|
+
"vendor/micromark-extension-gfm-table/lib/syntax.js",
|
|
181
|
+
"vendor/micromark-extension-gfm-table/license",
|
|
182
|
+
"vendor/micromark-extension-gfm-table/package.json",
|
|
183
|
+
"vendor/micromark-extension-gfm-task-list-item/index.js",
|
|
184
|
+
"vendor/micromark-extension-gfm-task-list-item/lib/html.js",
|
|
185
|
+
"vendor/micromark-extension-gfm-task-list-item/lib/syntax.js",
|
|
186
|
+
"vendor/micromark-extension-gfm-task-list-item/license",
|
|
187
|
+
"vendor/micromark-extension-gfm-task-list-item/package.json",
|
|
188
|
+
"vendor/micromark-factory-destination/index.js",
|
|
189
|
+
"vendor/micromark-factory-destination/license",
|
|
190
|
+
"vendor/micromark-factory-destination/package.json",
|
|
191
|
+
"vendor/micromark-factory-label/index.js",
|
|
192
|
+
"vendor/micromark-factory-label/license",
|
|
193
|
+
"vendor/micromark-factory-label/package.json",
|
|
194
|
+
"vendor/micromark-factory-space/index.js",
|
|
195
|
+
"vendor/micromark-factory-space/license",
|
|
196
|
+
"vendor/micromark-factory-space/package.json",
|
|
197
|
+
"vendor/micromark-factory-title/index.js",
|
|
198
|
+
"vendor/micromark-factory-title/license",
|
|
199
|
+
"vendor/micromark-factory-title/package.json",
|
|
200
|
+
"vendor/micromark-factory-whitespace/index.js",
|
|
201
|
+
"vendor/micromark-factory-whitespace/license",
|
|
202
|
+
"vendor/micromark-factory-whitespace/package.json",
|
|
203
|
+
"vendor/micromark-util-character/index.js",
|
|
204
|
+
"vendor/micromark-util-character/license",
|
|
205
|
+
"vendor/micromark-util-character/package.json",
|
|
206
|
+
"vendor/micromark-util-chunked/index.js",
|
|
207
|
+
"vendor/micromark-util-chunked/license",
|
|
208
|
+
"vendor/micromark-util-chunked/package.json",
|
|
209
|
+
"vendor/micromark-util-classify-character/index.js",
|
|
210
|
+
"vendor/micromark-util-classify-character/license",
|
|
211
|
+
"vendor/micromark-util-classify-character/package.json",
|
|
212
|
+
"vendor/micromark-util-combine-extensions/index.js",
|
|
213
|
+
"vendor/micromark-util-combine-extensions/license",
|
|
214
|
+
"vendor/micromark-util-combine-extensions/package.json",
|
|
215
|
+
"vendor/micromark-util-decode-numeric-character-reference/index.js",
|
|
216
|
+
"vendor/micromark-util-decode-numeric-character-reference/license",
|
|
217
|
+
"vendor/micromark-util-decode-numeric-character-reference/package.json",
|
|
218
|
+
"vendor/micromark-util-decode-string/index.js",
|
|
219
|
+
"vendor/micromark-util-decode-string/license",
|
|
220
|
+
"vendor/micromark-util-decode-string/package.json",
|
|
221
|
+
"vendor/micromark-util-edit-map/index.js",
|
|
222
|
+
"vendor/micromark-util-edit-map/license",
|
|
223
|
+
"vendor/micromark-util-edit-map/package.json",
|
|
224
|
+
"vendor/micromark-util-encode/index.js",
|
|
225
|
+
"vendor/micromark-util-encode/license",
|
|
226
|
+
"vendor/micromark-util-encode/package.json",
|
|
227
|
+
"vendor/micromark-util-html-tag-name/index.js",
|
|
228
|
+
"vendor/micromark-util-html-tag-name/license",
|
|
229
|
+
"vendor/micromark-util-html-tag-name/package.json",
|
|
230
|
+
"vendor/micromark-util-normalize-identifier/index.js",
|
|
231
|
+
"vendor/micromark-util-normalize-identifier/license",
|
|
232
|
+
"vendor/micromark-util-normalize-identifier/package.json",
|
|
233
|
+
"vendor/micromark-util-resolve-all/index.js",
|
|
234
|
+
"vendor/micromark-util-resolve-all/license",
|
|
235
|
+
"vendor/micromark-util-resolve-all/package.json",
|
|
236
|
+
"vendor/micromark-util-sanitize-uri/index.js",
|
|
237
|
+
"vendor/micromark-util-sanitize-uri/license",
|
|
238
|
+
"vendor/micromark-util-sanitize-uri/package.json",
|
|
239
|
+
"vendor/micromark-util-subtokenize/index.js",
|
|
240
|
+
"vendor/micromark-util-subtokenize/lib/splice-buffer.js",
|
|
241
|
+
"vendor/micromark-util-subtokenize/license",
|
|
242
|
+
"vendor/micromark-util-subtokenize/package.json",
|
|
243
|
+
"vendor/micromark/index.js",
|
|
244
|
+
"vendor/micromark/lib/compile.js",
|
|
245
|
+
"vendor/micromark/lib/constructs.js",
|
|
246
|
+
"vendor/micromark/lib/create-tokenizer.js",
|
|
247
|
+
"vendor/micromark/lib/initialize/content.js",
|
|
248
|
+
"vendor/micromark/lib/initialize/document.js",
|
|
249
|
+
"vendor/micromark/lib/initialize/flow.js",
|
|
250
|
+
"vendor/micromark/lib/initialize/text.js",
|
|
251
|
+
"vendor/micromark/lib/parse.js",
|
|
252
|
+
"vendor/micromark/lib/postprocess.js",
|
|
253
|
+
"vendor/micromark/lib/preprocess.js",
|
|
254
|
+
"vendor/micromark/license",
|
|
255
|
+
"vendor/micromark/package.json",
|
|
256
|
+
"vendor/unist-util-is/index.js",
|
|
257
|
+
"vendor/unist-util-is/lib/index.js",
|
|
258
|
+
"vendor/unist-util-is/license",
|
|
259
|
+
"vendor/unist-util-is/package.json",
|
|
260
|
+
"vendor/unist-util-stringify-position/index.js",
|
|
261
|
+
"vendor/unist-util-stringify-position/lib/index.js",
|
|
262
|
+
"vendor/unist-util-stringify-position/license",
|
|
263
|
+
"vendor/unist-util-stringify-position/package.json",
|
|
264
|
+
"vendor/unist-util-visit-parents/index.js",
|
|
265
|
+
"vendor/unist-util-visit-parents/lib/color.js",
|
|
266
|
+
"vendor/unist-util-visit-parents/lib/index.js",
|
|
267
|
+
"vendor/unist-util-visit-parents/license",
|
|
268
|
+
"vendor/unist-util-visit-parents/package.json",
|
|
269
|
+
"vendor/unist-util-visit/index.js",
|
|
270
|
+
"vendor/unist-util-visit/lib/index.js",
|
|
271
|
+
"vendor/unist-util-visit/license",
|
|
272
|
+
"vendor/unist-util-visit/package.json",
|
|
273
|
+
"vendor/zwitch/index.js",
|
|
274
|
+
"vendor/zwitch/license",
|
|
275
|
+
"vendor/zwitch/package.json"
|
|
276
|
+
],
|
|
277
|
+
"types": "./dist/index.d.ts",
|
|
278
|
+
"repository": {
|
|
279
|
+
"type": "git",
|
|
280
|
+
"url": "https://github.com/planta7/tinta.git",
|
|
281
|
+
"directory": "packages/syntax"
|
|
282
|
+
}
|
|
6
283
|
}
|