Skip to main content

LarkAG - Attribute Grammar Extension for Lark

LarkAG is an extension to the Lark Compiler Generator that adds support for Attribute Grammars, allowing users to define attributes and semantic operations within their context-free grammars. This tool aims to simplify the development of language processors by enhancing the capabilities of Lark, improving productivity, and reducing errors in grammar engineering.

Features

Attribute Grammar Support: Define synthesized and inherited attributes directly in grammar files. Semantic Rule Execution: Use evaluation, context conditions, and translation rules for complex language processing. Python Code Generation: Automatically generate Python code for interpreting AGs.

Installation

Prerequisites:

Python 3.7+ is required to install LarkAG. Lark 1.1.9

Install LarkAG using pip:

pip install lark-ag

Metadata

Release files for lark-ag 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lark-ag 1.0.2
File Size Uploaded
lark_ag-1.0.2.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lark-ag 1.0.2
File Interpreter ABI Platform
lark_ag-1.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.5 kB

Release files / lark_ag-1.0.2.tar.gz

Download URL lark_ag-1.0.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4767ccc78e99ce0237442c9dfd96f78e19c80d7ecce1a3fadd8651159f6ef11c
BLAKE2b-256 checksum
How to use checksums
fc79f4497271feae9cd47d15cff39a0ebb9b617d0d270eda7cb1082f301da90c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release files / lark_ag-1.0.2-py2.py3-none-any.whl

Download URL lark_ag-1.0.2-py2.py3-none-any.whl
Size 10.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
681b81a06eaf3f6ca9ff8de4bd5f9fadec20e7502a293b2df501747feff1bb8c
BLAKE2b-256 checksum
How to use checksums
5c542258d1985ee0ec7007840ddf8d43be4b801549f34efce68515adf80bd702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page