tree-sitter-perl / tree-sitter-pod

tree-sitter parser for POD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tree-sitter-pod

A tree-sitter parser for Perl's POD syntax

Getting Started Developing

To get started, install the dependencies for this repo

npm i

That should get you set up with tree-sitter's cli locally.

Generating the Bindings

In this project, the generated C source code (stored in the src directory) is .gitignored. In order to generate it, run

npx tree-sitter generate 

You'll need to do this after any changes to the grammar.

Running the tests

Tests are stored in the /test/corpus directory, as txt files. A little reference on the syntax can be found here.

You can run the tests with

npx tree-sitter test

See the help output (-h) for that command for some more details on using the test runner.

About

tree-sitter parser for POD

License:Artistic License 2.0


Languages

Language:C 47.0%Language:Rust 22.9%Language:JavaScript 13.8%Language:Scheme 10.3%Language:C++ 6.0%