import { Type } from '../types/datatype'; import { SymbolTable } from './symboltable'; declare type converterFuncFmt = (value: Type) => Type; /** * Converter converts one value into another */ declare class Converter { private readonly st; private readonly c; /** * Create new converter register * @param {SymbolTable} st symbol table */ constructor(st: SymbolTable); /** * Get the converter by its ID or phrase * @param {string} id id of the converter or phrase * @returns {converterFuncFmt | undefined} converter function */ get(id: string): converterFuncFmt | undefined; /** * Register new converter function * @param id string * @param func converter function */ set(id: string, func: converterFuncFmt): void; } export { Converter, converterFuncFmt };