-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add window clause * add window clause to FLWOR examples * build wasm * bump version * fix: typo
- Loading branch information
1 parent
dea4e0f
commit 714cf41
Showing
9 changed files
with
161,616 additions
and
118,755 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
"Hello, tree-sitter! ", | ||
``[ time: `{current-time()}` ]``, | ||
my:three-argument-function(1,2,3), | ||
local:two-argument-function((1,2),3), | ||
map {"A":1,"B":2}, | ||
['1',2, 3 ], | ||
( 1 to 10 ) => sum(), | ||
for $v in $doc//video return $v, | ||
doc("books.xml")/bookstore/book[price<30], | ||
element date { current-date()} | ||
'3.12.4 Window Clause', | ||
for tumbling window $w in (2, 4, 6, 8, 10, 12, 14) | ||
start at $s when fn:true() | ||
only end at $e when $e - $s eq 2 | ||
return avg($w), | ||
for sliding window $w in (2, 4, 6, 8, 10, 12, 14) | ||
start at $s when fn:true() | ||
only end at $e when $e - $s eq 2 | ||
return <window>{ $w }</window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.