Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sleexyz/tabdown
An indentation-based tree descriptor language
https://github.com/sleexyz/tabdown
Last synced: 1 day ago
JSON representation
An indentation-based tree descriptor language
- Host: GitHub
- URL: https://github.com/sleexyz/tabdown
- Owner: sleexyz
- Created: 2015-05-17T19:28:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-23T03:38:55.000Z (over 9 years ago)
- Last Synced: 2024-10-29T01:21:33.419Z (9 days ago)
- Language: JavaScript
- Homepage:
- Size: 145 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tabdown
Express trees homoiconically with indentation.
### examples
#### todo list
```
Today:
finish documentation
sleepTomorrow:
publish to githubLater:
Look up
coltrane changes
MUSIC-N
```
#### prime factorization
```
24
6
2
3
4
2
2
```### usage
```
npm install tabdown
```
```es6
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.