UNPKG

@thi.ng/pointfree-lang

Version:

Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL

22 lines 650 B
import type { IObjectOf } from "@thi.ng/api"; import * as pf from "@thi.ng/pointfree"; export interface ASTNode { type: NodeType; body: any; loc: [number, number]; id?: string; locals: string[]; } export interface VisitorState { word?: WordMeta; } export interface WordMeta { name: string; loc: [number, number]; doc?: string; stack?: string; arities?: number; } export type NodeType = "sym" | "word" | "var_deref" | "var_store" | "nil" | "number" | "boolean" | "string" | "array" | "obj" | "comment" | "stack_comment"; export declare const ALIASES: IObjectOf<pf.StackFn>; //# sourceMappingURL=api.d.ts.map