LARK-AG: A Python library for providing Attribute Grammar support to Lark.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lark_ag-1.0.2.tar.gz
.
File metadata
- Download URL: lark_ag-1.0.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4767ccc78e99ce0237442c9dfd96f78e19c80d7ecce1a3fadd8651159f6ef11c |
|
MD5 | dbd19ae307bec17aa0d2b6240a75c6d6 |
|
BLAKE2b-256 | fc79f4497271feae9cd47d15cff39a0ebb9b617d0d270eda7cb1082f301da90c |
File details
Details for the file lark_ag-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: lark_ag-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 681b81a06eaf3f6ca9ff8de4bd5f9fadec20e7502a293b2df501747feff1bb8c |
|
MD5 | 2bd7b892776a72f589f3ec47bcb88078 |
|
BLAKE2b-256 | 5c542258d1985ee0ec7007840ddf8d43be4b801549f34efce68515adf80bd702 |