Ejemplo n.º 1
0
Archivo: raku.go Proyecto: 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
}
Ejemplo n.º 2
0
Archivo: raku.go Proyecto: beoran/woe
func (me *Rule) NewChild(action ParseAction) *Rule {
	child := NewRule("foo", RuleTypeNone)
	tree.AppendChild(me, child)
	return child
}