9c29364f91
The LPeg library is a powerful tool to parse text and extract parts of it using captures. It even provides grammars, which can be used to parse non-regular languages, but the complexer the language gets, the more difficult error handling and keeping track of captured information becomes. luaepnf enhances usage of LPeg grammars by building an abstract syntax tree (AST) for the input and providing tools for error reporting, as well as offering syntax sugar and shortcuts for accessing LPeg's features.
24 lines
608 B
Makefile
24 lines
608 B
Makefile
# $NetBSD: Makefile,v 1.1 2020/08/06 22:56:52 joerg Exp $
|
|
|
|
DISTNAME= epnf-0.3
|
|
PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= devel lua
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=siffiejoe/}
|
|
GITHUB_PROJECT= lua-luaepnf
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://siffiejoe.github.io/lua-luaepnf/
|
|
COMMENT= Abstract Syntax Tree support library for Lua
|
|
LICENSE= mit
|
|
|
|
NO_BUILD= yes
|
|
|
|
INSTALLATION_DIRS+= ${LUA_LDIR}
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/src/epnf.lua \
|
|
${DESTDIR}${PREFIX}/${LUA_LDIR}/
|
|
|
|
.include "../../lang/lua/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|