{"id":13772071,"url":"https://github.com/rust-utilities/liquid-grammar-pest","last_synced_at":"2026-01-22T21:02:16.276Z","repository":{"id":245932275,"uuid":"819113051","full_name":"rust-utilities/liquid-grammar-pest","owner":"rust-utilities","description":"Pest grammar for parsing Shopify Liquid","archived":false,"fork":false,"pushed_at":"2024-06-24T23:33:57.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-10T09:03:29.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-utilities.png","metadata":{"files":{"readme":".github/README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"liberapay":"rust-utilities"}},"created_at":"2024-06-23T20:15:59.000Z","updated_at":"2024-06-24T23:34:00.000Z","dependencies_parsed_at":"2024-08-03T17:16:05.442Z","dependency_job_id":null,"html_url":"https://github.com/rust-utilities/liquid-grammar-pest","commit_stats":null,"previous_names":["rust-utilities/liquid-grammar-pest"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rust-utilities/liquid-grammar-pest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-utilities%2Fliquid-grammar-pest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-utilities%2Fliquid-grammar-pest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-utilities%2Fliquid-grammar-pest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-utilities%2Fliquid-grammar-pest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-utilities","download_url":"https://codeload.github.com/rust-utilities/liquid-grammar-pest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-utilities%2Fliquid-grammar-pest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28671190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:00:59.589Z","updated_at":"2026-01-22T21:02:16.249Z","avatar_url":"https://github.com/rust-utilities.png","language":"Rust","funding_links":["https://liberapay.com/rust-utilities"],"categories":["Projects"],"sub_categories":[],"readme":"# Liquid Grammar Pest\n[heading__top]:\n  #liquid-grammar-pest\n  \"\u0026#x2B06; Pest grammar for parsing Shopify Liquid\"\n\n\nPest grammar for parsing Shopify Liquid\n\n\u003c!-- ## [![Byte size of Liquid Grammar Pest][badge__main__liquid_grammar_pest__source_code]][liquid_grammar_pest__main__source_code] [![Open Issues][badge__issues__liquid_grammar_pest]][issues__liquid_grammar_pest] [![Open Pull Requests][badge__pull_requests__liquid_grammar_pest]][pull_requests__liquid_grammar_pest] [![Latest commits][badge__commits__liquid_grammar_pest__main]][commits__liquid_grammar_pest__main]   [![GitHub Actions Build Status][badge__github_actions]][activity_log__github_actions] [![License][badge__license]][branch__current__license] --\u003e\n\n\n---\n\n\n- [:arrow_up: Top of Document][heading__top]\n- [:building_construction: Requirements][heading__requirements]\n- [:zap: Quick Start][heading__quick_start]\n- [\u0026#x1F9F0; Usage][heading__usage]\n- [\u0026#x1F5D2; Notes][heading__notes]\n- [:chart_with_upwards_trend: Contributing][heading__contributing]\n  - [:trident: Forking][heading__forking]\n  - [:currency_exchange: Sponsor][heading__sponsor]\n- [:card_index: Attribution][heading__attribution]\n- [:balance_scale: Licensing][heading__license]\n  - [Commercial and/or proprietary use][heading__commercial_andor_proprietary_use]\n  - [Non-commercial and FOSS use][heading__noncommercial_and_foss_use]\n\n\n---\n\n\n\n## Requirements\n[heading__requirements]:\n  #requirements\n  \"\u0026#x1F3D7; Prerequisites and/or dependencies that this project needs to function properly\"\n\n\nThis repository requires [Rust][rust_home] language/compiler to build from\nsource\n\nAs of last update to this ReadMe file, the recommended method of installing\nRust is via the installer script...\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\n\n\n______\n\n\n## Quick Start\n[heading__quick_start]:\n  #quick-start\n  \"\u0026#9889; Perhaps as easy as one, 2.0,...\"\n\n\nThis repository is a Rust library, define it as a dependency within a project\n`Cargo.toml` file...\n\n**`Cargo.toml` (snip)**\n\n```toml\n[dependencies]\npest = \"2.7.10\"\nliquid_grammar_pest = \"0.0.1\"\n```\n\n\u003e Check\n\u003e [Rust -- Doc -- Specifying Dependencies](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html)\n\u003e for details about defining dependencies.\n\nThen include within a source file via `use` statement...\n\n**`src/main.rs`**\n\n```Rust\nuse liquid_grammar_pest::{LiquidParser, Rule};\nuse pest::Parser;\n```\n\n\n______\n\n\n## Usage\n[heading__usage]:\n  #usage\n  \"\u0026#x1F9F0; How to utilize this repository\"\n\n\nCheck the `tests/` and `examples/` files for sample code.\n\n\n______\n\n\n## Notes\n[heading__notes]:\n  #notes\n  \"\u0026#x1F5D2; Additional things to keep in mind when developing\"\n\n\nThis repository may not be feature complete and/or fully functional, Pull\nRequests that add features or fix bugs are certainly welcomed.\n\nThis repository is focused on providing grammar and, through Pest, tokenizer\nonly.  It is up to crate consumers to implement interpreter, error\ncustomization, or any additional features.\n\n\n______\n\n\n## Contributing\n[heading__contributing]:\n  #contributing\n  \"\u0026#x1F4C8; Options for contributing to liquid-grammar-pest and rust-utilities\"\n\n\nOptions for contributing to liquid-grammar-pest and rust-utilities\n\n\n---\n\n\n### Forking\n[heading__forking]:\n  #forking\n  \"\u0026#x1F531; Tips for forking liquid-grammar-pest\"\n\n\nStart making a [Fork][liquid_grammar_pest__fork_it] of this repository to an\naccount that you have write permissions for.\n\n\n- Add remote for fork URL. The URL syntax is\n  _`git@github.com:\u003cNAME\u003e/\u003cREPO\u003e.git`_...\n\n```bash\ncd ~/git/hub/rust-utilities/liquid-grammar-pest\n\ngit remote add fork git@github.com:\u003cNAME\u003e/liquid-grammar-pest.git\n```\n\n- Commit your changes and push to your fork, eg. to fix an issue...\n\n```bash\ncd ~/git/hub/rust-utilities/liquid-grammar-pest\n\n\ngit commit -F- \u003c\u003c'EOF'\n:bug: Fixes #42 Issue\n\n\n**Edits**\n\n\n- `\u003cSCRIPT-NAME\u003e` script, fixes some bug reported in issue\nEOF\n\n\ngit push fork main\n```\n\n\n\u003e Note, the `-u` option may be used to set `fork` as the default remote, eg.\n\u003e _`git push -u fork main`_ however, this will also default the `fork` remote\n\u003e for pulling from too! Meaning that pulling updates from `origin` must be done\n\u003e explicitly, eg. _`git pull origin main`_\n\n\n- Then on GitHub submit a Pull Request through the Web-UI, the URL syntax is\n  _`https://github.com/\u003cNAME\u003e/\u003cREPO\u003e/pull/new/\u003cBRANCH\u003e`_\n\n\n\u003e Note; to decrease the chances of your Pull Request needing modifications\n\u003e before being accepted, please check the\n\u003e [dot-github](https://github.com/rust-utilities/.github) repository for\n\u003e detailed contributing guidelines.\n\n\n---\n\n\n### Sponsor\n  [heading__sponsor]:\n  #sponsor\n  \"\u0026#x1F4B1; Methods for financially supporting rust-utilities that maintains liquid-grammar-pest\"\n\n\nThanks for even considering it!\n\nVia Liberapay you may\n\u003csub\u003e[![sponsor__shields_io__liberapay]][sponsor__link__liberapay]\u003c/sub\u003e on a\nrepeating basis.\n\nRegardless of if you're able to financially support projects such as\nliquid-grammar-pest that rust-utilities maintains, please consider sharing\nprojects that are useful with others, because one of the goals of maintaining\nOpen Source repositories is to provide value to the community.\n\n\n______\n\n\n## Attribution\n[heading__attribution]:\n  #attribution\n  \"\u0026#x1F4C7; Resources that where helpful in building this project so far.\"\n\n\n- [GitHub -- `github-utilities/make-readme`](https://github.com/github-utilities/make-readme)\n- [Pest -- Editor](https://pest.rs/#editor)\n- [LiquidJS -- Playground](https://liquidjs.com/playground.html)\n\n\n______\n\n\n## License\n[heading__license]:\n  #license\n  \"\u0026#x2696; Legal side of Open Source\"\n\n\nThis project is licensed based on use-case\n\n\n---\n\n\n### Commercial and/or proprietary use\n[heading__commercial_andor_proprietary_use]: #commercial-andor-proprietary-use\n\n\nIf a project is **either** commercial or (`||`) proprietary, then please\ncontact the author for pricing and licensing options to make use of code and/or\nfeatures from this repository.\n\n\n---\n\n\n### Non-commercial and FOSS use\n[heading__noncommercial_and_foss_use]: #noncommercial-and-foss-use\n\n\nIf a project is **both** non-commercial and (`\u0026\u0026`) published with a license\ncompatible with AGPL-3.0, then it may utilize code from this repository under\nthe following terms.\n\n```\nPest grammar for parsing Shopify Liquid\nCopyright (C) 2024 S0AndS0\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published\nby the Free Software Foundation, version 3 of the License.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n\n... For further details review full length version of\n[AGPL-3.0][branch__current__license] License.\n\n\n\n[branch__current__license]:\n  /LICENSE\n  \"\u0026#x2696; Full length version of AGPL-3.0 License\"\n\n[badge__license]:\n  https://img.shields.io/github/license/rust-utilities/liquid-grammar-pest\n\n[badge__commits__liquid_grammar_pest__main]:\n  https://img.shields.io/github/last-commit/rust-utilities/liquid-grammar-pest/main.svg\n\n[commits__liquid_grammar_pest__main]:\n  https://github.com/rust-utilities/liquid-grammar-pest/commits/main\n  \"\u0026#x1F4DD; History of changes on this branch\"\n\n\n[liquid_grammar_pest__community]:\n  https://github.com/rust-utilities/liquid-grammar-pest/community\n  \"\u0026#x1F331; Dedicated to functioning code\"\n\n\n[issues__liquid_grammar_pest]:\n  https://github.com/rust-utilities/liquid-grammar-pest/issues\n  \"\u0026#x2622; Search for and _bump_ existing issues or open new issues for project maintainer to address.\"\n\n[liquid_grammar_pest__fork_it]:\n  https://github.com/rust-utilities/liquid-grammar-pest/fork\n  \"\u0026#x1F531; Fork it!\"\n\n[pull_requests__liquid_grammar_pest]:\n  https://github.com/rust-utilities/liquid-grammar-pest/pulls\n  \"\u0026#x1F3D7; Pull Request friendly, though please check the Community guidelines\"\n\n[liquid_grammar_pest__main__source_code]:\n  https://github.com/rust-utilities/liquid-grammar-pest/\n  \"\u0026#x2328; Project source!\"\n\n[badge__issues__liquid_grammar_pest]:\n  https://img.shields.io/github/issues/rust-utilities/liquid-grammar-pest.svg\n\n[badge__pull_requests__liquid_grammar_pest]:\n  https://img.shields.io/github/issues-pr/rust-utilities/liquid-grammar-pest.svg\n\n[badge__main__liquid_grammar_pest__source_code]:\n  https://img.shields.io/github/repo-size/rust-utilities/liquid-grammar-pest\n\n\n[rust_home]:\n  https://www.rust-lang.org/\n  \"Home page for Rust language\"\n\n[rust_github]:\n  https://github.com/rust-lang\n  \"Source code for Rust on GitHub\"\n\n[sponsor__shields_io__liberapay]:\n  https://img.shields.io/static/v1?logo=liberapay\u0026label=Sponsor\u0026message=rust-utilities\n\n[sponsor__link__liberapay]:\n  https://liberapay.com/rust-utilities\n  \"\u0026#x1F4B1; Sponsor developments and projects that rust-utilities maintains via Liberapay\"\n\n\n[badge__github_actions]:\n  https://github.com/rust-utilities/liquid-grammar-pest/actions/workflows/test.yaml/badge.svg?branch=main\n\n[activity_log__github_actions]:\n  https://github.com/rust-utilities/liquid-grammar-pest/deployments/activity_log\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-utilities%2Fliquid-grammar-pest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-utilities%2Fliquid-grammar-pest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-utilities%2Fliquid-grammar-pest/lists"}