Skip to main content

Crate perl_module_import

Crate perl_module_import 

Source
Expand description

Single-line Perl import head parsing.

This crate provides one narrow responsibility: parse a single source line that starts with use or require and return the first import token with stable byte offsets.

Structs§

DispatchSemantics
Semantic description of a use/require dispatch form.
ModuleImportHead
Parsed leading import token from a use/require line.

Enums§

ImportBehavior
Whether the module’s import method is called after loading.
LoadTiming
When a module is loaded relative to program execution.
ModuleImportKind
Classifies the import statement form for a parsed line.
RequireForm
Distinguishes the two syntactic forms of require.

Functions§

parse_module_import_head
Parse the leading import token of a single Perl source line.