@mojir/lits 1.2.2-alpha.7 → 2.0.2

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.
Files changed (122) hide show
  1. package/README.md +2 -1
  2. package/dist/cli/cli.js +2211 -2114
  3. package/dist/cli/reference/api.d.ts +2 -2
  4. package/dist/cli/src/Lits/Lits.d.ts +3 -4
  5. package/dist/cli/src/analyze/index.d.ts +1 -1
  6. package/dist/cli/src/builtin/index.d.ts +1 -1
  7. package/dist/cli/src/builtin/interface.d.ts +4 -3
  8. package/dist/cli/src/builtin/specialExpressions/functions.d.ts +2 -2
  9. package/dist/cli/src/builtin/specialExpressions/if-let.d.ts +1 -4
  10. package/dist/cli/src/builtin/specialExpressions/let.d.ts +1 -4
  11. package/dist/cli/src/builtin/specialExpressions/try.d.ts +2 -2
  12. package/dist/cli/src/constants/constants.d.ts +2 -17
  13. package/dist/cli/src/errors.d.ts +1 -1
  14. package/dist/cli/src/evaluator/ContextStack.d.ts +3 -3
  15. package/dist/cli/src/identifier.d.ts +4 -2
  16. package/dist/cli/src/index.d.ts +5 -4
  17. package/dist/cli/src/parser/AlgebraicParser.d.ts +17 -0
  18. package/dist/cli/src/parser/PolishTokenParsers.d.ts +3 -0
  19. package/dist/cli/src/parser/commonTokenParsers.d.ts +6 -0
  20. package/dist/cli/src/parser/index.d.ts +2 -1
  21. package/dist/cli/src/parser/interface.d.ts +26 -20
  22. package/dist/cli/src/removeCommentNodes/index.d.ts +1 -1
  23. package/dist/cli/src/tokenizer/algebraic/algebraicReservedNames.d.ts +8 -0
  24. package/dist/cli/src/tokenizer/algebraic/algebraicTokenizers.d.ts +10 -0
  25. package/dist/cli/src/tokenizer/algebraic/algebraicTokens.d.ts +47 -0
  26. package/dist/cli/src/tokenizer/common/commonTokenizers.d.ts +8 -0
  27. package/dist/cli/src/tokenizer/common/commonTokens.d.ts +51 -0
  28. package/dist/cli/src/tokenizer/index.d.ts +1 -8
  29. package/dist/cli/src/tokenizer/interface.d.ts +5 -18
  30. package/dist/cli/src/tokenizer/polish/polishReservedNames.d.ts +7 -0
  31. package/dist/cli/src/tokenizer/polish/polishTokenizers.d.ts +13 -0
  32. package/dist/cli/src/tokenizer/polish/polishTokens.d.ts +59 -0
  33. package/dist/cli/src/tokenizer/tokens.d.ts +20 -0
  34. package/dist/cli/src/tokenizer/utils.d.ts +9 -0
  35. package/dist/cli/src/typeGuards/astNode.d.ts +4 -4
  36. package/dist/cli/src/typeGuards/index.d.ts +0 -1
  37. package/dist/cli/src/utils/debug/debugTools.d.ts +0 -2
  38. package/dist/cli/src/utils/debug/getCodeMarker.d.ts +2 -0
  39. package/dist/index.esm.js +2214 -2119
  40. package/dist/index.esm.js.map +1 -1
  41. package/dist/index.js +2216 -2121
  42. package/dist/index.js.map +1 -1
  43. package/dist/lits.iife.js +2216 -2121
  44. package/dist/lits.iife.js.map +1 -1
  45. package/dist/reference/api.d.ts +2 -2
  46. package/dist/src/Lits/Lits.d.ts +3 -4
  47. package/dist/src/analyze/index.d.ts +1 -1
  48. package/dist/src/builtin/index.d.ts +1 -1
  49. package/dist/src/builtin/interface.d.ts +4 -3
  50. package/dist/src/builtin/specialExpressions/functions.d.ts +2 -2
  51. package/dist/src/builtin/specialExpressions/if-let.d.ts +1 -4
  52. package/dist/src/builtin/specialExpressions/let.d.ts +1 -4
  53. package/dist/src/builtin/specialExpressions/try.d.ts +2 -2
  54. package/dist/src/constants/constants.d.ts +2 -17
  55. package/dist/src/errors.d.ts +1 -1
  56. package/dist/src/evaluator/ContextStack.d.ts +3 -3
  57. package/dist/src/identifier.d.ts +4 -2
  58. package/dist/src/index.d.ts +5 -4
  59. package/dist/src/parser/AlgebraicParser.d.ts +17 -0
  60. package/dist/src/parser/PolishTokenParsers.d.ts +3 -0
  61. package/dist/src/parser/commonTokenParsers.d.ts +6 -0
  62. package/dist/src/parser/index.d.ts +2 -1
  63. package/dist/src/parser/interface.d.ts +26 -20
  64. package/dist/src/removeCommentNodes/index.d.ts +1 -1
  65. package/dist/src/tokenizer/algebraic/algebraicReservedNames.d.ts +8 -0
  66. package/dist/src/tokenizer/algebraic/algebraicTokenizers.d.ts +10 -0
  67. package/dist/src/tokenizer/algebraic/algebraicTokens.d.ts +47 -0
  68. package/dist/src/tokenizer/common/commonTokenizers.d.ts +8 -0
  69. package/dist/src/tokenizer/common/commonTokens.d.ts +51 -0
  70. package/dist/src/tokenizer/index.d.ts +1 -8
  71. package/dist/src/tokenizer/interface.d.ts +5 -18
  72. package/dist/src/tokenizer/polish/polishReservedNames.d.ts +7 -0
  73. package/dist/src/tokenizer/polish/polishTokenizers.d.ts +13 -0
  74. package/dist/src/tokenizer/polish/polishTokens.d.ts +59 -0
  75. package/dist/src/tokenizer/tokens.d.ts +20 -0
  76. package/dist/src/tokenizer/utils.d.ts +9 -0
  77. package/dist/src/typeGuards/astNode.d.ts +4 -4
  78. package/dist/src/typeGuards/index.d.ts +0 -1
  79. package/dist/src/utils/debug/debugTools.d.ts +0 -2
  80. package/dist/src/utils/debug/getCodeMarker.d.ts +2 -0
  81. package/dist/testFramework.esm.js +2212 -2138
  82. package/dist/testFramework.esm.js.map +1 -1
  83. package/dist/testFramework.js +2212 -2138
  84. package/dist/testFramework.js.map +1 -1
  85. package/package.json +6 -5
  86. package/dist/cli/src/parser/parsers.d.ts +0 -4
  87. package/dist/cli/src/reservedNames.d.ts +0 -7
  88. package/dist/cli/src/tokenizer/tokenizers.d.ts +0 -19
  89. package/dist/cli/src/typeGuards/token.d.ts +0 -13
  90. package/dist/cli/src/unparser/UnparseOptions.d.ts +0 -15
  91. package/dist/cli/src/unparser/unparse.d.ts +0 -5
  92. package/dist/cli/src/unparser/unparseArrayLiteral.d.ts +0 -3
  93. package/dist/cli/src/unparser/unparseBindings.d.ts +0 -3
  94. package/dist/cli/src/unparser/unparseNormalExpression.d.ts +0 -3
  95. package/dist/cli/src/unparser/unparseObjectLiteral.d.ts +0 -3
  96. package/dist/cli/src/unparser/unparseParams.d.ts +0 -17
  97. package/dist/cli/src/unparser/unparseSpecialExpression/index.d.ts +0 -3
  98. package/dist/cli/src/unparser/unparseSpecialExpression/unparseCond.d.ts +0 -3
  99. package/dist/cli/src/unparser/unparseSpecialExpression/unparseDo.d.ts +0 -3
  100. package/dist/cli/src/unparser/unparseSpecialExpression/unparseIfLet.d.ts +0 -3
  101. package/dist/cli/src/unparser/unparseSpecialExpression/unparseIfOrWhenLike.d.ts +0 -6
  102. package/dist/cli/src/unparser/unparseSpecialExpression/unparseLet.d.ts +0 -3
  103. package/dist/cli/src/unparser/utils.d.ts +0 -5
  104. package/dist/src/parser/parsers.d.ts +0 -4
  105. package/dist/src/reservedNames.d.ts +0 -7
  106. package/dist/src/tokenizer/tokenizers.d.ts +0 -19
  107. package/dist/src/typeGuards/token.d.ts +0 -13
  108. package/dist/src/unparser/UnparseOptions.d.ts +0 -15
  109. package/dist/src/unparser/__tests__/testFormatter.d.ts +0 -1
  110. package/dist/src/unparser/unparse.d.ts +0 -5
  111. package/dist/src/unparser/unparseArrayLiteral.d.ts +0 -3
  112. package/dist/src/unparser/unparseBindings.d.ts +0 -3
  113. package/dist/src/unparser/unparseNormalExpression.d.ts +0 -3
  114. package/dist/src/unparser/unparseObjectLiteral.d.ts +0 -3
  115. package/dist/src/unparser/unparseParams.d.ts +0 -17
  116. package/dist/src/unparser/unparseSpecialExpression/index.d.ts +0 -3
  117. package/dist/src/unparser/unparseSpecialExpression/unparseCond.d.ts +0 -3
  118. package/dist/src/unparser/unparseSpecialExpression/unparseDo.d.ts +0 -3
  119. package/dist/src/unparser/unparseSpecialExpression/unparseIfLet.d.ts +0 -3
  120. package/dist/src/unparser/unparseSpecialExpression/unparseIfOrWhenLike.d.ts +0 -6
  121. package/dist/src/unparser/unparseSpecialExpression/unparseLet.d.ts +0 -3
  122. package/dist/src/unparser/utils.d.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojir/lits",
