Automated S-expression conversion