perl-parser
Use this crate when you want one dependency for parsing Perl plus the higher layers that usually come next: semantic analysis, workspace indexing, refactoring, and the LSP-oriented provider re-exports.
If you only need the parser engine itself, use perl-parser-core directly.
Where it fits
perl-parser is the top of the parsing stack. It lets downstream tools depend
on one crate instead of wiring the parser, analysis, workspace, and refactoring
families together by hand.
Main entry points
Parserplusast,position,error, andParseResultanalysis::*fromperl-semantic-analyzerworkspace::*fromperl-workspace-indexrefactor::*fromperl-refactoringcompletion,diagnostics,rename, and other LSP provider re-exportsperl-parsewhen theclifeature is enabled
Example
use Parser;
let mut parser = new;
let ast = parser.parse?;
assert!;
Typical use
Use perl-parser when you are building editor tooling, code transforms, or
tests that need both parsing and the layers above parsing. If you only need a
small slice of the stack, depend on the narrower crate directly.