Skip to content

Commit

Permalink
devel/p5-Parser-MGC: Add p5-Parser-MGC 0.19
Browse files Browse the repository at this point in the history
Parser::MGC class provides a low-level framework for building recursive-descent
parsers that consume a given input string from left to right, returning a parse
structure. It takes its name from the m//gc regexps used to implement the token
parsing behaviour.

It provides a number of token-parsing methods, which each extract a grammatical
token from the string. It also provides wrapping methods that can be used to
build up a possibly-recursive grammar structure, by applying a structure around
other parts of parsing code.

WWW: https://metacpan.org/release/Parser-MGC
  • Loading branch information
sunpoet committed Apr 29, 2021
1 parent 9bda2e2 commit 924b29e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -3030,6 +3030,7 @@
SUBDIR += p5-Parse-Yapp
SUBDIR += p5-ParseLex
SUBDIR += p5-ParseTemplate
SUBDIR += p5-Parser-MGC
SUBDIR += p5-PatchReader
SUBDIR += p5-Path-Abstract
SUBDIR += p5-Path-Class
Expand Down
25 changes: 25 additions & 0 deletions devel/p5-Parser-MGC/Makefile
@@ -0,0 +1,25 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

PORTNAME= Parser-MGC
PORTVERSION= 0.19
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Build simple recursive-descent parsers

LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-Feature-Compat-Try>=0:devel/p5-Feature-Compat-Try \
p5-File-Slurp-Tiny>=0:devel/p5-File-Slurp-Tiny

USES= perl5
USE_PERL5= modbuild

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/p5-Parser-MGC/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1619569393
SHA256 (Parser-MGC-0.19.tar.gz) = 92ff60753bbaa9b6166f105ac6dc2988f4e582e62d5ce74f5db2312351a4e37c
SIZE (Parser-MGC-0.19.tar.gz) = 51748
11 changes: 11 additions & 0 deletions devel/p5-Parser-MGC/pkg-descr
@@ -0,0 +1,11 @@
Parser::MGC class provides a low-level framework for building recursive-descent
parsers that consume a given input string from left to right, returning a parse
structure. It takes its name from the m//gc regexps used to implement the token
parsing behaviour.

It provides a number of token-parsing methods, which each extract a grammatical
token from the string. It also provides wrapping methods that can be used to
build up a possibly-recursive grammar structure, by applying a structure around
other parts of parsing code.

WWW: https://metacpan.org/release/Parser-MGC
6 changes: 6 additions & 0 deletions devel/p5-Parser-MGC/pkg-plist
@@ -0,0 +1,6 @@
%%SITE_PERL%%/Parser/MGC.pm
%%SITE_PERL%%/Parser/MGC/Examples/EvaluateExpression.pm
%%SITE_PERL%%/Parser/MGC/Tutorial.pod
%%PERL5_MAN3%%/Parser::MGC.3.gz
%%PERL5_MAN3%%/Parser::MGC::Examples::EvaluateExpression.3.gz
%%PERL5_MAN3%%/Parser::MGC::Tutorial.3.gz

0 comments on commit 924b29e

Please sign in to comment.