From dddbc2d4f741597e212175c19644a473ec0170d2 Mon Sep 17 00:00:00 2001 From: Andrew Helwer Date: Sat, 20 Jun 2020 17:51:01 -0400 Subject: [PATCH] Added working commands for Windows users Windows users are likely to be using either Windows Terminal (which uses PowerShell) or PowerShell directly. --- docs/section-3-creating-parsers.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/section-3-creating-parsers.md b/docs/section-3-creating-parsers.md index 07f9d865..d4c05f25 100644 --- a/docs/section-3-creating-parsers.md +++ b/docs/section-3-creating-parsers.md @@ -80,6 +80,11 @@ You can test this parser by creating a source file with the contents "hello" and echo 'hello' > example-file tree-sitter parse example-file ``` +Alternatively, in Windows PowerShell: +```pwsh +"hello" | Out-File example-file -Encoding utf8 +tree-sitter parse example-file +``` This should print the following: