git @ Cat's Eye Technologies Fountain / master eg / nested-parens.fountain
master

Tree @master (Download .tar.gz)

nested-parens.fountain @masterraw · history · blame

Goal<n>       ::= <. a = 0 .> Item<a, n>;
Item<a, n>(*) ::= <. a = n .> "*" | <. a < n .> "(" <. a += 1 .> Item<a, n> ")";