func (me *Ast) NewChild(kind AstType, token *Token) *Ast { child := &Ast{} child.AstType = kind child.Token = token tree.AppendChild(me, child) return child }
func (me *Rule) NewChild(action ParseAction) *Rule { child := NewRule("foo", RuleTypeNone) tree.AppendChild(me, child) return child }