@mojir/lits
Version:
Lits is a pure functional programming language implemented in TypeScript
8 lines (7 loc) • 537 B
TypeScript
import type { Any } from '../../interface';
import type { AstNode, BindingTarget, SpecialExpressionNode } from '../../parser/types';
import type { BuiltinSpecialExpression } from '../interface';
import type { specialExpressionTypes } from '../specialExpressionTypes';
export type MatchCase = [BindingTarget, AstNode, AstNode | undefined];
export type MatchNode = SpecialExpressionNode<[typeof specialExpressionTypes['match'], AstNode, MatchCase[]]>;
export declare const matchSpecialExpression: BuiltinSpecialExpression<Any, MatchNode>;