3
- "version": "1.2.2-alpha.7",
3
+ "version": "2.0.2",
4
4
  "description": "Lits is a Lisp dialect implemented in TypeScript",
5
5
  "author": "Albert Mojir",
6
6
  "license": "MIT",
@@ -33,10 +33,11 @@
33
33
  "scripts": {
34
34
  "test": "vitest run --coverage",
35
35
  "vitest": "vitest",
36
- "lint": "eslint .",
37
- "lint:fix": "eslint . --fix",
38
- "tsc": "tsc -p ./tsconfig.compile.json --noEmit",
39
- "check": "npm run lint && npm run tsc",
36
+ "lint": "eslint . --fix",
37
+ "lint:no-fix": "eslint .",
38
+ "typecheck": "tsc -p ./tsconfig.compile.json --noEmit",
39
+ "check": "npm run lint && npm run typecheck && npm run test",
40
+ "check:no-fix": "npm run lint:no-fix && npm run typecheck && npm run test",
40
41
  "clean": "npm run clean-lits && npm run clean-playground",
41
42
  "clean-lits": "rm -rf dist build",
42
43
  "clean-playground": "rm -rf playground-builder/build playground-www/build",
@@ -1,4 +0,0 @@
1
- import type { TokenStream } from '../tokenizer/interface';
2
- import type { AstNode, NumberNode } from './interface';
3
- export declare function parseNumber(tokenStream: TokenStream, position: number): [number, NumberNode];
4
- export declare function parseToken(tokenStream: TokenStream, position: number): [number, AstNode];
@@ -1,7 +0,0 @@
1
- import type { Any } from './interface';
2
- export type ReservedName = 'true' | 'false' | 'nil' | 'null' | 'undefined' | '===' | '!==' | '&&' | '||';
3
- export declare const reservedNamesRecord: Record<ReservedName, {
4
- value: Any;
5
- forbidden?: true;
6
- }>;
7
- export declare const reservedNames: ReservedName[];
@@ -1,19 +0,0 @@
1
- import type { Tokenizer } from './interface';
2
- export declare const tokenizeNewLine: Tokenizer;
3
- export declare const tokenizeComment: Tokenizer;
4
- export declare const skipWhiteSpace: Tokenizer;
5
- export declare const tokenizeLeftParen: Tokenizer;
6
- export declare const tokenizeRightParen: Tokenizer;
7
- export declare const tokenizeLeftBracket: Tokenizer;
8
- export declare const tokenizeRightBracket: Tokenizer;
9
- export declare const tokenizeLeftCurly: Tokenizer;
10
- export declare const tokenizeRightCurly: Tokenizer;
11
- export declare const tokenizeString: Tokenizer;
12
- export declare const tokenizeCollectionAccessor: Tokenizer;
13
- export declare const tokenizeSymbolString: Tokenizer;
14
- export declare const tokenizeRegexpShorthand: Tokenizer;
15
- export declare const tokenizeFnShorthand: Tokenizer;
16
- export declare const tokenizeNumber: Tokenizer;
17
- export declare const tokenizeReservedName: Tokenizer;
18
- export declare const tokenizeName: Tokenizer;
19
- export declare const tokenizeModifier: Tokenizer;
@@ -1,13 +0,0 @@
1
- import { TokenType } from '../constants/constants';
2
- import type { Token } from '../tokenizer/interface';
3
- type TokenAssertionOptions = {
4
- type: TokenType;
5
- value?: string;
6
- } | {
7
- type?: never;
8
- value?: never;
9
- };
10
- export declare function isToken(value: unknown, options?: TokenAssertionOptions): value is Token;
11
- export declare function assertToken(value: unknown, filePath: string | undefined, options?: TokenAssertionOptions): asserts value is Token;
12
- export declare function asToken(value: unknown, filePath: string | undefined, options?: TokenAssertionOptions): Token;
13
- export {};
@@ -1,15 +0,0 @@
1
- import type { Unparse } from './unparse';
2
- export declare class UnparseOptions {
3
- readonly unparse: Unparse;
4
- readonly lineLength: number;
5
- readonly col: number;
6
- readonly inlined: boolean;
7
- readonly locked: boolean;
8
- readonly indent: string;
9
- constructor(unparse: Unparse, lineLength: number, col?: number, inlined?: boolean, locked?: boolean);
10
- inc(count?: number): UnparseOptions;
11
- inline(): UnparseOptions;
12
- noInline(): UnparseOptions;
13
- lock(): UnparseOptions;
14
- assertNotOverflown(value: string): string;
15
- }
@@ -1,5 +0,0 @@
1
- import type { Ast, AstNode, NormalExpressionNode } from '../parser/interface';
2
- import { UnparseOptions } from './UnparseOptions';
3
- export type ExpressionWithParamsNode = Pick<NormalExpressionNode, 'debugData' | 'n' | 'p'>;
4
- export type Unparse = (node: AstNode, options: UnparseOptions) => string;
5
- export declare function unparseAst(ast: Ast, lineLength: number): string;
@@ -1,3 +0,0 @@
1
- import type { NormalExpressionNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseArrayLiteral(node: NormalExpressionNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { NormalExpressionNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseBindings(node: NormalExpressionNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { UnparseOptions } from './UnparseOptions';
2
- import type { ExpressionWithParamsNode } from './unparse';
3
- export declare function unparseNormalExpression(node: ExpressionWithParamsNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { NormalExpressionNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseObjectLiteral(node: NormalExpressionNode, options: UnparseOptions): string;
@@ -1,17 +0,0 @@
1
- import type { AstNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseParams({ params, options, prefix, inline, endBracket, body, name, noMultilineInline, pairs, }: {
4
- params: AstNode[];
5
- prefix: string;
6
- inline: boolean;
7
- endBracket: string;
8
- options: UnparseOptions;
9
- body?: boolean;
10
- name?: string;
11
- noMultilineInline?: boolean;
12
- pairs?: boolean;
13
- }): string;
14
- export declare function unparseSingleLineParams(params: AstNode[], options: UnparseOptions): string;
15
- export declare function unparseSingleLinePairs(params: AstNode[], options: UnparseOptions): string;
16
- export declare function unparseMultilineParams(params: AstNode[], options: UnparseOptions): string;
17
- export declare function unparseMultilinePairwise(params: AstNode[], options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { SpecialExpressionNode } from '../../builtin';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseSpecialExpression(node: SpecialExpressionNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { CondNode } from '../../builtin/specialExpressions/cond';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseCond(node: CondNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { DoNode } from '../../builtin/specialExpressions/do';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseDo(node: DoNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { IfLetNode } from '../../builtin/specialExpressions/if-let';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseIfLet(node: IfLetNode, options: UnparseOptions): string;
@@ -1,6 +0,0 @@
1
- import type { IfNode } from '../../builtin/specialExpressions/if';
2
- import type { IfNotNode } from '../../builtin/specialExpressions/if-not';
3
- import type { WhenNode } from '../../builtin/specialExpressions/when';
4
- import type { WhenNotNode } from '../../builtin/specialExpressions/when-not';
5
- import type { UnparseOptions } from '../UnparseOptions';
6
- export declare function unparseIfOrWhenLike(node: WhenNode | WhenNotNode | IfNode | IfNotNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { LetNode } from '../../builtin/specialExpressions/let';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseLet(node: LetNode, options: UnparseOptions): string;
@@ -1,5 +0,0 @@
1
- import type { MetaTokens } from '../tokenizer/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function ensureNewlineSeparator(a: string, b: string): string;
4
- export declare function ensureSpaceSeparator(a: string, b: string): string;
5
- export declare function applyMetaTokens(value: string | number, metaTokens: MetaTokens | undefined, options: UnparseOptions): string;
@@ -1,4 +0,0 @@
1
- import type { TokenStream } from '../tokenizer/interface';
2
- import type { AstNode, NumberNode } from './interface';
3
- export declare function parseNumber(tokenStream: TokenStream, position: number): [number, NumberNode];
4
- export declare function parseToken(tokenStream: TokenStream, position: number): [number, AstNode];
@@ -1,7 +0,0 @@
1
- import type { Any } from './interface';
2
- export type ReservedName = 'true' | 'false' | 'nil' | 'null' | 'undefined' | '===' | '!==' | '&&' | '||';
3
- export declare const reservedNamesRecord: Record<ReservedName, {
4
- value: Any;
5
- forbidden?: true;
6
- }>;
7
- export declare const reservedNames: ReservedName[];
@@ -1,19 +0,0 @@
1
- import type { Tokenizer } from './interface';
2
- export declare const tokenizeNewLine: Tokenizer;
3
- export declare const tokenizeComment: Tokenizer;
4
- export declare const skipWhiteSpace: Tokenizer;
5
- export declare const tokenizeLeftParen: Tokenizer;
6
- export declare const tokenizeRightParen: Tokenizer;
7
- export declare const tokenizeLeftBracket: Tokenizer;
8
- export declare const tokenizeRightBracket: Tokenizer;
9
- export declare const tokenizeLeftCurly: Tokenizer;
10
- export declare const tokenizeRightCurly: Tokenizer;
11
- export declare const tokenizeString: Tokenizer;
12
- export declare const tokenizeCollectionAccessor: Tokenizer;
13
- export declare const tokenizeSymbolString: Tokenizer;
14
- export declare const tokenizeRegexpShorthand: Tokenizer;
15
- export declare const tokenizeFnShorthand: Tokenizer;
16
- export declare const tokenizeNumber: Tokenizer;
17
- export declare const tokenizeReservedName: Tokenizer;
18
- export declare const tokenizeName: Tokenizer;
19
- export declare const tokenizeModifier: Tokenizer;
@@ -1,13 +0,0 @@
1
- import { TokenType } from '../constants/constants';
2
- import type { Token } from '../tokenizer/interface';
3
- type TokenAssertionOptions = {
4
- type: TokenType;
5
- value?: string;
6
- } | {
7
- type?: never;
8
- value?: never;
9
- };
10
- export declare function isToken(value: unknown, options?: TokenAssertionOptions): value is Token;
11
- export declare function assertToken(value: unknown, filePath: string | undefined, options?: TokenAssertionOptions): asserts value is Token;
12
- export declare function asToken(value: unknown, filePath: string | undefined, options?: TokenAssertionOptions): Token;
13
- export {};
@@ -1,15 +0,0 @@
1
- import type { Unparse } from './unparse';
2
- export declare class UnparseOptions {
3
- readonly unparse: Unparse;
4
- readonly lineLength: number;
5
- readonly col: number;
6
- readonly inlined: boolean;
7
- readonly locked: boolean;
8
- readonly indent: string;
9
- constructor(unparse: Unparse, lineLength: number, col?: number, inlined?: boolean, locked?: boolean);
10
- inc(count?: number): UnparseOptions;
11
- inline(): UnparseOptions;
12
- noInline(): UnparseOptions;
13
- lock(): UnparseOptions;
14
- assertNotOverflown(value: string): string;
15
- }
@@ -1 +0,0 @@
1
- export declare function testFormatter(formatter: (program: string) => string, program: string, expected: string): void;
@@ -1,5 +0,0 @@
1
- import type { Ast, AstNode, NormalExpressionNode } from '../parser/interface';
2
- import { UnparseOptions } from './UnparseOptions';
3
- export type ExpressionWithParamsNode = Pick<NormalExpressionNode, 'debugData' | 'n' | 'p'>;
4
- export type Unparse = (node: AstNode, options: UnparseOptions) => string;
5
- export declare function unparseAst(ast: Ast, lineLength: number): string;
@@ -1,3 +0,0 @@
1
- import type { NormalExpressionNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseArrayLiteral(node: NormalExpressionNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { NormalExpressionNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseBindings(node: NormalExpressionNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { UnparseOptions } from './UnparseOptions';
2
- import type { ExpressionWithParamsNode } from './unparse';
3
- export declare function unparseNormalExpression(node: ExpressionWithParamsNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { NormalExpressionNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseObjectLiteral(node: NormalExpressionNode, options: UnparseOptions): string;
@@ -1,17 +0,0 @@
1
- import type { AstNode } from '../parser/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function unparseParams({ params, options, prefix, inline, endBracket, body, name, noMultilineInline, pairs, }: {
4
- params: AstNode[];
5
- prefix: string;
6
- inline: boolean;
7
- endBracket: string;
8
- options: UnparseOptions;
9
- body?: boolean;
10
- name?: string;
11
- noMultilineInline?: boolean;
12
- pairs?: boolean;
13
- }): string;
14
- export declare function unparseSingleLineParams(params: AstNode[], options: UnparseOptions): string;
15
- export declare function unparseSingleLinePairs(params: AstNode[], options: UnparseOptions): string;
16
- export declare function unparseMultilineParams(params: AstNode[], options: UnparseOptions): string;
17
- export declare function unparseMultilinePairwise(params: AstNode[], options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { SpecialExpressionNode } from '../../builtin';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseSpecialExpression(node: SpecialExpressionNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { CondNode } from '../../builtin/specialExpressions/cond';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseCond(node: CondNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { DoNode } from '../../builtin/specialExpressions/do';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseDo(node: DoNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { IfLetNode } from '../../builtin/specialExpressions/if-let';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseIfLet(node: IfLetNode, options: UnparseOptions): string;
@@ -1,6 +0,0 @@
1
- import type { IfNode } from '../../builtin/specialExpressions/if';
2
- import type { IfNotNode } from '../../builtin/specialExpressions/if-not';
3
- import type { WhenNode } from '../../builtin/specialExpressions/when';
4
- import type { WhenNotNode } from '../../builtin/specialExpressions/when-not';
5
- import type { UnparseOptions } from '../UnparseOptions';
6
- export declare function unparseIfOrWhenLike(node: WhenNode | WhenNotNode | IfNode | IfNotNode, options: UnparseOptions): string;
@@ -1,3 +0,0 @@
1
- import type { LetNode } from '../../builtin/specialExpressions/let';
2
- import type { UnparseOptions } from '../UnparseOptions';
3
- export declare function unparseLet(node: LetNode, options: UnparseOptions): string;
@@ -1,5 +0,0 @@
1
- import type { MetaTokens } from '../tokenizer/interface';
2
- import type { UnparseOptions } from './UnparseOptions';
3
- export declare function ensureNewlineSeparator(a: string, b: string): string;
4
- export declare function ensureSpaceSeparator(a: string, b: string): string;
5
- export declare function applyMetaTokens(value: string | number, metaTokens: MetaTokens | undefined, options: UnparseOptions): string;