Allows `Aider` to use CEDARScript as an edit format
Project description
CEDARScript Integration: Aider
CEDARScript Integration: Aider
allows Aider
to use CEDARScript as an edit format.
What is CEDARScript?
CEDARScript (Concise Examination, Development, And Refactoring Script) is a domain-specific language that aims to improve how AI coding assistants interact with codebases and communicate their code modification intentions. It provides a standardized way to express complex code modification and analysis operations, making it easier for AI-assisted development tools to understand and execute these tasks.
Features
- Given a
CEDARScript
script and a base direcotry, executes the script commands on files inside the base directory; - Return results in
XML
format for easier parsing and processing by LLM systems
Installation
You can install CEDARScript
Editor using pip:
pip install cedarscript_editor
Usage
Here's a quick example of how to use CEDARScript
Editor:
from cedarscript_editor import CEDARScriptEdior
parser = CEDARScriptEdior()
code = """
CREATE FILE "example.py"
UPDATE FILE "example.py"
INSERT AT END OF FILE
CONTENT
print("Hello, World!")
END CONTENT
END UPDATE
"""
commands, errors = parser.parse_script(code)
if errors:
for error in errors:
print(f"Error: {error}")
else:
for command in commands:
print(f"Parsed command: {command}")
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
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
Hashes for cedarscript_integration_aider-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32609672d1c3221e4e1aa7eebdab3d41ebd479a165c6f8bff403e2ee64928cdc |
|
MD5 | 990a463dc42f09afd9d0550b4a8eda0a |
|
BLAKE2b-256 | 41eda7cff34b25ab33ccfbf5c4c4d0a48832fd23cbcb2293ca2ba500febeac10 |
Hashes for cedarscript_integration_aider-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 139a21c1af01d7e9c6bc7f5086f99ebcb703dab8ecbf9e10fbf7e658b579a4b2 |
|
MD5 | 40fb4629d1b809a38bb4a5478855733e |
|
BLAKE2b-256 | 7f9d04d2b5a977d2720460f56486af8de3fba55a5535522ef41aeb3925596575 |