perl-builtins
Builtin function signatures and metadata for Perl parser and LSP tooling.
Part of the tree-sitter-perl-rs workspace.
Overview
Provides two complementary lookup mechanisms for 200+ Perl built-in functions (including file test operators):
builtin_signatures--HashMap-based store withOnceLocklazy init. Each entry carries multiple signature variants and a documentation string (BuiltinSignature). Used for signature help and hover.builtin_signatures_phf-- Re-export of theperl-builtins-phfmicrocrate, which provides compile-timephf::Maptables (BUILTIN_SIGS,BUILTIN_FULL_SIGS) for O(1) lookups with zero runtime allocation. Exposesget_param_names,is_builtin, andbuiltin_counthelpers. Used for inlay hints and completion.
Categories covered
I/O, strings, arrays, hashes, file/directory ops, file test operators (-e, -f, ...), processes, math, sockets/network, IPC, user/group, time, modules, control flow, tied variables, and more.
Usage
use ;
assert!;
assert_eq!;
License
MIT OR Apache-2.0