@mojir/lits 1.1.0 → 1.2.1-alpha.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/dist/cli/cli/src/colorizer.d.ts +817 -784
- package/dist/cli/cli/src/createReadlineInterface.d.ts +0 -1
- package/dist/cli/cli.js +6857 -5196
- package/dist/cli/common/utils.d.ts +0 -1
- package/dist/cli/reference/api.d.ts +1 -1
- package/dist/cli/reference/examples.d.ts +1 -6
- package/dist/cli/src/Lits/Lits.d.ts +10 -7
- package/dist/cli/src/analyze/calculateOutcomes/calculateAndOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateCommentOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateCondOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateDeclaredOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateDefOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateDefsOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateDoOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateFunctionOutcomes.d.ts +5 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateIfLetOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateIfNotOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateIfOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateLetOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateLoopOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateLoopsOutcomes.d.ts +4 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateOrOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateQqOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateRecurOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateThrowOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateTimeOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateTryOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateWhenFirstOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateWhenLetOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateWhenNotOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/calculateWhenOutcomes.d.ts +3 -0
- package/dist/cli/src/analyze/calculateOutcomes/index.d.ts +18 -0
- package/dist/cli/src/analyze/calculateOutcomes/specialExpressionCalculators.d.ts +55 -0
- package/dist/cli/src/analyze/findUnresolvedIdentifiers.d.ts +2 -0
- package/dist/cli/src/analyze/index.d.ts +17 -2
- package/dist/cli/src/analyze/utils.d.ts +4 -3
- package/dist/cli/src/builtin/index.d.ts +35 -2
- package/dist/cli/src/builtin/interface.d.ts +13 -14
- package/dist/cli/src/builtin/specialExpressions/and.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/comment.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/cond.d.ts +3 -5
- package/dist/cli/src/builtin/specialExpressions/declared.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/def.d.ts +4 -2
- package/dist/cli/src/builtin/specialExpressions/defs.d.ts +4 -2
- package/dist/cli/src/builtin/specialExpressions/do.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/functions.d.ts +15 -6
- package/dist/cli/src/builtin/specialExpressions/if-let.d.ts +8 -1
- package/dist/cli/src/builtin/specialExpressions/if-not.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/if.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/let.d.ts +8 -1
- package/dist/cli/src/builtin/specialExpressions/loop.d.ts +5 -1
- package/dist/cli/src/builtin/specialExpressions/loops.d.ts +9 -3
- package/dist/cli/src/builtin/specialExpressions/or.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/qq.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/recur.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/throw.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/time.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/try.d.ts +6 -1
- package/dist/cli/src/builtin/specialExpressions/when-first.d.ts +5 -1
- package/dist/cli/src/builtin/specialExpressions/when-let.d.ts +5 -1
- package/dist/cli/src/builtin/specialExpressions/when-not.d.ts +4 -1
- package/dist/cli/src/builtin/specialExpressions/when.d.ts +4 -1
- package/dist/cli/src/colorizer.d.ts +817 -784
- package/dist/cli/src/constants/constants.d.ts +5 -2
- package/dist/cli/src/createReadlineInterface.d.ts +0 -1
- package/dist/cli/src/errors.d.ts +2 -1
- package/dist/cli/src/evaluator/ContextStack.d.ts +5 -2
- package/dist/cli/src/index.d.ts +1 -0
- package/dist/cli/src/parser/interface.d.ts +27 -32
- package/dist/cli/src/removeCommentNodes/index.d.ts +11 -0
- package/dist/cli/src/removeCommentNodes/removeCommentNodesFromSpecialExpression.d.ts +3 -0
- package/dist/cli/src/tokenizer/index.d.ts +8 -1
- package/dist/cli/src/tokenizer/interface.d.ts +15 -5
- package/dist/cli/src/tokenizer/tokenizers.d.ts +3 -2
- package/dist/cli/src/typeGuards/index.d.ts +8 -6
- package/dist/cli/src/typeGuards/token.d.ts +1 -1
- package/dist/cli/src/unparser/UnparseOptions.d.ts +15 -0
- package/dist/cli/src/unparser/unparse.d.ts +5 -0
- package/dist/cli/src/unparser/unparseArrayLiteral.d.ts +3 -0
- package/dist/cli/src/unparser/unparseBindings.d.ts +3 -0
- package/dist/cli/src/unparser/unparseNormalExpression.d.ts +3 -0
- package/dist/cli/src/unparser/unparseObjectLiteral.d.ts +3 -0
- package/dist/cli/src/unparser/unparseParams.d.ts +17 -0
- package/dist/cli/src/unparser/unparseSpecialExpression/index.d.ts +3 -0
- package/dist/cli/src/unparser/unparseSpecialExpression/unparseCond.d.ts +3 -0
- package/dist/cli/src/unparser/unparseSpecialExpression/unparseDo.d.ts +3 -0
- package/dist/cli/src/unparser/unparseSpecialExpression/unparseIfLet.d.ts +3 -0
- package/dist/cli/src/unparser/unparseSpecialExpression/unparseIfOrWhenLike.d.ts +6 -0
- package/dist/cli/src/unparser/unparseSpecialExpression/unparseLet.d.ts +3 -0
- package/dist/cli/src/unparser/utils.d.ts +5 -0
- package/dist/cli/src/utils/index.d.ts +1 -0
- package/dist/cli/src/utils/symbols.d.ts +2 -2
- package/dist/common/utils.d.ts +0 -1
- package/dist/index.esm.js +14008 -5896
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +14008 -5895
- package/dist/index.js.map +1 -1
- package/dist/lits.iife.js +14008 -5895
- package/dist/lits.iife.js.map +1 -1
- package/dist/reference/api.d.ts +1 -1
- package/dist/src/Lits/Lits.d.ts +10 -7
- package/dist/src/analyze/calculateOutcomes/calculateAndOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateCommentOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateCondOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateDeclaredOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateDefOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateDefsOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateDoOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateFunctionOutcomes.d.ts +5 -0
- package/dist/src/analyze/calculateOutcomes/calculateIfLetOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateIfNotOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateIfOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateLetOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateLoopOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateLoopsOutcomes.d.ts +4 -0
- package/dist/src/analyze/calculateOutcomes/calculateOrOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateQqOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateRecurOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateThrowOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateTimeOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateTryOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateWhenFirstOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateWhenLetOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateWhenNotOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/calculateWhenOutcomes.d.ts +3 -0
- package/dist/src/analyze/calculateOutcomes/index.d.ts +18 -0
- package/dist/src/analyze/calculateOutcomes/specialExpressionCalculators.d.ts +55 -0
- package/dist/src/analyze/findUnresolvedIdentifiers.d.ts +2 -0
- package/dist/src/analyze/index.d.ts +17 -2
- package/dist/src/analyze/utils.d.ts +4 -3
- package/dist/src/builtin/index.d.ts +35 -2
- package/dist/src/builtin/interface.d.ts +13 -14
- package/dist/src/builtin/specialExpressions/and.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/comment.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/cond.d.ts +3 -5
- package/dist/src/builtin/specialExpressions/declared.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/def.d.ts +4 -2
- package/dist/src/builtin/specialExpressions/defs.d.ts +4 -2
- package/dist/src/builtin/specialExpressions/do.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/functions.d.ts +15 -6
- package/dist/src/builtin/specialExpressions/if-let.d.ts +8 -1
- package/dist/src/builtin/specialExpressions/if-not.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/if.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/let.d.ts +8 -1
- package/dist/src/builtin/specialExpressions/loop.d.ts +5 -1
- package/dist/src/builtin/specialExpressions/loops.d.ts +9 -3
- package/dist/src/builtin/specialExpressions/or.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/qq.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/recur.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/throw.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/time.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/try.d.ts +6 -1
- package/dist/src/builtin/specialExpressions/when-first.d.ts +5 -1
- package/dist/src/builtin/specialExpressions/when-let.d.ts +5 -1
- package/dist/src/builtin/specialExpressions/when-not.d.ts +4 -1
- package/dist/src/builtin/specialExpressions/when.d.ts +4 -1
- package/dist/src/constants/constants.d.ts +5 -2
- package/dist/src/errors.d.ts +2 -1
- package/dist/src/evaluator/ContextStack.d.ts +5 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/parser/interface.d.ts +27 -32
- package/dist/src/removeCommentNodes/index.d.ts +11 -0
- package/dist/src/removeCommentNodes/removeCommentNodesFromSpecialExpression.d.ts +3 -0
- package/dist/src/tokenizer/index.d.ts +8 -1
- package/dist/src/tokenizer/interface.d.ts +15 -5
- package/dist/src/tokenizer/tokenizers.d.ts +3 -2
- package/dist/src/typeGuards/index.d.ts +8 -6
- package/dist/src/typeGuards/token.d.ts +1 -1
- package/dist/src/unparser/UnparseOptions.d.ts +15 -0
- package/dist/src/unparser/__tests__/testFormatter.d.ts +1 -0
- package/dist/src/unparser/unparse.d.ts +5 -0
- package/dist/src/unparser/unparseArrayLiteral.d.ts +3 -0
- package/dist/src/unparser/unparseBindings.d.ts +3 -0
- package/dist/src/unparser/unparseNormalExpression.d.ts +3 -0
- package/dist/src/unparser/unparseObjectLiteral.d.ts +3 -0
- package/dist/src/unparser/unparseParams.d.ts +17 -0
- package/dist/src/unparser/unparseSpecialExpression/index.d.ts +3 -0
- package/dist/src/unparser/unparseSpecialExpression/unparseCond.d.ts +3 -0
- package/dist/src/unparser/unparseSpecialExpression/unparseDo.d.ts +3 -0
- package/dist/src/unparser/unparseSpecialExpression/unparseIfLet.d.ts +3 -0
- package/dist/src/unparser/unparseSpecialExpression/unparseIfOrWhenLike.d.ts +6 -0
- package/dist/src/unparser/unparseSpecialExpression/unparseLet.d.ts +3 -0
- package/dist/src/unparser/utils.d.ts +5 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/symbols.d.ts +2 -2
- package/dist/testFramework.esm.js +6180 -4521
- package/dist/testFramework.esm.js.map +1 -1
- package/dist/testFramework.js +6180 -4521
- package/dist/testFramework.js.map +1 -1
- package/package.json +6 -5
- package/dist/cli/src/analyze/interface.d.ts +0 -12
- package/dist/src/analyze/interface.d.ts +0 -12
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { Any } from '../../interface';
|
|
2
|
+
import type { CommonSpecialExpressionNode } from '../../parser/interface';
|
|
2
3
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
3
|
-
export
|
|
4
|
+
export interface QqNode extends CommonSpecialExpressionNode<'??'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const qqSpecialExpression: BuiltinSpecialExpression<Any, QqNode>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import type { CommonSpecialExpressionNode } from '../../parser/interface';
|
|
1
2
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
2
|
-
export
|
|
3
|
+
export interface RecurNode extends CommonSpecialExpressionNode<'recur'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const recurSpecialExpression: BuiltinSpecialExpression<null, RecurNode>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import type { CommonSpecialExpressionNode } from '../../parser/interface';
|
|
1
2
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
2
|
-
export
|
|
3
|
+
export interface ThrowNode extends CommonSpecialExpressionNode<'throw'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const throwSpecialExpression: BuiltinSpecialExpression<null, ThrowNode>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { Any } from '../../interface';
|
|
2
|
+
import type { CommonSpecialExpressionNode } from '../../parser/interface';
|
|
2
3
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
3
|
-
export
|
|
4
|
+
export interface TimeNode extends CommonSpecialExpressionNode<'time!'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const timeSpecialExpression: BuiltinSpecialExpression<Any, TimeNode>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { Any } from '../../interface';
|
|
2
|
+
import type { AstNode, CommonSpecialExpressionNode, NameNode } from '../../parser/interface';
|
|
2
3
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
3
|
-
export
|
|
4
|
+
export interface TryNode extends CommonSpecialExpressionNode<'try'> {
|
|
5
|
+
e: NameNode;
|
|
6
|
+
ce: AstNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const trySpecialExpression: BuiltinSpecialExpression<Any, TryNode>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type { Any } from '../../interface';
|
|
2
|
+
import type { BindingNode, CommonSpecialExpressionNode } from '../../parser/interface';
|
|
2
3
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
3
|
-
export
|
|
4
|
+
export interface WhenFirstNode extends CommonSpecialExpressionNode<'when-first'> {
|
|
5
|
+
b: BindingNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const whenFirstSpecialExpression: BuiltinSpecialExpression<Any, WhenFirstNode>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type { Any } from '../../interface';
|
|
2
|
+
import type { BindingNode, CommonSpecialExpressionNode } from '../../parser/interface';
|
|
2
3
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
3
|
-
export
|
|
4
|
+
export interface WhenLetNode extends CommonSpecialExpressionNode<'when-let'> {
|
|
5
|
+
b: BindingNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const whenLetSpecialExpression: BuiltinSpecialExpression<Any, WhenLetNode>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { Any } from '../../interface';
|
|
2
|
+
import type { CommonSpecialExpressionNode } from '../../parser/interface';
|
|
2
3
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
3
|
-
export
|
|
4
|
+
export interface WhenNotNode extends CommonSpecialExpressionNode<'when-not'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const whenNotSpecialExpression: BuiltinSpecialExpression<Any, WhenNotNode>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { Any } from '../../interface';
|
|
2
|
+
import type { CommonSpecialExpressionNode } from '../../parser/interface';
|
|
2
3
|
import type { BuiltinSpecialExpression } from '../interface';
|
|
3
|
-
export
|
|
4
|
+
export interface WhenNode extends CommonSpecialExpressionNode<'when'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const whenSpecialExpression: BuiltinSpecialExpression<Any, WhenNode>;
|