Creating data structures from symbol trees