Grammar for Shopify Liquid! #1021
S0AndS0
started this conversation in
Show and tell
Replies: 1 comment
-
Nice! Feel free to open a PR to add it to this list here: https://github.com/pest-parser/awesome-pest |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been learning the Pest, and some Rust with it too, and thought I might share a project I published today!
TLDR: Liquid is a templating language, often used for generating static web-sites.
https://crates.io/crates/liquid-grammar-pest
https://github.com/rust-utilities/liquid-grammar-pest
https://github.com/rust-utilities/liquid-grammar-pest/blob/main/src/grammars/liquid.pest
https://shopify.github.io/liquid/
There are a number of flavors of Liquid but, for reasons, I chose to target the core Shopify variant first; specification can be found on their GitHub Pages site.
Example -- Liquid
Example -- Parser result
At this time I'd be super grateful for some bug reports, and any suggestions that'd make the
src/grammars/liquid.pest
easier for consuming crates to utilize.Beta Was this translation helpful? Give feedback.
All reactions