Syntax guide #3759
vanillajonathan
started this conversation in
Ideas
Syntax guide
#3759
Replies: 1 comment 1 reply
-
It looks quite good! I'd be up for adding a description like this, I do think it's a clear way of showing the syntax. It looks like mdbook supports mathjax: https://rust-lang.github.io/mdBook/format/mathjax.html — is that sufficient to show examples like this? (nit: I'd call The really advanced version would be a function that took PRQL and then marked it up in this style, either using the compiler or the lezer grammar. But that's much harder, and only a bit more helpful than having some good examples... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Other languages tend to have syntactic sugar such as parenthesis and commas around functions which aid in grasping the grammar, but not PRQL.
Example:
Would in PRQL be:
Maybe the PRQL syntax is a bit foreign to some people, so maybe the documentation could include a syntax guide. This could be expressed with "underbrace" and "overbrace" notation.
Examples
Beta Was this translation helpful? Give feedback.
All reactions