https://github.com/jnoortheen/xonsh-rd-parser
A Rust library that parses Xonsh and provides Python bindings to it.
https://github.com/jnoortheen/xonsh-rd-parser
xonsh xonsh-dev
Last synced: about 2 months ago
JSON representation
A Rust library that parses Xonsh and provides Python bindings to it.
- Host: GitHub
- URL: https://github.com/jnoortheen/xonsh-rd-parser
- Owner: jnoortheen
- License: mit
- Created: 2024-07-18T06:28:28.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-30T10:42:49.000Z (4 months ago)
- Last Synced: 2025-01-15T13:57:23.865Z (3 months ago)
- Topics: xonsh, xonsh-dev
- Language: Rust
- Homepage:
- Size: 1.28 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Xonsh Recursive Descent Parser
A Rust based, recursive descent parser for [Xonsh](https://xon.sh).
# Usage
- install it with pip
```
pip install xonsh-rd-parser
```- Use it to parse Xonsh CFG
```py
from xonsh_rd_parser import Parse
Parse("print($HOME)").parse()
```# Credits
This library is based on [ruff](https://github.com/charliermarsh/ruff)'s own [Python parser](https://github.com/astral-sh/ruff/tree/main/crates/ruff_python_parser).