Crates.io | liquid-grammar-pest |
lib.rs | liquid-grammar-pest |
version | 0.0.1 |
source | src |
created_at | 2024-06-24 22:01:57.348061 |
updated_at | 2024-06-24 22:01:57.348061 |
description | Pest grammar for parsing Shopify Liquid |
homepage | https://github.com/rust-utilities/liquid-grammar-pest |
repository | https://github.com/rust-utilities/liquid-grammar-pest |
max_upload_size | |
id | 1282677 |
size | 201,312 |
Pest grammar for parsing Shopify Liquid
This repository requires Rust language/compiler to build from source
As of last update to this ReadMe file, the recommended method of installing Rust is via the installer script...
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
This repository is a Rust library, define it as a dependency within a project
Cargo.toml
file...
Cargo.toml
(snip)
[dependencies]
pest = "2.7.10"
liquid_grammar_pest = "0.0.1"
Check Rust -- Doc -- Specifying Dependencies for details about defining dependencies.
Then include within a source file via use
statement...
src/main.rs
use liquid_grammar_pest::{LiquidParser, Rule};
use pest::Parser;
Check the tests/
and examples/
files for sample code.
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.
Options for contributing to liquid-grammar-pest and rust-utilities
Start making a Fork of this repository to an account that you have write permissions for.
git@github.com:<NAME>/<REPO>.git
...cd ~/git/hub/rust-utilities/liquid-grammar-pest
git remote add fork git@github.com:<NAME>/liquid-grammar-pest.git
cd ~/git/hub/rust-utilities/liquid-grammar-pest
git commit -F- <<'EOF'
:bug: Fixes #42 Issue
**Edits**
- `<SCRIPT-NAME>` script, fixes some bug reported in issue
EOF
git push fork main
Note, the
-u
option may be used to setfork
as the default remote, eg.git push -u fork main
however, this will also default thefork
remote for pulling from too! Meaning that pulling updates fromorigin
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/<NAME>/<REPO>/pull/new/<BRANCH>
Note; to decrease the chances of your Pull Request needing modifications before being accepted, please check the dot-github repository for detailed contributing guidelines.
Thanks for even considering it!
Via Liberapay you may 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.
This project is licensed based on use-case
If 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.
If 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 S0AndS0
This 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 <https://www.gnu.org/licenses/>.
... For further details review full length version of AGPL-3.0 License.