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§
- Dispatch
Semantics - Semantic description of a
use/requiredispatch form. - Module
Import Head - Parsed leading import token from a
use/requireline.
Enums§
- Import
Behavior - Whether the module’s
importmethod is called after loading. - Load
Timing - When a module is loaded relative to program execution.
- Module
Import Kind - Classifies the import statement form for a parsed line.
- Require
Form - Distinguishes the two syntactic forms of
require.
Functions§
- parse_
module_ import_ head - Parse the leading import token of a single Perl source line.