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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31b0e9721947ed241404db3d63d95f5c6899ea103058515f0aa67b7a2f70cb7 |
|
MD5 | 724e27ce8ae039283ebb5b0d1c0a9534 |
|
BLAKE2b-256 | f5f6242e71e177057c11ece37a5190ab80fcdf20777ad673b9f89acedd4eacb6 |
Hashes for cedarscript_integration_aider-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2ec5b4a100cb3a52bb802e2228e5e312a9d1a9eb2cd2c5cebd96605662ae21 |
|
MD5 | c4582fd7263999ca343bd705171db3d8 |
|
BLAKE2b-256 | 66819318f09895692126e12efc23ddcb798579f6548984ed8d509942713ba4e1 |