Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rust-utilities/liquid-grammar-pest
Pest grammar for parsing Shopify Liquid
https://github.com/rust-utilities/liquid-grammar-pest
Last synced: 29 days ago
JSON representation
Pest grammar for parsing Shopify Liquid
- Host: GitHub
- URL: https://github.com/rust-utilities/liquid-grammar-pest
- Owner: rust-utilities
- License: agpl-3.0
- Created: 2024-06-23T20:15:59.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-24T23:33:57.000Z (6 months ago)
- Last Synced: 2024-11-09T04:02:55.015Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pest - Liquid Grammar - Generate `Pairs` and/or `Rules` for [Shopify](https://shopify.github.io/liquid/) Liquid (hash-tags _not-sponsored_ or _affiliated_) for use in consuming crates (Projects)
README
# Liquid Grammar Pest
[heading__top]:
#liquid-grammar-pest
"⬆ Pest grammar for parsing Shopify Liquid"Pest grammar for parsing Shopify Liquid
---
- [:arrow_up: Top of Document][heading__top]
- [:building_construction: Requirements][heading__requirements]
- [:zap: Quick Start][heading__quick_start]
- [🧰 Usage][heading__usage]
- [🗒 Notes][heading__notes]
- [:chart_with_upwards_trend: Contributing][heading__contributing]
- [:trident: Forking][heading__forking]
- [:currency_exchange: Sponsor][heading__sponsor]
- [:card_index: Attribution][heading__attribution]
- [:balance_scale: Licensing][heading__license]
- [Commercial and/or proprietary use][heading__commercial_andor_proprietary_use]
- [Non-commercial and FOSS use][heading__noncommercial_and_foss_use]---
## Requirements
[heading__requirements]:
#requirements
"🏗 Prerequisites and/or dependencies that this project needs to function properly"This repository requires [Rust][rust_home] language/compiler to build from
sourceAs of last update to this ReadMe file, the recommended method of installing
Rust is via the installer script...```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```______
## Quick Start
[heading__quick_start]:
#quick-start
"⚡ Perhaps as easy as one, 2.0,..."This repository is a Rust library, define it as a dependency within a project
`Cargo.toml` file...**`Cargo.toml` (snip)**
```toml
[dependencies]
pest = "2.7.10"
liquid_grammar_pest = "0.0.1"
```> Check
> [Rust -- Doc -- Specifying Dependencies](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html)
> for details about defining dependencies.Then include within a source file via `use` statement...
**`src/main.rs`**
```Rust
use liquid_grammar_pest::{LiquidParser, Rule};
use pest::Parser;
```______
## Usage
[heading__usage]:
#usage
"🧰 How to utilize this repository"Check the `tests/` and `examples/` files for sample code.
______
## Notes
[heading__notes]:
#notes
"🗒 Additional things to keep in mind when developing"This repository may not be feature complete and/or fully functional, Pull
Requests that add features or fix bugs are certainly welcomed.This repository is focused on providing grammar and, through Pest, tokenizer
only. It is up to crate consumers to implement interpreter, error
customization, or any additional features.______
## Contributing
[heading__contributing]:
#contributing
"📈 Options for contributing to liquid-grammar-pest and rust-utilities"Options for contributing to liquid-grammar-pest and rust-utilities
---
### Forking
[heading__forking]:
#forking
"🔱 Tips for forking liquid-grammar-pest"Start making a [Fork][liquid_grammar_pest__fork_it] of this repository to an
account that you have write permissions for.- Add remote for fork URL. The URL syntax is
_`[email protected]:/.git`_...```bash
cd ~/git/hub/rust-utilities/liquid-grammar-pestgit remote add fork [email protected]:/liquid-grammar-pest.git
```- Commit your changes and push to your fork, eg. to fix an issue...
```bash
cd ~/git/hub/rust-utilities/liquid-grammar-pestgit commit -F- <<'EOF'
:bug: Fixes #42 Issue**Edits**
- `` script, fixes some bug reported in issue
EOFgit push fork main
```> Note, the `-u` option may be used to set `fork` as the default remote, eg.
> _`git push -u fork main`_ however, this will also default the `fork` remote
> for pulling from too! Meaning that pulling updates from `origin` must be done
> explicitly, eg. _`git pull origin main`_- Then on GitHub submit a Pull Request through the Web-UI, the URL syntax is
_`https://github.com///pull/new/`_> Note; to decrease the chances of your Pull Request needing modifications
> before being accepted, please check the
> [dot-github](https://github.com/rust-utilities/.github) repository for
> detailed contributing guidelines.---
### Sponsor
[heading__sponsor]:
#sponsor
"💱 Methods for financially supporting rust-utilities that maintains liquid-grammar-pest"Thanks for even considering it!
Via Liberapay you may
[![sponsor__shields_io__liberapay]][sponsor__link__liberapay] on a
repeating basis.Regardless of if you're able to financially support projects such as
liquid-grammar-pest that rust-utilities maintains, please consider sharing
projects that are useful with others, because one of the goals of maintaining
Open Source repositories is to provide value to the community.______
## Attribution
[heading__attribution]:
#attribution
"📇 Resources that where helpful in building this project so far."- [GitHub -- `github-utilities/make-readme`](https://github.com/github-utilities/make-readme)
- [Pest -- Editor](https://pest.rs/#editor)
- [LiquidJS -- Playground](https://liquidjs.com/playground.html)______
## License
[heading__license]:
#license
"⚖ Legal side of Open Source"This project is licensed based on use-case
---
### Commercial and/or proprietary use
[heading__commercial_andor_proprietary_use]: #commercial-andor-proprietary-useIf a project is **either** commercial or (`||`) proprietary, then please
contact the author for pricing and licensing options to make use of code and/or
features from this repository.---
### Non-commercial and FOSS use
[heading__noncommercial_and_foss_use]: #noncommercial-and-foss-useIf a project is **both** non-commercial and (`&&`) published with a license
compatible with AGPL-3.0, then it may utilize code from this repository under
the following terms.```
Pest grammar for parsing Shopify Liquid
Copyright (C) 2024 S0AndS0This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, version 3 of the License.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
```... For further details review full length version of
[AGPL-3.0][branch__current__license] License.[branch__current__license]:
/LICENSE
"⚖ Full length version of AGPL-3.0 License"[badge__license]:
https://img.shields.io/github/license/rust-utilities/liquid-grammar-pest[badge__commits__liquid_grammar_pest__main]:
https://img.shields.io/github/last-commit/rust-utilities/liquid-grammar-pest/main.svg[commits__liquid_grammar_pest__main]:
https://github.com/rust-utilities/liquid-grammar-pest/commits/main
"📝 History of changes on this branch"[liquid_grammar_pest__community]:
https://github.com/rust-utilities/liquid-grammar-pest/community
"🌱 Dedicated to functioning code"[issues__liquid_grammar_pest]:
https://github.com/rust-utilities/liquid-grammar-pest/issues
"☢ Search for and _bump_ existing issues or open new issues for project maintainer to address."[liquid_grammar_pest__fork_it]:
https://github.com/rust-utilities/liquid-grammar-pest/fork
"🔱 Fork it!"[pull_requests__liquid_grammar_pest]:
https://github.com/rust-utilities/liquid-grammar-pest/pulls
"🏗 Pull Request friendly, though please check the Community guidelines"[liquid_grammar_pest__main__source_code]:
https://github.com/rust-utilities/liquid-grammar-pest/
"⌨ Project source!"[badge__issues__liquid_grammar_pest]:
https://img.shields.io/github/issues/rust-utilities/liquid-grammar-pest.svg[badge__pull_requests__liquid_grammar_pest]:
https://img.shields.io/github/issues-pr/rust-utilities/liquid-grammar-pest.svg[badge__main__liquid_grammar_pest__source_code]:
https://img.shields.io/github/repo-size/rust-utilities/liquid-grammar-pest[rust_home]:
https://www.rust-lang.org/
"Home page for Rust language"[rust_github]:
https://github.com/rust-lang
"Source code for Rust on GitHub"[sponsor__shields_io__liberapay]:
https://img.shields.io/static/v1?logo=liberapay&label=Sponsor&message=rust-utilities[sponsor__link__liberapay]:
https://liberapay.com/rust-utilities
"💱 Sponsor developments and projects that rust-utilities maintains via Liberapay"[badge__github_actions]:
https://github.com/rust-utilities/liquid-grammar-pest/actions/workflows/test.yaml/badge.svg?branch=main[activity_log__github_actions]:
https://github.com/rust-utilities/liquid-grammar-pest/deployments/activity_log