0.1.5 • Published 10 months ago

@scaleton/func-debug-symbols v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

0.1.5

10 months ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago