Example #1
0
File: raku.go Project: beoran/woe
func (me *Ast) NewChild(kind AstType, token *Token) *Ast {
	child := &Ast{}
	child.AstType = kind
	child.Token = token
	tree.AppendChild(me, child)
	return child
}
Example #2
0
File: raku.go Project: beoran/woe
func (me *Rule) NewChild(action ParseAction) *Rule {
	child := NewRule("foo", RuleTypeNone)
	tree.AppendChild(me, child)
	return child
}