@scaleton/func-debug-symbols
v0.1.4
Published
Collects debug symbols for:
Downloads
1
Readme
FunC Debug Symbols
Collects debug symbols for:
- functions (original name,
method_id
, cell hash) - globals (original name, index).
Basic Usage
import { collectDebugSymbols } from '@scaleton/func-debug-symbols';
const config: CompilerConfig = {
targets: ['main.fc'],
sources: {
'main.fc': `
global int a;
global cell b;
global slice c;
() throw_inline() impure inline { throw(1); }
() throw_inline_ref() impure inline_ref { throw(2); }
() throw_get() method_id(88) { throw(3); }
() recv_internal() { throw(4); }
`,
},
};
const debugSymbols = await collectDebugSymbols(config);