Commit Graph
3 Commits
Author SHA1 Message Date
Shane McCarron 69c8155335 feat(perl-lsp): seed common CPAN OOP modules in perl_stdlib_data.c
- Register module-qualified exported subs under dotted QNs so an
  Exporter import map (plan 22-03) can resolve `use Foo::Bar qw(...)`:
  - Scalar::Util (blessed, reftype, weaken)
  - List::Util (sum, max, min, first, reduce)
  - Carp (croak, carp, confess, cluck)
  - POSIX, Storable, Data::Dumper entry points
- Moose meta stubs deferred (Open Question #4)

Signed-off-by: Shane McCarron <shane.mccarron@corvexconnect.com>
2026-07-09 14:09:39 -05:00
Shane McCarron 13340267a7 feat(perl-lsp): seed perlfunc core builtins in perl_stdlib_data.c
- Replace plan-01 placeholder with ~28 perlfunc core builtins
  (print, push, shift, map, sort, keys, bless, defined, exists, ...)
- Register as global, package-less functions via REG_BUILTIN
- Add REG_FUNC macro for upcoming module-qualified CPAN seed

Signed-off-by: Shane McCarron <shane.mccarron@corvexconnect.com>
2026-07-09 14:09:39 -05:00
Shane McCarron 06d14a6ef8 feat(perl-lsp): add stub perl_stdlib_data.c
- Define cbm_perl_stdlib_register with a REG_BUILTIN macro (php_stdlib shape)
- Register placeholder builtins (print, bless, ref) so the symbol links
- TODO(plan 22-02): full perlfunc + CPAN seed

Signed-off-by: Shane McCarron <shane.mccarron@corvexconnect.com>
2026-07-09 14:09:39 -05:00