2

I'm brand new to using AST, but I've been handed a 'Genetic Programming From Scratch' assignment and from what I can tell AST seems to be the way to go in terms of manipulating the tree.

What I need to do is replace one branch of the tree with one from another tree (in Genetic Programming lingo- 'crossover').

Can anyone advise how best to tackle this? As I say I'm new to AST.

Mike
  • 1,814
  • 4
  • 22
  • 36

1 Answers1

0

Book DSLs in Boo: Domain-Specific Languages in .NET of Ayende Rahien explains AST manipulations in details. He uses Boo language to explain how it works, but AST tree manipulations desccription is pretty generic.

paramosh
  • 2,258
  • 1
  • 15
  • 23