@scaleton/func-debug-symbols
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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);

Authors

License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i @scaleton/func-debug-symbols

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

58.9 kB

Total Files

23

Last publish

Collaborators

  • nick.nekilov