@rcrsr/rill 0.15.0 → 0.17.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/README.md +37 -21
- package/dist/ast-nodes.d.ts +2 -13
- package/dist/ast-nodes.js +0 -1
- package/dist/ast-unions.d.ts +0 -1
- package/dist/ast-unions.js +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/error-classes.d.ts +0 -1
- package/dist/error-classes.js +0 -1
- package/dist/error-formatter.d.ts +0 -1
- package/dist/error-formatter.js +0 -1
- package/dist/error-registry.d.ts +0 -1
- package/dist/error-registry.js +32 -1
- package/dist/ext/crypto/index.d.ts +3 -4
- package/dist/ext/crypto/index.js +66 -64
- package/dist/ext/exec/index.d.ts +3 -4
- package/dist/ext/exec/index.js +17 -12
- package/dist/ext/exec/runner.d.ts +0 -1
- package/dist/ext/exec/runner.js +0 -1
- package/dist/ext/fetch/index.d.ts +3 -4
- package/dist/ext/fetch/index.js +23 -49
- package/dist/ext/fetch/request.d.ts +0 -1
- package/dist/ext/fetch/request.js +0 -1
- package/dist/ext/fs/index.d.ts +3 -4
- package/dist/ext/fs/index.js +268 -266
- package/dist/ext/fs/sandbox.d.ts +0 -1
- package/dist/ext/fs/sandbox.js +0 -1
- package/dist/ext/kv/index.d.ts +3 -4
- package/dist/ext/kv/index.js +216 -215
- package/dist/ext/kv/store.d.ts +0 -1
- package/dist/ext/kv/store.js +2 -2
- package/dist/ext-parse-bridge.d.ts +10 -0
- package/dist/ext-parse-bridge.js +10 -0
- package/dist/generated/introspection-data.d.ts +1 -2
- package/dist/generated/introspection-data.js +385 -297
- package/dist/generated/version-data.d.ts +1 -2
- package/dist/generated/version-data.js +2 -3
- package/dist/highlight-map.d.ts +0 -1
- package/dist/highlight-map.js +0 -1
- package/dist/index.d.ts +15 -5
- package/dist/index.js +14 -6
- package/dist/lexer/errors.d.ts +0 -1
- package/dist/lexer/errors.js +0 -1
- package/dist/lexer/helpers.d.ts +0 -1
- package/dist/lexer/helpers.js +0 -1
- package/dist/lexer/index.d.ts +0 -1
- package/dist/lexer/index.js +0 -1
- package/dist/lexer/operators.d.ts +0 -1
- package/dist/lexer/operators.js +0 -1
- package/dist/lexer/readers.d.ts +0 -1
- package/dist/lexer/readers.js +0 -1
- package/dist/lexer/state.d.ts +0 -1
- package/dist/lexer/state.js +0 -1
- package/dist/lexer/tokenizer.d.ts +0 -1
- package/dist/lexer/tokenizer.js +0 -1
- package/dist/parser/helpers.d.ts +0 -1
- package/dist/parser/helpers.js +0 -1
- package/dist/parser/index.d.ts +0 -1
- package/dist/parser/index.js +0 -1
- package/dist/parser/parser-collect.d.ts +0 -1
- package/dist/parser/parser-collect.js +0 -1
- package/dist/parser/parser-control.d.ts +0 -1
- package/dist/parser/parser-control.js +0 -1
- package/dist/parser/parser-expr.d.ts +0 -1
- package/dist/parser/parser-expr.js +0 -1
- package/dist/parser/parser-extract.d.ts +0 -1
- package/dist/parser/parser-extract.js +0 -1
- package/dist/parser/parser-functions.d.ts +0 -1
- package/dist/parser/parser-functions.js +0 -1
- package/dist/parser/parser-literals.d.ts +0 -1
- package/dist/parser/parser-literals.js +4 -2
- package/dist/parser/parser-script.d.ts +0 -1
- package/dist/parser/parser-script.js +0 -1
- package/dist/parser/parser-shape.d.ts +2 -3
- package/dist/parser/parser-shape.js +8 -52
- package/dist/parser/parser-types.d.ts +28 -2
- package/dist/parser/parser-types.js +76 -13
- package/dist/parser/parser-use.d.ts +0 -1
- package/dist/parser/parser-use.js +7 -2
- package/dist/parser/parser-variables.d.ts +0 -1
- package/dist/parser/parser-variables.js +0 -1
- package/dist/parser/parser.d.ts +0 -1
- package/dist/parser/parser.js +0 -1
- package/dist/parser/state.d.ts +0 -1
- package/dist/parser/state.js +0 -1
- package/dist/runtime/core/callable.d.ts +59 -20
- package/dist/runtime/core/callable.js +188 -39
- package/dist/runtime/core/context.d.ts +0 -12
- package/dist/runtime/core/context.js +77 -77
- package/dist/runtime/core/equals.d.ts +0 -1
- package/dist/runtime/core/equals.js +35 -3
- package/dist/runtime/core/eval/base.d.ts +0 -1
- package/dist/runtime/core/eval/base.js +0 -1
- package/dist/runtime/core/eval/evaluator.d.ts +0 -1
- package/dist/runtime/core/eval/evaluator.js +0 -1
- package/dist/runtime/core/eval/index.d.ts +2 -3
- package/dist/runtime/core/eval/index.js +11 -1
- package/dist/runtime/core/eval/mixins/annotations.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/annotations.js +0 -1
- package/dist/runtime/core/eval/mixins/closures.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/closures.js +92 -70
- package/dist/runtime/core/eval/mixins/collections.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/collections.js +9 -4
- package/dist/runtime/core/eval/mixins/control-flow.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/control-flow.js +0 -1
- package/dist/runtime/core/eval/mixins/conversion.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/conversion.js +196 -188
- package/dist/runtime/core/eval/mixins/core.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/core.js +2 -3
- package/dist/runtime/core/eval/mixins/expressions.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/expressions.js +35 -28
- package/dist/runtime/core/eval/mixins/extraction.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/extraction.js +8 -9
- package/dist/runtime/core/eval/mixins/list-dispatch.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/list-dispatch.js +0 -1
- package/dist/runtime/core/eval/mixins/literals.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/literals.js +6 -10
- package/dist/runtime/core/eval/mixins/types.d.ts +2 -1
- package/dist/runtime/core/eval/mixins/types.js +231 -261
- package/dist/runtime/core/eval/mixins/use.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/use.js +0 -1
- package/dist/runtime/core/eval/mixins/variables.d.ts +0 -1
- package/dist/runtime/core/eval/mixins/variables.js +16 -15
- package/dist/runtime/core/eval/types.d.ts +0 -1
- package/dist/runtime/core/eval/types.js +0 -1
- package/dist/runtime/core/execute.d.ts +0 -1
- package/dist/runtime/core/execute.js +0 -1
- package/dist/runtime/core/field-descriptor.d.ts +4 -5
- package/dist/runtime/core/field-descriptor.js +2 -2
- package/dist/runtime/core/introspection.d.ts +0 -1
- package/dist/runtime/core/introspection.js +6 -7
- package/dist/runtime/core/markers.d.ts +12 -0
- package/dist/runtime/core/markers.js +7 -0
- package/dist/runtime/core/resolvers.d.ts +0 -1
- package/dist/runtime/core/resolvers.js +0 -1
- package/dist/runtime/core/signals.d.ts +0 -1
- package/dist/runtime/core/signals.js +0 -1
- package/dist/runtime/core/type-registrations.d.ts +136 -0
- package/dist/runtime/core/type-registrations.js +749 -0
- package/dist/runtime/core/type-structures.d.ts +128 -0
- package/dist/runtime/core/type-structures.js +12 -0
- package/dist/runtime/core/types.d.ts +15 -4
- package/dist/runtime/core/types.js +0 -1
- package/dist/runtime/core/values.d.ts +88 -146
- package/dist/runtime/core/values.js +466 -470
- package/dist/runtime/ext/builtins.d.ts +0 -1
- package/dist/runtime/ext/builtins.js +125 -80
- package/dist/runtime/ext/extensions.d.ts +30 -125
- package/dist/runtime/ext/extensions.js +0 -94
- package/dist/runtime/ext/test-context.d.ts +28 -0
- package/dist/runtime/ext/test-context.js +154 -0
- package/dist/runtime/index.d.ts +22 -9
- package/dist/runtime/index.js +18 -5
- package/dist/signature-parser.d.ts +2 -3
- package/dist/signature-parser.js +19 -17
- package/dist/source-location.d.ts +0 -1
- package/dist/source-location.js +0 -1
- package/dist/token-types.d.ts +0 -1
- package/dist/token-types.js +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.js +0 -1
- package/dist/value-types.d.ts +15 -12
- package/dist/value-types.js +0 -1
- package/package.json +2 -1
- package/dist/ast-nodes.d.ts.map +0 -1
- package/dist/ast-nodes.js.map +0 -1
- package/dist/ast-unions.d.ts.map +0 -1
- package/dist/ast-unions.js.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/error-classes.d.ts.map +0 -1
- package/dist/error-classes.js.map +0 -1
- package/dist/error-formatter.d.ts.map +0 -1
- package/dist/error-formatter.js.map +0 -1
- package/dist/error-registry.d.ts.map +0 -1
- package/dist/error-registry.js.map +0 -1
- package/dist/ext/crypto/index.d.ts.map +0 -1
- package/dist/ext/crypto/index.js.map +0 -1
- package/dist/ext/exec/index.d.ts.map +0 -1
- package/dist/ext/exec/index.js.map +0 -1
- package/dist/ext/exec/runner.d.ts.map +0 -1
- package/dist/ext/exec/runner.js.map +0 -1
- package/dist/ext/fetch/index.d.ts.map +0 -1
- package/dist/ext/fetch/index.js.map +0 -1
- package/dist/ext/fetch/request.d.ts.map +0 -1
- package/dist/ext/fetch/request.js.map +0 -1
- package/dist/ext/fs/index.d.ts.map +0 -1
- package/dist/ext/fs/index.js.map +0 -1
- package/dist/ext/fs/sandbox.d.ts.map +0 -1
- package/dist/ext/fs/sandbox.js.map +0 -1
- package/dist/ext/kv/index.d.ts.map +0 -1
- package/dist/ext/kv/index.js.map +0 -1
- package/dist/ext/kv/store.d.ts.map +0 -1
- package/dist/ext/kv/store.js.map +0 -1
- package/dist/generated/introspection-data.d.ts.map +0 -1
- package/dist/generated/introspection-data.js.map +0 -1
- package/dist/generated/version-data.d.ts.map +0 -1
- package/dist/generated/version-data.js.map +0 -1
- package/dist/highlight-map.d.ts.map +0 -1
- package/dist/highlight-map.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lexer/errors.d.ts.map +0 -1
- package/dist/lexer/errors.js.map +0 -1
- package/dist/lexer/helpers.d.ts.map +0 -1
- package/dist/lexer/helpers.js.map +0 -1
- package/dist/lexer/index.d.ts.map +0 -1
- package/dist/lexer/index.js.map +0 -1
- package/dist/lexer/operators.d.ts.map +0 -1
- package/dist/lexer/operators.js.map +0 -1
- package/dist/lexer/readers.d.ts.map +0 -1
- package/dist/lexer/readers.js.map +0 -1
- package/dist/lexer/state.d.ts.map +0 -1
- package/dist/lexer/state.js.map +0 -1
- package/dist/lexer/tokenizer.d.ts.map +0 -1
- package/dist/lexer/tokenizer.js.map +0 -1
- package/dist/parser/helpers.d.ts.map +0 -1
- package/dist/parser/helpers.js.map +0 -1
- package/dist/parser/index.d.ts.map +0 -1
- package/dist/parser/index.js.map +0 -1
- package/dist/parser/parser-collect.d.ts.map +0 -1
- package/dist/parser/parser-collect.js.map +0 -1
- package/dist/parser/parser-control.d.ts.map +0 -1
- package/dist/parser/parser-control.js.map +0 -1
- package/dist/parser/parser-expr.d.ts.map +0 -1
- package/dist/parser/parser-expr.js.map +0 -1
- package/dist/parser/parser-extract.d.ts.map +0 -1
- package/dist/parser/parser-extract.js.map +0 -1
- package/dist/parser/parser-functions.d.ts.map +0 -1
- package/dist/parser/parser-functions.js.map +0 -1
- package/dist/parser/parser-literals.d.ts.map +0 -1
- package/dist/parser/parser-literals.js.map +0 -1
- package/dist/parser/parser-script.d.ts.map +0 -1
- package/dist/parser/parser-script.js.map +0 -1
- package/dist/parser/parser-shape.d.ts.map +0 -1
- package/dist/parser/parser-shape.js.map +0 -1
- package/dist/parser/parser-types.d.ts.map +0 -1
- package/dist/parser/parser-types.js.map +0 -1
- package/dist/parser/parser-use.d.ts.map +0 -1
- package/dist/parser/parser-use.js.map +0 -1
- package/dist/parser/parser-variables.d.ts.map +0 -1
- package/dist/parser/parser-variables.js.map +0 -1
- package/dist/parser/parser.d.ts.map +0 -1
- package/dist/parser/parser.js.map +0 -1
- package/dist/parser/state.d.ts.map +0 -1
- package/dist/parser/state.js.map +0 -1
- package/dist/runtime/core/callable.d.ts.map +0 -1
- package/dist/runtime/core/callable.js.map +0 -1
- package/dist/runtime/core/context.d.ts.map +0 -1
- package/dist/runtime/core/context.js.map +0 -1
- package/dist/runtime/core/equals.d.ts.map +0 -1
- package/dist/runtime/core/equals.js.map +0 -1
- package/dist/runtime/core/eval/base.d.ts.map +0 -1
- package/dist/runtime/core/eval/base.js.map +0 -1
- package/dist/runtime/core/eval/evaluator.d.ts.map +0 -1
- package/dist/runtime/core/eval/evaluator.js.map +0 -1
- package/dist/runtime/core/eval/index.d.ts.map +0 -1
- package/dist/runtime/core/eval/index.js.map +0 -1
- package/dist/runtime/core/eval/mixins/annotations.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/annotations.js.map +0 -1
- package/dist/runtime/core/eval/mixins/closures.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/closures.js.map +0 -1
- package/dist/runtime/core/eval/mixins/collections.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/collections.js.map +0 -1
- package/dist/runtime/core/eval/mixins/control-flow.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/control-flow.js.map +0 -1
- package/dist/runtime/core/eval/mixins/conversion.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/conversion.js.map +0 -1
- package/dist/runtime/core/eval/mixins/core.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/core.js.map +0 -1
- package/dist/runtime/core/eval/mixins/expressions.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/expressions.js.map +0 -1
- package/dist/runtime/core/eval/mixins/extraction.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/extraction.js.map +0 -1
- package/dist/runtime/core/eval/mixins/list-dispatch.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/list-dispatch.js.map +0 -1
- package/dist/runtime/core/eval/mixins/literals.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/literals.js.map +0 -1
- package/dist/runtime/core/eval/mixins/types.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/types.js.map +0 -1
- package/dist/runtime/core/eval/mixins/use.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/use.js.map +0 -1
- package/dist/runtime/core/eval/mixins/variables.d.ts.map +0 -1
- package/dist/runtime/core/eval/mixins/variables.js.map +0 -1
- package/dist/runtime/core/eval/types.d.ts.map +0 -1
- package/dist/runtime/core/eval/types.js.map +0 -1
- package/dist/runtime/core/execute.d.ts.map +0 -1
- package/dist/runtime/core/execute.js.map +0 -1
- package/dist/runtime/core/field-descriptor.d.ts.map +0 -1
- package/dist/runtime/core/field-descriptor.js.map +0 -1
- package/dist/runtime/core/introspection.d.ts.map +0 -1
- package/dist/runtime/core/introspection.js.map +0 -1
- package/dist/runtime/core/resolvers.d.ts.map +0 -1
- package/dist/runtime/core/resolvers.js.map +0 -1
- package/dist/runtime/core/signals.d.ts.map +0 -1
- package/dist/runtime/core/signals.js.map +0 -1
- package/dist/runtime/core/types.d.ts.map +0 -1
- package/dist/runtime/core/types.js.map +0 -1
- package/dist/runtime/core/values.d.ts.map +0 -1
- package/dist/runtime/core/values.js.map +0 -1
- package/dist/runtime/ext/builtins.d.ts.map +0 -1
- package/dist/runtime/ext/builtins.js.map +0 -1
- package/dist/runtime/ext/extensions.d.ts.map +0 -1
- package/dist/runtime/ext/extensions.js.map +0 -1
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js.map +0 -1
- package/dist/signature-parser.d.ts.map +0 -1
- package/dist/signature-parser.js.map +0 -1
- package/dist/source-location.d.ts.map +0 -1
- package/dist/source-location.js.map +0 -1
- package/dist/token-types.d.ts.map +0 -1
- package/dist/token-types.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/value-types.d.ts.map +0 -1
- package/dist/value-types.js.map +0 -1
|
@@ -10,9 +10,8 @@ export interface VersionInfo {
|
|
|
10
10
|
/**
|
|
11
11
|
* Version string from package.json
|
|
12
12
|
*/
|
|
13
|
-
export declare const VERSION = "0.
|
|
13
|
+
export declare const VERSION = "0.17.0";
|
|
14
14
|
/**
|
|
15
15
|
* Parsed version components
|
|
16
16
|
*/
|
|
17
17
|
export declare const VERSION_INFO: VersionInfo;
|
|
18
|
-
//# sourceMappingURL=version-data.d.ts.map
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Version string from package.json
|
|
5
5
|
*/
|
|
6
|
-
export const VERSION = '0.
|
|
6
|
+
export const VERSION = '0.17.0';
|
|
7
7
|
/**
|
|
8
8
|
* Parsed version components
|
|
9
9
|
*/
|
|
10
10
|
export const VERSION_INFO = {
|
|
11
11
|
major: 0,
|
|
12
|
-
minor:
|
|
12
|
+
minor: 17,
|
|
13
13
|
patch: 0,
|
|
14
14
|
prerelease: undefined,
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=version-data.js.map
|
package/dist/highlight-map.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { TokenType } from './types.js';
|
|
2
2
|
export type HighlightCategory = 'keyword' | 'operator' | 'string' | 'number' | 'bool' | 'comment' | 'variableName' | 'punctuation' | 'bracket' | 'meta';
|
|
3
3
|
export declare const TOKEN_HIGHLIGHT_MAP: ReadonlyMap<TokenType, HighlightCategory>;
|
|
4
|
-
//# sourceMappingURL=highlight-map.d.ts.map
|
package/dist/highlight-map.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5,12 +5,22 @@
|
|
|
5
5
|
export { LexerError, tokenize, type TokenizeOptions } from './lexer/index.js';
|
|
6
6
|
export { parse, parseWithRecovery } from './parser/index.js';
|
|
7
7
|
export type { ParseResult, RecoveryErrorNode, ErrorNode } from './types.js';
|
|
8
|
-
export { anyTypeValue, type ApplicationCallable, BreakSignal, callable, type CallableFn, type CallFrame, type CaptureEvent, type ConfigFieldDescriptor, createRuntimeContext, createStepper, createTuple, createVector, type DocumentationCoverageResult, emitExtensionEvent,
|
|
9
|
-
/** @deprecated Use
|
|
10
|
-
export type {
|
|
8
|
+
export { anyTypeValue, type ApplicationCallable, BreakSignal, buildFieldDescriptor, callable, type CallableFn, type CallFrame, commonType, type CaptureEvent, type ConfigFieldDescriptor, contextResolver, createRuntimeContext, createStepper, createTestContext, createTuple, createVector, type DocumentationCoverageResult, emitExtensionEvent, type ErrorEvent, execute, type ExecutionResult, type ExecutionStepper, ExtensionBindingError, type ExtensionConfigSchema, type ExtensionEvent, type ExtensionFactory, type ExtensionFactoryResult, type ExtensionManifest, extResolver, formatStructure, type FsExtensionContract, type FunctionMetadata, type FunctionReturnEvent, generateManifest, getCallStack, getDocumentationCoverage, getFunctions, getLanguageReference, type HostCallEvent, inferElementType, inferStructure, inferType, invokeCallable, isApplicationCallable, isCallable, isDict, isIterator, isReservedMethod, isRuntimeCallable, isScriptCallable, isTuple, isTypeValue, isVector, type KvExtensionContract, moduleResolver, type NativeArray, type NativePlainObject, type NativeResult, type NativeValue, type ObservabilityCallbacks, type ParamMetadata, paramToFieldDef, popCallFrame, pushCallFrame, RESERVED_DICT_METHODS, type ResolverResult, ReturnSignal, type RillCallable, type RillFieldDef, type RillFunction, type RillIterator, type RillParam, type RillTuple, type RillTypeValue, type RillValue, type RillVector, type RuntimeCallable, type RuntimeCallbacks, type RuntimeContext, type RuntimeOptions, type SchemaEntry, type SchemeResolver, type ScriptCallable, type StepEndEvent, type StepResult, type StepStartEvent, structureEquals, structureMatches, structureToTypeValue, toCallable, toNative, type TypeDefinition, type TypeProtocol, type TypeStructure, VERSION, VERSION_INFO, type VersionInfo, } from './runtime/index.js';
|
|
9
|
+
/** @deprecated Use TypeStructure instead. Will be removed in the next major version. */
|
|
10
|
+
export type { RillType } from './runtime/index.js';
|
|
11
|
+
/** @deprecated Use formatStructure instead. */
|
|
12
|
+
export { formatStructuralType } from './runtime/index.js';
|
|
13
|
+
/** @deprecated Use inferStructure instead. */
|
|
14
|
+
export { inferStructuralType } from './runtime/index.js';
|
|
15
|
+
/** @deprecated Use isIterator instead. */
|
|
16
|
+
export { isRillIterator } from './runtime/index.js';
|
|
17
|
+
/** @deprecated Use structureToTypeValue instead. */
|
|
18
|
+
export { rillTypeToTypeValue } from './runtime/index.js';
|
|
19
|
+
/** @deprecated Use structureEquals instead. */
|
|
20
|
+
export { structuralTypeEquals } from './runtime/index.js';
|
|
21
|
+
/** @deprecated Use structureMatches instead. */
|
|
22
|
+
export { structuralTypeMatches } from './runtime/index.js';
|
|
11
23
|
export { type ErrorCategory, type ErrorDefinition, type ErrorSeverity, ERROR_REGISTRY, renderMessage, getHelpUrl, createError, } from './types.js';
|
|
12
24
|
export { formatRillError, formatRillErrorJson, type FormatErrorOptions, type FormatErrorJsonOptions, type SourceMap, } from './error-formatter.js';
|
|
13
|
-
export { VALID_TYPE_NAMES } from './constants.js';
|
|
14
25
|
export { type HighlightCategory, TOKEN_HIGHLIGHT_MAP, } from './highlight-map.js';
|
|
15
26
|
export * from './types.js';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { LexerError, tokenize } from './lexer/index.js';
|
|
6
6
|
export { parse, parseWithRecovery } from './parser/index.js';
|
|
7
|
-
export { anyTypeValue, BreakSignal, callable, createRuntimeContext, createStepper, createTuple, createVector, emitExtensionEvent,
|
|
7
|
+
export { anyTypeValue, BreakSignal, buildFieldDescriptor, callable, commonType, contextResolver, createRuntimeContext, createStepper, createTestContext, createTuple, createVector, emitExtensionEvent, execute, ExtensionBindingError, extResolver, formatStructure, generateManifest, getCallStack, getDocumentationCoverage, getFunctions, getLanguageReference, inferElementType, inferStructure, inferType, invokeCallable, isApplicationCallable, isCallable, isDict, isIterator, isReservedMethod, isRuntimeCallable, isScriptCallable, isTuple, isTypeValue, isVector, moduleResolver, paramToFieldDef, popCallFrame, pushCallFrame, RESERVED_DICT_METHODS, ReturnSignal, structureEquals, structureMatches, structureToTypeValue, toCallable, toNative, VERSION, VERSION_INFO, } from './runtime/index.js';
|
|
8
|
+
// Deprecated aliases — old names kept for one release
|
|
9
|
+
/** @deprecated Use formatStructure instead. */
|
|
10
|
+
export { formatStructuralType } from './runtime/index.js';
|
|
11
|
+
/** @deprecated Use inferStructure instead. */
|
|
12
|
+
export { inferStructuralType } from './runtime/index.js';
|
|
13
|
+
/** @deprecated Use isIterator instead. */
|
|
14
|
+
export { isRillIterator } from './runtime/index.js';
|
|
15
|
+
/** @deprecated Use structureToTypeValue instead. */
|
|
16
|
+
export { rillTypeToTypeValue } from './runtime/index.js';
|
|
17
|
+
/** @deprecated Use structureEquals instead. */
|
|
18
|
+
export { structuralTypeEquals } from './runtime/index.js';
|
|
19
|
+
/** @deprecated Use structureMatches instead. */
|
|
20
|
+
export { structuralTypeMatches } from './runtime/index.js';
|
|
8
21
|
// ============================================================
|
|
9
22
|
// ERROR TAXONOMY
|
|
10
23
|
// ============================================================
|
|
@@ -14,12 +27,7 @@ export { ERROR_REGISTRY, renderMessage, getHelpUrl, createError, } from './types
|
|
|
14
27
|
// ============================================================
|
|
15
28
|
export { formatRillError, formatRillErrorJson, } from './error-formatter.js';
|
|
16
29
|
// ============================================================
|
|
17
|
-
// CONSTANTS
|
|
18
|
-
// ============================================================
|
|
19
|
-
export { VALID_TYPE_NAMES } from './constants.js';
|
|
20
|
-
// ============================================================
|
|
21
30
|
// SYNTAX HIGHLIGHTING
|
|
22
31
|
// ============================================================
|
|
23
32
|
export { TOKEN_HIGHLIGHT_MAP, } from './highlight-map.js';
|
|
24
33
|
export * from './types.js';
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/dist/lexer/errors.d.ts
CHANGED
package/dist/lexer/errors.js
CHANGED
package/dist/lexer/helpers.d.ts
CHANGED
|
@@ -11,4 +11,3 @@ export declare function isWhitespace(ch: string): boolean;
|
|
|
11
11
|
export declare function makeToken(type: TokenType, value: string, start: SourceLocation, end: SourceLocation): Token;
|
|
12
12
|
/** Advance n times and return a token */
|
|
13
13
|
export declare function advanceAndMakeToken(state: LexerState, n: number, type: TokenType, value: string, start: SourceLocation): Token;
|
|
14
|
-
//# sourceMappingURL=helpers.d.ts.map
|
package/dist/lexer/helpers.js
CHANGED
package/dist/lexer/index.d.ts
CHANGED
package/dist/lexer/index.js
CHANGED
package/dist/lexer/operators.js
CHANGED
package/dist/lexer/readers.d.ts
CHANGED
|
@@ -26,4 +26,3 @@ export declare function readTripleQuoteString(state: LexerState): Token;
|
|
|
26
26
|
export declare function readNumber(state: LexerState): Token;
|
|
27
27
|
export declare function readIdentifier(state: LexerState): Token;
|
|
28
28
|
export declare function readVariable(state: LexerState): Token;
|
|
29
|
-
//# sourceMappingURL=readers.d.ts.map
|
package/dist/lexer/readers.js
CHANGED
package/dist/lexer/state.d.ts
CHANGED
|
@@ -17,4 +17,3 @@ export declare function peek(state: LexerState, offset?: number): string;
|
|
|
17
17
|
export declare function peekString(state: LexerState, length: number): string;
|
|
18
18
|
export declare function advance(state: LexerState): string;
|
|
19
19
|
export declare function isAtEnd(state: LexerState): boolean;
|
|
20
|
-
//# sourceMappingURL=state.d.ts.map
|
package/dist/lexer/state.js
CHANGED
package/dist/lexer/tokenizer.js
CHANGED
package/dist/parser/helpers.d.ts
CHANGED
package/dist/parser/helpers.js
CHANGED
package/dist/parser/index.d.ts
CHANGED
|
@@ -49,4 +49,3 @@ export declare function parseWithRecovery(source: string): ParseResult;
|
|
|
49
49
|
export { createParserState, type ParserState, advance, check, current, expect, skipNewlines, isAtEnd, } from './state.js';
|
|
50
50
|
export { parseTypeRef } from './parser-types.js';
|
|
51
51
|
export { Parser } from './parser.js';
|
|
52
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/parser/index.js
CHANGED
|
@@ -192,4 +192,3 @@ Parser.prototype.parseSliceBound = function () {
|
|
|
192
192
|
}
|
|
193
193
|
throw new ParseError('RILL-P001', `Expected slice bound (number, variable, or grouped expression), got: ${current(this.state).value}`, current(this.state).span.start);
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=parser-extract.js.map
|
|
@@ -525,7 +525,10 @@ Parser.prototype.parseClosureParam = function () {
|
|
|
525
525
|
if (check(this.state, TOKEN_TYPES.COLON)) {
|
|
526
526
|
advance(this.state);
|
|
527
527
|
skipNewlines(this.state);
|
|
528
|
-
typeRef = parseTypeRef(this.state, {
|
|
528
|
+
typeRef = parseTypeRef(this.state, {
|
|
529
|
+
allowTrailingPipe: true,
|
|
530
|
+
parseLiteral: () => this.parseLiteral(),
|
|
531
|
+
});
|
|
529
532
|
}
|
|
530
533
|
skipNewlines(this.state);
|
|
531
534
|
if (check(this.state, TOKEN_TYPES.ASSIGN)) {
|
|
@@ -702,4 +705,3 @@ Parser.prototype.parseCollectionLiteral = function (collectionType) {
|
|
|
702
705
|
}
|
|
703
706
|
return { type: 'OrderedLiteral', entries, span };
|
|
704
707
|
};
|
|
705
|
-
//# sourceMappingURL=parser-literals.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parser Extension: Type Constructor Parsing
|
|
3
3
|
* type-constructor = ("list" | "dict" | "tuple" | "ordered") "(" [type-arg-list] ")" ;
|
|
4
|
-
* type-arg-list =
|
|
5
|
-
*
|
|
4
|
+
* type-arg-list = field-arg ("," field-arg)* [","] ;
|
|
5
|
+
* field-arg = identifier ":" type-ref | type-ref ;
|
|
6
6
|
*/
|
|
7
7
|
import type { TypeConstructorNode } from '../types.js';
|
|
8
8
|
declare module './parser.js' {
|
|
@@ -10,4 +10,3 @@ declare module './parser.js' {
|
|
|
10
10
|
parseTypeConstructor(constructorName: string): TypeConstructorNode;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=parser-shape.d.ts.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parser Extension: Type Constructor Parsing
|
|
3
3
|
* type-constructor = ("list" | "dict" | "tuple" | "ordered") "(" [type-arg-list] ")" ;
|
|
4
|
-
* type-arg-list =
|
|
5
|
-
*
|
|
4
|
+
* type-arg-list = field-arg ("," field-arg)* [","] ;
|
|
5
|
+
* field-arg = identifier ":" type-ref | type-ref ;
|
|
6
6
|
*/
|
|
7
7
|
import { Parser } from './parser.js';
|
|
8
8
|
import { ParseError, TOKEN_TYPES } from '../types.js';
|
|
9
|
-
import {
|
|
9
|
+
import { advance, expect, current, makeSpan } from './state.js';
|
|
10
|
+
import { parseFieldArgList } from './parser-types.js';
|
|
10
11
|
// ============================================================
|
|
11
12
|
// TYPE CONSTRUCTOR PARSING
|
|
12
13
|
// ============================================================
|
|
@@ -25,20 +26,10 @@ Parser.prototype.parseTypeConstructor = function (constructorName) {
|
|
|
25
26
|
// Consume the constructor name identifier token
|
|
26
27
|
advance(this.state);
|
|
27
28
|
expect(this.state, TOKEN_TYPES.LPAREN, 'Expected (');
|
|
28
|
-
|
|
29
|
-
const args =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
skipNewlines(this.state);
|
|
33
|
-
while (check(this.state, TOKEN_TYPES.COMMA)) {
|
|
34
|
-
advance(this.state);
|
|
35
|
-
skipNewlines(this.state);
|
|
36
|
-
if (check(this.state, TOKEN_TYPES.RPAREN))
|
|
37
|
-
break; // trailing comma
|
|
38
|
-
args.push(parseTypeArg(this));
|
|
39
|
-
skipNewlines(this.state);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
29
|
+
const parseLiteral = () => this.parseLiteral();
|
|
30
|
+
const args = parseFieldArgList(this.state, {
|
|
31
|
+
parseLiteral,
|
|
32
|
+
});
|
|
42
33
|
const rparen = expect(this.state, TOKEN_TYPES.RPAREN, 'Expected )', 'RILL-P005');
|
|
43
34
|
return {
|
|
44
35
|
type: 'TypeConstructor',
|
|
@@ -47,38 +38,3 @@ Parser.prototype.parseTypeConstructor = function (constructorName) {
|
|
|
47
38
|
span: makeSpan(start, rparen.span.end),
|
|
48
39
|
};
|
|
49
40
|
};
|
|
50
|
-
// ============================================================
|
|
51
|
-
// TYPE ARG PARSING (internal)
|
|
52
|
-
// ============================================================
|
|
53
|
-
/**
|
|
54
|
-
* Parse a single type argument: `identifier ":" expression` (named) or `expression` (positional).
|
|
55
|
-
* Lookahead: if current is IDENTIFIER and next is COLON, parse as named arg.
|
|
56
|
-
* Otherwise parse as positional.
|
|
57
|
-
*/
|
|
58
|
-
function parseTypeArg(parser) {
|
|
59
|
-
// Named arg: identifier ":" expression [= literal]
|
|
60
|
-
if (check(parser.state, TOKEN_TYPES.IDENTIFIER) &&
|
|
61
|
-
peek(parser.state, 1).type === TOKEN_TYPES.COLON) {
|
|
62
|
-
const nameToken = advance(parser.state); // consume identifier
|
|
63
|
-
advance(parser.state); // consume ':'
|
|
64
|
-
skipNewlines(parser.state);
|
|
65
|
-
const value = parser.parseExpression();
|
|
66
|
-
if (check(parser.state, TOKEN_TYPES.ASSIGN)) {
|
|
67
|
-
advance(parser.state); // consume =
|
|
68
|
-
skipNewlines(parser.state);
|
|
69
|
-
const defaultValue = parser.parseLiteral();
|
|
70
|
-
return { kind: 'named', name: nameToken.value, value, defaultValue };
|
|
71
|
-
}
|
|
72
|
-
return { kind: 'named', name: nameToken.value, value };
|
|
73
|
-
}
|
|
74
|
-
// Positional arg: expression [= literal]
|
|
75
|
-
const value = parser.parseExpression();
|
|
76
|
-
if (check(parser.state, TOKEN_TYPES.ASSIGN)) {
|
|
77
|
-
advance(parser.state); // consume =
|
|
78
|
-
skipNewlines(parser.state);
|
|
79
|
-
const defaultValue = parser.parseLiteral();
|
|
80
|
-
return { kind: 'positional', value, defaultValue };
|
|
81
|
-
}
|
|
82
|
-
return { kind: 'positional', value };
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=parser-shape.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* parameterized) or a dynamic $variable.
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
import { type TypeRef } from '../types.js';
|
|
7
|
+
import { type TypeRef, type FieldArg, type LiteralNode } from '../types.js';
|
|
8
8
|
import { type ParserState } from './state.js';
|
|
9
9
|
/**
|
|
10
10
|
* Parse a type reference from the current position in the token stream.
|
|
@@ -33,5 +33,31 @@ import { type ParserState } from './state.js';
|
|
|
33
33
|
*/
|
|
34
34
|
export declare function parseTypeRef(state: ParserState, opts?: {
|
|
35
35
|
allowTrailingPipe?: boolean;
|
|
36
|
+
parseLiteral?: () => LiteralNode;
|
|
36
37
|
}): TypeRef;
|
|
37
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Parse a comma-separated list of field arguments between `(` and `)`.
|
|
40
|
+
*
|
|
41
|
+
* Caller has already consumed the opening `(`. This function parses zero
|
|
42
|
+
* or more arguments up to the closing `)` but does NOT consume it.
|
|
43
|
+
*
|
|
44
|
+
* Supports:
|
|
45
|
+
* - Named args: `name: type` → `{ name, value }`
|
|
46
|
+
* - Positional args: `type` → `{ value }`
|
|
47
|
+
* - Default values: `= literal` → `{ ..., defaultValue }` (when parseLiteral provided)
|
|
48
|
+
* - Union types in value position via `parseTypeRef`
|
|
49
|
+
* - Trailing commas before `)`
|
|
50
|
+
*
|
|
51
|
+
* Named arg detection: IDENTIFIER followed by COLON lookahead.
|
|
52
|
+
*
|
|
53
|
+
* @param state - Parser state (positioned after opening paren)
|
|
54
|
+
* @param opts - Optional parseLiteral callback for default value support
|
|
55
|
+
*
|
|
56
|
+
* @throws ParseError RILL-P014 if token after arg is not `,` or `)` (EC-1)
|
|
57
|
+
* @throws ParseError RILL-P014 if missing closing `)` (EC-2)
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare function parseFieldArgList(state: ParserState, opts?: {
|
|
62
|
+
parseLiteral?: () => LiteralNode;
|
|
63
|
+
}): FieldArg[];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
import { TOKEN_TYPES, ParseError, } from '../types.js';
|
|
8
|
-
import { check, advance, expect, current, peek, } from './state.js';
|
|
8
|
+
import { check, advance, expect, current, peek, skipNewlines, } from './state.js';
|
|
9
9
|
import { VALID_TYPE_NAMES, parseTypeName } from './helpers.js';
|
|
10
10
|
/**
|
|
11
11
|
* Parse a type reference from the current position in the token stream.
|
|
@@ -33,7 +33,7 @@ import { VALID_TYPE_NAMES, parseTypeName } from './helpers.js';
|
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
35
35
|
export function parseTypeRef(state, opts) {
|
|
36
|
-
const first = parseSingleType(state);
|
|
36
|
+
const first = parseSingleType(state, opts);
|
|
37
37
|
// Union accumulation: collect additional members after each "|"
|
|
38
38
|
if (!check(state, TOKEN_TYPES.PIPE_BAR)) {
|
|
39
39
|
return first;
|
|
@@ -75,7 +75,7 @@ export function parseTypeRef(state, opts) {
|
|
|
75
75
|
throw new ParseError('RILL-P011', "Expected type name after '|'", current(state).span.start);
|
|
76
76
|
}
|
|
77
77
|
advance(state); // consume "|"
|
|
78
|
-
const next = parseSingleType(state);
|
|
78
|
+
const next = parseSingleType(state, opts);
|
|
79
79
|
// Flatten nested unions
|
|
80
80
|
if (next.kind === 'union') {
|
|
81
81
|
members.push(...next.members);
|
|
@@ -97,7 +97,19 @@ export function parseTypeRef(state, opts) {
|
|
|
97
97
|
* Grammar: `single-type = "$" identifier | type-name [ "(" type-ref-arg-list ")" ]`
|
|
98
98
|
* @internal
|
|
99
99
|
*/
|
|
100
|
-
function parseSingleType(state) {
|
|
100
|
+
function parseSingleType(state, opts) {
|
|
101
|
+
// Zero-param closure type: || :returnType or bare ||
|
|
102
|
+
if (check(state, TOKEN_TYPES.OR)) {
|
|
103
|
+
advance(state); // consume || (OR token)
|
|
104
|
+
// Check for :returnType
|
|
105
|
+
if (check(state, TOKEN_TYPES.COLON)) {
|
|
106
|
+
advance(state); // consume :
|
|
107
|
+
const ret = parseSingleType(state, opts);
|
|
108
|
+
return { kind: 'static', typeName: 'closure', args: [{ value: ret }] };
|
|
109
|
+
}
|
|
110
|
+
// Bare || without :returnType — equivalent to 'closure'
|
|
111
|
+
return { kind: 'static', typeName: 'closure' };
|
|
112
|
+
}
|
|
101
113
|
if (check(state, TOKEN_TYPES.DOLLAR)) {
|
|
102
114
|
advance(state); // consume $
|
|
103
115
|
const nameToken = expect(state, TOKEN_TYPES.IDENTIFIER, 'Expected variable name after $');
|
|
@@ -109,7 +121,39 @@ function parseSingleType(state) {
|
|
|
109
121
|
return { kind: 'static', typeName };
|
|
110
122
|
}
|
|
111
123
|
advance(state); // consume "("
|
|
124
|
+
const args = parseFieldArgList(state, opts?.parseLiteral ? { parseLiteral: opts.parseLiteral } : undefined);
|
|
125
|
+
advance(state); // consume ")"
|
|
126
|
+
return { kind: 'static', typeName, args };
|
|
127
|
+
}
|
|
128
|
+
// ============================================================
|
|
129
|
+
// FIELD ARG LIST PARSING
|
|
130
|
+
// ============================================================
|
|
131
|
+
/**
|
|
132
|
+
* Parse a comma-separated list of field arguments between `(` and `)`.
|
|
133
|
+
*
|
|
134
|
+
* Caller has already consumed the opening `(`. This function parses zero
|
|
135
|
+
* or more arguments up to the closing `)` but does NOT consume it.
|
|
136
|
+
*
|
|
137
|
+
* Supports:
|
|
138
|
+
* - Named args: `name: type` → `{ name, value }`
|
|
139
|
+
* - Positional args: `type` → `{ value }`
|
|
140
|
+
* - Default values: `= literal` → `{ ..., defaultValue }` (when parseLiteral provided)
|
|
141
|
+
* - Union types in value position via `parseTypeRef`
|
|
142
|
+
* - Trailing commas before `)`
|
|
143
|
+
*
|
|
144
|
+
* Named arg detection: IDENTIFIER followed by COLON lookahead.
|
|
145
|
+
*
|
|
146
|
+
* @param state - Parser state (positioned after opening paren)
|
|
147
|
+
* @param opts - Optional parseLiteral callback for default value support
|
|
148
|
+
*
|
|
149
|
+
* @throws ParseError RILL-P014 if token after arg is not `,` or `)` (EC-1)
|
|
150
|
+
* @throws ParseError RILL-P014 if missing closing `)` (EC-2)
|
|
151
|
+
*
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
export function parseFieldArgList(state, opts) {
|
|
112
155
|
const args = [];
|
|
156
|
+
skipNewlines(state);
|
|
113
157
|
// Parse arg list: allow empty "()" and trailing commas
|
|
114
158
|
while (!check(state, TOKEN_TYPES.RPAREN)) {
|
|
115
159
|
// Check for named arg: identifier ":" type-ref
|
|
@@ -120,28 +164,47 @@ function parseSingleType(state) {
|
|
|
120
164
|
const name = tok.value;
|
|
121
165
|
advance(state); // consume identifier
|
|
122
166
|
advance(state); // consume ":"
|
|
123
|
-
|
|
124
|
-
|
|
167
|
+
skipNewlines(state);
|
|
168
|
+
const typeRefOpts = opts?.parseLiteral
|
|
169
|
+
? { parseLiteral: opts.parseLiteral }
|
|
170
|
+
: undefined;
|
|
171
|
+
const value = parseTypeRef(state, typeRefOpts);
|
|
172
|
+
const arg = { name, value };
|
|
173
|
+
if (opts?.parseLiteral && check(state, TOKEN_TYPES.ASSIGN)) {
|
|
174
|
+
advance(state); // consume =
|
|
175
|
+
skipNewlines(state);
|
|
176
|
+
arg.defaultValue = opts.parseLiteral();
|
|
177
|
+
}
|
|
178
|
+
args.push(arg);
|
|
125
179
|
}
|
|
126
180
|
else {
|
|
127
181
|
// Positional arg: type-ref
|
|
128
|
-
const
|
|
129
|
-
|
|
182
|
+
const typeRefOpts = opts?.parseLiteral
|
|
183
|
+
? { parseLiteral: opts.parseLiteral }
|
|
184
|
+
: undefined;
|
|
185
|
+
const value = parseTypeRef(state, typeRefOpts);
|
|
186
|
+
const arg = { value };
|
|
187
|
+
if (opts?.parseLiteral && check(state, TOKEN_TYPES.ASSIGN)) {
|
|
188
|
+
advance(state); // consume =
|
|
189
|
+
skipNewlines(state);
|
|
190
|
+
arg.defaultValue = opts.parseLiteral();
|
|
191
|
+
}
|
|
192
|
+
args.push(arg);
|
|
130
193
|
}
|
|
194
|
+
skipNewlines(state);
|
|
131
195
|
// Consume trailing or separating comma
|
|
132
196
|
if (check(state, TOKEN_TYPES.COMMA)) {
|
|
133
197
|
advance(state);
|
|
198
|
+
skipNewlines(state);
|
|
134
199
|
}
|
|
135
200
|
else if (!check(state, TOKEN_TYPES.RPAREN)) {
|
|
136
|
-
// Neither comma nor closing paren — malformed arg list (EC-
|
|
201
|
+
// Neither comma nor closing paren — malformed arg list (EC-1)
|
|
137
202
|
throw new ParseError('RILL-P014', "Expected ',' or ')' in type argument list", current(state).span.start);
|
|
138
203
|
}
|
|
139
204
|
}
|
|
140
|
-
//
|
|
205
|
+
// Verify closing ")" is present (EC-2)
|
|
141
206
|
if (!check(state, TOKEN_TYPES.RPAREN)) {
|
|
142
207
|
throw new ParseError('RILL-P014', "Expected ')' to close type argument list", current(state).span.start);
|
|
143
208
|
}
|
|
144
|
-
|
|
145
|
-
return { kind: 'static', typeName, args };
|
|
209
|
+
return args;
|
|
146
210
|
}
|
|
147
|
-
//# sourceMappingURL=parser-types.js.map
|