franzbischoff / tabdown

An indentation-based tree descriptor language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tabdown

Express trees homoiconically with indentation.

examples

todo list

Today:
    finish documentation
    sleep

Tomorrow:
    publish to github

Later:
    Look up
        coltrane changes
        MUSIC-N

prime factorization

24
    6
        2
        3
    4
        2
        2

usage

npm install tabdown
import tabdown from "tabdown"
...

use cases

You can work directly with trees generated by tabdown. This method may be more useful for expressing trees with homogenous node types.

You can also use tokens from tabdown.lexer as a base context-free grammar for more complex indentation-sensitive grammars. This method may be more useful for expressing trees with heterogenous node types.

About

An indentation-based tree descriptor language


Languages

Language:JavaScript 100.0%