Skip to content

Instantly share code, notes, and snippets.

@SuperJMN
Last active January 16, 2017 21:57
Show Gist options
  • Save SuperJMN/825032dc6925304c557503743698dd11 to your computer and use it in GitHub Desktop.
Save SuperJMN/825032dc6925304c557503743698dd11 to your computer and use it in GitHub Desktop.
Tree-building language
* The language will represent a tree. Each node can have zero or more children.
It will look like this text (tabs matter):
Root
A
B
C
D
E
F
G
H
I
* Each node is a text like "Root", "A", "B"...
* Each node have has as children all the nodes that have a n+1 level of indentation. For example, the children of node "Root" are "A", "H" and "I"
* Indentation is a tab character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment