This is a parser for the TAO syntax grammar.
It is implemented in simple JavaScript, as a module.
The implementation can be used as a reference for other parsers, in particular in programming languages similar to JavaScript.
Interactive version of the parser can be tried at tree-annotation.org.
To use the parser module, import it into your code, for example like this:
import {parse, unparse} from "https://raw.githubusercontent.com/tree-annotation/tao/v1.0-beta/parser.js"
// ...
console.log(unparse(parse("hello, world!"))) // prints `hello, world!`
Note: this example imports the v1.0-beta
version directly from GitHub (as specified in the URL).