prql / tree-sitter-prql Goto Github PK
View Code? Open in Web Editor NEWA tree-sitter grammar for PRQL
License: MIT License
A tree-sitter grammar for PRQL
License: MIT License
This helps in querying strings better
rank_dense
_eq
zip
_is_null
These made problems when I tried implementing them. Need to fix these
The python grammar parses the content of the curly braces. This can be added here to
https://prql-lang.org/book/reference/spec/modules.html
module my_playlists {
module soundtracks {
let movie_albums = (from albums | filter id == 3)
}
from soundtracks.movie_albums
}
from my_playlists.soundtracks.movie_albums
Some keywords are missing from here:
https://prql-lang.org/book/language-features/standard-library.html
Looks like mostly grouping/window functions are missing
Hi @matthias-Q !
Just to flag a couple of big changes coming down in 0.9.0.
I'm happy to help with things if needed. I don't think they're complicated changes โย e.g. the tuple syntax is a straight swap, even though it's pervasive.
FYI we just added line wrapping / line continuation characters. Would be great to have those in the treesitter grammar too.
Here are a couple of examples: https://github.com/PRQL/prql/blob/983bb3e2ca61685395334232ada3c01dae185162/web/book/src/reference/syntax/operators.md#wrapping-lines
(ref PRQL/prql#3442, which is mostly about the other grammars)
Using this page https://meimporta.eu/tree-sitter/json2ebnf.html we can get a navigable railroad diagram for tree-sitter grammars like this project.
See also tree-sitter/tree-sitter#2268 .
Cheers !
https://prql-lang.org/book/project/changelog.html?highlight=regex#090--2023-07-24
from tracks
filter {name ~= "Love"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.