grammarjs/grammar — pull request #27 by lancejpollard (2014-09-11 05:26:37+00:00)
Title: make rule have type and name

Going with a very verbose version of a tree for now, definitely can be optimized. But this way it is at least simple in how it is constructed.