concept-lang
Version:
A semantic network system for defining concepts, relationships, and building knowledge graphs with automatic inference
30 lines • 831 B
TypeScript
import { HookMap } from '../types';
import { Block } from './block';
/**
* Create default hook map - no default hooks, all commands are in plugins
*/
export declare const createDefaultHookMap: (_getBlock: () => Block) => HookMap;
/**
* Compiler class for processing Concept language files
*/
export declare class Compiler {
private readonly _block;
constructor(hookMap?: HookMap, block?: Block);
/**
* Get the underlying block instance
*/
get block(): Block;
/**
* Compile a Concept language source string
*/
compile(source: string): string;
/**
* Compile a Concept language source string and return the block state
*/
compileToState(source: string): Block;
/**
* Reset the compiler state
*/
reset(): void;
}
//# sourceMappingURL=compiler.d.ts.map