tree-sitter-xfst

tree-sitter grammar for hfst-xfst


Keywords
tree-sitter, apertium
License
CNRI-Python-GPL-Compatible
Install
npm install tree-sitter-xfst@0.0.1

Documentation

tree-sitter-apertium

This repository contains tree-sitter parsers for the various non-XML file formats used in Apertium.

Requirements

Parsers

npm install tree-sitter-cli

Python bindings

Runtime dependencies

pip3 install tree_sitter

Build dependencies

  • setuptools
  • on Linux, auditwheel and patchelf
pip3 install auditwheel setuptools
apt install patchelf

Compiling

To compile everything, run

make

To compile only the parsers and not the Python bindings, run

make langs