# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup makefile 1.0 name peg version 0.1.20 revision 0 homepage https://www.piumarta.com/software/peg description \ recursive-descent parser generators for C long_description \ peg and leg are tools for generating recursive-descent parsers: programs \ that perform pattern matching on text. They processes a Parsing \ Expression Grammar (PEG) \[Ford 2004\] to produce a program that \ recognises legal sentences of that grammar. peg processes PEGs written \ using the original syntax described by Ford\; leg processes PEGs written \ using slightly different syntax and conventions that are intended to make \ it an attractive replacement for parsers built with lex and yacc. Unlike \ lex and yacc, peg and leg support unlimited backtracking, provide ordered \ choice as a means for disambiguation, and can combine scanning (lexical \ analysis) and parsing (syntactic analysis) into a single activity. categories devel installs_libs no license MIT maintainers {gmail.com:herby.gillot @herbygillot} \ openmaintainer checksums rmd160 5f8afd1d713a9a491cbb655719984e3be6c9f3bf \ sha256 b8b717bc93a59768a35d6525679a4e0ce94e6bf66f92bacf2979c6474572b45a \ size 137305 master_sites ${homepage} patch { # make PREFIX overridable reinplace -E {s|PREFIX([^=]+)=|PREFIX\1?=|} ${worksrcpath}/Makefile # correct path to man pages reinplace -E {s|/man/man|/share/man/man|g} ${worksrcpath}/Makefile } makefile.has_destdir no