1.0.1 • Published 4 months ago

@termsurf/leaf v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Welcome

LeafText (see the website) is a little more than a markup language, tending toward a programming language. In fact, it can be used for a programming language. It is a way to model information and computation in an easy to read and write format, suitable for hierarchical leaf taking and other means of capturing data down into structured form.

pnpm add @termsurf/leaf
import makeLinkTree, { showLinkTree } from '../code/tree/index.js'
const lead = makeLinkTree({ file, text: provided })

Install the syntax highlighter VSCode extension and get aworkin!

State of Library

Tests pass for positive cases (pnpm test), but fail on some crazy error cases it should handle nicely. So still have some work to do on making this robust, but it should parse the basic structures fine, just not commplicated interpolation styles with nesting.

License

Copyright 2021-2023 TermSurf

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

TermSurf

This is being developed by the folks at TermSurf, a California-based project for helping humanity master information and computation. Find us on Twitter, LinkedIn, and Facebook. Check out our other GitHub projects as well!