1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Add py-lark-parser 0.6.6

Lark can parse any context-free grammar, FAST and EASY!

For beginners, Lark is not just another parser. It can parse any grammar you
throw at it, no matter how complicated or ambiguous, and do so efficiently. It
also constructs a parse-tree for you, without additional code on your part.

For Experts, Lark lets you choose between Earley and LALR(1), to trade-off power
and speed. It also contains a CYK parser and unique features such as a
contextual-lexer.

Lark can:
- Parse all context-free grammars, and handle any ambiguity
- Build a parse-tree automagically, no construction code required
- Outperform all other Python libraries when using LALR(1) (Yes, including PLY)
- Run on every Python interpreter (it's pure-python)
- Generate a stand-alone parser (for LALR(1) grammars)
- And many more features. Read ahead and find out.

Most importantly, Lark will save you time and prevent you from getting parsing
headaches.

WWW: https://github.com/lark-parser/lark
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-02-22 19:54:01 +00:00
parent 7b355c138f
commit afaff16215
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493587
4 changed files with 47 additions and 0 deletions

View File

@ -4745,6 +4745,7 @@
SUBDIR += py-kjbuckets
SUBDIR += py-knack
SUBDIR += py-kqueue
SUBDIR += py-lark-parser
SUBDIR += py-lazr.config
SUBDIR += py-lazr.delegates
SUBDIR += py-lazy

View File

@ -0,0 +1,21 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= lark-parser
PORTVERSION= 0.6.6
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Modern parsing library for Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1550813380
SHA256 (lark-parser-0.6.6.tar.gz) = 43d623edae6f16db038d29f8586406002f2bea63c0363dc9acbedac27de7040e
SIZE (lark-parser-0.6.6.tar.gz) = 260348

View File

@ -0,0 +1,22 @@
Lark can parse any context-free grammar, FAST and EASY!
For beginners, Lark is not just another parser. It can parse any grammar you
throw at it, no matter how complicated or ambiguous, and do so efficiently. It
also constructs a parse-tree for you, without additional code on your part.
For Experts, Lark lets you choose between Earley and LALR(1), to trade-off power
and speed. It also contains a CYK parser and unique features such as a
contextual-lexer.
Lark can:
- Parse all context-free grammars, and handle any ambiguity
- Build a parse-tree automagically, no construction code required
- Outperform all other Python libraries when using LALR(1) (Yes, including PLY)
- Run on every Python interpreter (it's pure-python)
- Generate a stand-alone parser (for LALR(1) grammars)
- And many more features. Read ahead and find out.
Most importantly, Lark will save you time and prevent you from getting parsing
headaches.
WWW: https://github.com/lark-parser/lark