jrsconfitto / tree-sitter-powershell

A tree-sitter language grammar for PowerShell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTE

There's an official Tree Sitter implementation for PowerShell, please direct any efforts there: https://github.com/powershell/tree-sitter-powershell.

tree-sitter-powershell

Build Status Build status

A tree-sitter grammar for the PowerShell language.

This is still very much a WIP and isn't something i'd recommend depending on!

The goal of this project is to build a grammar that is useful in the Atom editor (and to learn how grammars work).

Contributing

Issues and Pull Requests are welcome! Feel free to ask any questions in the issues.

The files you'll mainly want to work with are the grammar.js and files in the corpus folder, which are the unit tests.

This is a side-project for fun, so please be understanding if responses take a little bit of time 😄

References

Licenses

This project uses the MIT license.

This project uses code from the tree-sitter-javascript grammar which is released under the following license:

The MIT License (MIT)

Copyright (c) 2014 Max Brunsfeld

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A tree-sitter language grammar for PowerShell

License:MIT License


Languages

Language:C 98.1%Language:JavaScript 1.7%Language:C++ 0.1%Language:Python 0.0%