Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pod reader #10498

Merged
merged 2 commits into from
Dec 27, 2024
Merged

Add Pod reader #10498

merged 2 commits into from
Dec 27, 2024

Conversation

silby
Copy link
Contributor

@silby silby commented Dec 26, 2024

Pod ("Plain old documentation") is a markup languaged used principally to document Perl modules and programs. Since it was originally meant to be translated pretty directly to man, the semantics are fairly simple.

This Pod reader was developed with reference to the canonical user and implementer documentation of Pod: https://perldoc.perl.org/perlpod and https://perldoc.perl.org/perlpodspec.

There are 1490 .pod, .pl, and .pm in the Perl 5.34 distribution found in /System/Library/Perl on my mac. Of those, this reader dies with a parse error on 7 of them. All of them seem to be cases where pod commands are found within a non-colon-prefixed =begin/=end. perlpodspec says I may treat this as an error.

@jgm
Copy link
Owner

jgm commented Dec 27, 2024

Looks good, as far as I can see, the only thing missing is a mention of pod in the appropriate section of MANUAL.txt.

@silby
Copy link
Contributor Author

silby commented Dec 27, 2024

gah I love forgetting to do that

@silby silby force-pushed the push-ryoymnsmxrpz branch from 925498f to 8270c09 Compare December 27, 2024 05:59
Pod ("Plain old documentation") is a markup languaged used principally
to document Perl modules and programs. Since it was originally meant to
be translated pretty directly to man, the semantics are fairly simple.

This Pod reader was developed with reference to the canonical user and
implementer documentation of Pod: https://perldoc.perl.org/perlpod and
https://perldoc.perl.org/perlpodspec.

There are 1490 .pod, .pl, and .pm in the Perl 5.34 distribution found in
/System/Library/Perl on my mac. Of those, this reader dies with a parse
error on 7 of them. All of them seem to be cases where pod commands are
found within a non-colon-prefixed =begin/=end. perlpodspec says I may
treat this as an error.

[API change] adds readPod
@silby silby force-pushed the push-ryoymnsmxrpz branch from 8270c09 to 9e51618 Compare December 27, 2024 06:00
@jgm jgm merged commit 07105cc into jgm:main Dec 27, 2024
9 of 12 checks passed
@jgm
Copy link
Owner

jgm commented Dec 27, 2024

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants