Document project setup for new grammars #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm interested in contributing to an existing lezer grammar, and also creating a new lezer grammar from scratch. However, the existing docs don't explain how to install and get started with lezer. The basic example explains the syntax for lezer grammars but assumes you've already installed
lezer-generator(and links to the API reference, which again doesn't explain this).I've seen some lezer grammars use
yarnorrollup, but it's not clear whether these are necessary or just a preference of the developers. I know this might be obvious to a web developer, but I'm not a web developer.For comparison, the tree-sitter docs for creating parsers start with a list of dependencies, installation steps, project setup and a sanity check to ensure the development environment has been set up correctly. I'd be great if lezer had a similar section in its documentation.
I've added an example that goes through this in a bit more detail.
Thanks Marijn, this helps a lot!