treesitter

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package treesitter turns the annotated grammar into a tree-sitter grammar.js.

The two files say the same thing in two notations, and this is the translation: internal/ebnf reads docs/grammar.ebnf and knows nothing about tree-sitter, and nothing here reads the notation. What the EBNF cannot state, the annotations do; see docs/design/treesitter.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(file *ebnf.File) ([]byte, error)

Emit writes grammar.js for a grammar internal/ebnf has already read and found clean.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL