Initial tree-sitter grammar for Dgraph DQL

Skeleton grammar supporting blocks, comments, strings, numbers,
and identifiers. Full DQL keyword support planned for Phase 2.
This commit is contained in:
2026-02-04 15:17:47 +03:00
commit f249538fdd
13 changed files with 1623 additions and 0 deletions

18
examples/test.dql Normal file
View File

@@ -0,0 +1,18 @@
# Simple DQL query
{
me(func: eq(name, "Alice")) {
name
age
friend @filter(ge(age, 21)) {
name
}
}
}
# Mutation example
{
set {
_:alice <name> "Alice" .
_:alice <age> "30" .
}
}