issues
search
Bridgeconn
/
usfm-grammar
An elegant USFM parser.
https://usfmgrammar.vachanengine.org/
MIT License
36
stars
14
forks
source link
Js tree sitter usfm parser
#236
Open
samueljd
opened
4 months ago
samueljd
commented
4 months ago
A js library that parses usfm using tree-sitter.
performs usfm to usj and usj to usfm conversion.
Uses the a custom built tree-sitter.js file that containts the base64 encoded string of tree-siiter.wasm inside it.
The tree-sitter-usfm3 is used in a very specific way
The tree-sitter-usfm3 library is used to build the tree-sitter-usfm3.wasm file.
The tree-sitter-usfm3.wasm file is converted to base64 encoded string.
The string is then coverted to uint8array and the passed to the
Language.load()
A js library that parses usfm using tree-sitter.
Language.load()