import type { Symbols } from '../core/types.js'; /** * Symbol resolver for programs compiled with z88dk. * * Parses the linker map file (`.map`) that z88dk emits when `-m` is * passed to `zcc`. Lines of interest look like: * * _clamp_add = $9363 ; addr, public, , hello_c, ... * * SDCC prefixes C identifiers with `_`; the parser strips it for * ergonomic lookups (`symbols.get('clamp_add')`). Lines whose metadata * does not include `addr` (e.g. constants from `.inc` files) are * skipped so name collisions between code labels and equates don't * poison the table. * * const symbols = Z88dkSymbols.fromFile('hello.map') * symbols.get('clamp_add') // → 0x9363 */ export declare class Z88dkSymbols implements Symbols { private table; constructor(mapContent: string); /** Convenience: read the map file from disk. */ static fromFile(path: string): Z88dkSymbols; query(name: string): number | undefined; get(name: string): number; has(name: string): boolean; } //# sourceMappingURL=z88dk.d.ts.map